Obtaining Agency Credentials
Function
This API is used to obtain the STS short-term credentials for the agency or trust agency assigned to a user.
URI
GET /v1/credentials
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
target_account_id |
Yes |
String |
Globally unique ID of the target account |
agency_urn |
Yes |
String |
Uniform Resource Name (URN) of an agency or trust agency |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
access-token |
Yes |
String |
Access token issued by the creating token API Maximum length: 4096 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
Object |
Credential of an agency or trust agency assigned to a user |
Example Request
Obtaining the STS short-term credentials for the agency or trust agency assigned to a user
GET https://{hostname}/v1/credentials
Example Response
Status code: 200
Successful
{ "agency_credentials" : { "access_key_id" : "example-access-key-id", "expiration" : 1684955360, "secret_access_key" : "example-secret-access-key", "session_token" : "string" } }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot