- URL:
- https://<root>/generateToken
- Methods:
POST- Version Introduced:
- 12.0
Description
The generate operation generates a new token for use with the ArcGIS Video Server REST APIs.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The primary site administrator account's username, or the username of another user. |
(Required) | The primary site administrator account's password, or the password associated with the provided username. |
| The client type that will be granted access to the token.
|
| This parameter determines how long the created token will be usable in minutes. The default value is |
(Required) | The output format for this operation. The default value is Values: |
(Required) | Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation. |
Response properties
| Property | Details |
|---|---|
| The expiration time of the generated token. |
| Determines if the token can be utilized to give the same permissions as the primary site administrator. If Values: |
| The token generated from this operation. This will allow users to programmatically interact with the other endpoints and operations. |
Example usage
The following is a sample POST request for the generate operation:
POST /arcgis/admin/generateToken HTTP/1.1
Host: organization.example.com:21443
Content-Type: application/x-www-form-urlencoded
Content-Length: []
user=testUser&password="testpassword"&client=ipAddress&f=pjsonJSON Response syntax
{
"expires": "expirationDate",
"loginAsPSA": "< true | false >",
"token": "tokenId"
}JSON Response example
{
"expires": 1763392544183,
"loginAsPSA": true,
"token": "V4AFFHi4bmO3R6lXzRlshx4cfxyMB3R5H4_pGVRigfN8Il679illfnWrRw4HJxDsOEm5XyyLWRbCXCC10vYuVeFeGpSz7i2i0NLARIW_1nnnDJUWM35ojTeLw_j7tL1d478j2pfQ4Ph9ppSl105jlWHOZaGCbVkzyPMJzYUXsCkjI79NgXtb37O4lw81e2MDsMWnDfppndjT_llKhg1NJK-5LE0LXjMIqv4d4BwctlI."
}