- URL:
- https://<root>/cloud/providers/<providerID>/credential/add
- Methods:
POST- Version Introduced:
- 12.0
Access requirements
Required privileges
The Sever Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.
Note that administrators assigned a custom role must also have the administrative View all content privilege assigned to them to access the API directory as an administrator. Additonally, any custom roles that include a webhook-related privilege must also include the general Publish server-based layers content privilege.
Tokens
This API requires token-based authentication. A token is automatically generated for administrators who sign in to the ArcGIS Server Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.
Those accessing the API directory outside of the HTML interface will need to acquire a session token from the ArcGIS Server Administrator API generate operation. For security reasons, all POST requests made to the ArcGIS Server Administrator API must include a token in the request body.
Description
The credential/add operation adds credential information for a cloud service provider that has not yet been assigned its own credentials. Once submitted, the request returns a job ID that you can use to query the Job resource. The HTML view also returns a link that can be used to access the job page for the request.
https://organization.example.com/<context>/admin/jobs/<jobID>Request parameters
| Parameter | Details |
|---|---|
| The new credential object. The cloud provider associated with the new credential object cannot have existing service-specific credentials as returned by the Providers resource. |
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the credential/add operation:
POST /<context>/admin/clouds/providers/azgatvskp6/credential/add HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
credential={"type":"STORAGE-ACCOUNT-KEY","secret": {"storageAccountName": "v2Crypt_R68p/cvTUo1LmRcgXJ5U07WKv936mnCe","storageAccountKey": "v2Crypt_xxxxxxxxxxxxxxxxVC5M"}}&f=pjson&token=m7zGSezM7znt6ZuIwr827imJxOTSDsjYujVdd7SiAQLYG1HmesG8EbSnTwCbiekEh0QwRdmeyp1hP63M60TPrdZQ2NzIg5G7qFaQh40MdiOCfh60-6oPKC2MNoqwdVDZ3srzreVZb66QofWXws8GMrKWkgP45A-2an5crKvReUo-pwvkzm68W87Q0yPJFA2Kww39UnMYNw-5qd2-Bt04VmkrqKI-lCbA-jFZY_UGzeGzNqnBGrjKuVB_q17HogMwJSON Response example
{
"cloudCredentialRotationJobId": j876ae6e7-27d9-4b2d-b8ab-d07e2433e2c1",
"message": "A cloud credentials rotation job is in-progress"
}