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:

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

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close