Skip To Content
ArcGIS Developer
Dashboard

Import Server Licenses

Description

Legacy:

Licensing has been consolidated to a single license file at ArcGIS Enterprise on Kubernetes 11.0. The ArcGIS Enterprise on Kubernetes license file contains the ArcGIS Enterprise portal user types and add-on licenses and capabilities needed for a deployment. Management for the ArcGIS Enterprise on Kubernetes license file is provided by the organization-level license resource and child operations. The system-level licenses resource and importServerLicenses operation have been deprecated.

The importServerLicenses operation imports and applies an ArcGIS Serverauthorization file. By default, this operation will append authorizations from the imported license file to the current authorizations. Optionally, you can select the overwrite parameter to fully replace the current authorizations with those from the imported license file.

Request parameters

ParameterDetails
licenseFile

The ArcGIS Server authorization file (an .epc or .prvc file).

overwrite

Specifies whether the authorizations in the imported license file will fully replace or be appended to the current authorizations. If true, the authorizations from the imported license file will replace the current authorizations. If false, the authorizations from the imported license file will be appended to the current authorizations.

Values: true | false

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the importServerLicenses operation:


POST /context/admin/system/licenses/importServerLicenses HTTP/1.1
Host: organization.domain.com
Content-Type: multipart/form-data; boundary=------boundary

------boundary
Content-Disposition: form-data; name="licenseFile"; filename=""
Content-Type: application/octet-stream

Server_Image.ecp
------boundary
Content-Disposition: form-data; name="overwrite"

true
------boundary
Content-Disposition: form-data; name="f"

pjson
------boundary
Content-Disposition: form-data; name="token"

GU2TsEumfZAVXun2VobZyvU55vhBsuo1j5oaxp_dLBB2L9SLmevfY2bx33kq3ExEi65MvukpFW-0Nj2Tsf7SmPgp5Og6SgultxaTfntfuuxAZtIkQzDfQtwK1KeyjTlk92P6AXdB2AjfOuxo5bycrAa7BIwn5y4tjvJc3vy_DZgsmRXLtpO4fnFr4uFFO8M5qIQqPdUNPeuEmv2TkNkO8bsYmjtTzTMU3yJYrmGlrwU7qFcwXMmfm09A4V7anjVG
------boundary--

JSON Response example

{"status": "success"}