Getting the List of Accounts
Description
Getting the list of accounts linked to OAuth token. The account name is used when configuring resources.
URL: https://api.globalcloudnetwork.ru/app/inventory/v1/accounts/
- Method: GET
- Headers: CDN-AUTH-TOKEN
- Response Data Type: JSON Array
Response Codes and their Meanings
| Status Code | Response Data | Response Format | Description |
|---|---|---|---|
| 200 | Accounts with status and uid | JSON | Account list |
| 401 | None | None | Unauthorized |
| 503 | None | None | Service unavailable |
Request Example
Request example
curl -H "CDN-AUTH-TOKEN: $TOKEN" 'https://api.globalcloudnetwork.ru/app/inventory/v1/accounts/'
[
{
"status": "active",
"utoken": "kmvgbp7nv5",
"uid": "1-1-paejgjuv",
"name": "paejgjuv"
}
]
Successful response example