Skip To Content
ArcGIS Developers
Dashboard

Import Server License

Description

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

Request parameters

ParameterDetails
licenseFile

The ArcGIS Server authorization file (either in .epc or .prvc file format).

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 multipart POST request for importServerLicenses:

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"}