Import Server Licenses

URL:
https://<root>/system/licenses/importServerLicenses
Methods:
POST
Required Capability:
Access allowed with the "Manage licenses" privilege
Version Introduced:
10.9

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 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:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.