- URL:
- https://<root>/system/licenses/importServerLicenses
- Methods:
POST
- Required Capability:
- Access allowed with the "Manage licenses" privilege
- Version Introduced:
- 10.9
Description
The import
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
Parameter | Details |
---|---|
| The ArcGIS Server authorization file (an |
| Specifies whether the authorizations in the imported license file will fully replace or be appended to the current authorizations. If Values: |
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the import
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"}