ACS Keys and Regions
This endpoint will return the configured CloudStack regions and their keys based on the user’s token
.
- Endpoint:
/api/v1/op_listkeys
- Method:
GET
Request Headers
Header name | Required | Description |
---|---|---|
x-access-token | true | Pass the <user_token> as obtained from the /auth/login endpoint. |
Sample Request
GET: https://<api_url>/api/v1/op_listkeys
Sample Response
- Response JSON
JSON
{
"httpStatus": 200,
"success": true,
"jobId": "68b7e162-05cd-444b-9c61-5727acfde928",
"result": {
"properties": {
"records": [ {
"key": "apiKey",
"value": "<api_key_value>",
"region": "karnataka"
}, {
"key": "secretKey",
"value": "<secret_key_value>",
"region": "karnataka"
}, {
"key": "userid",
"value": "<user_id>",
"region": "karnataka"
} ]
}
}
}