Listing ACL Accounts
Function
This API is used to query the ACL account list.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/instances/{instance_id}/accounts
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
| instance_id | Yes | String | Instance ID. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| accounts | Array of AclAccountResp objects | ACL account list. |
| Parameter | Type | Description |
|---|---|---|
| account_id | String | Account ID. |
| account_name | String | Account name. |
| account_type | String | Account type. Options: normal and default. |
| instance_id | String | ID of the instance to which the account belongs. |
| status | String | ACL account status. Options:
|
| account_role | String | Account permission. Options: read (read-only) and write (read/write). |
| description | String | Account description. |
| error_code | String | Error code. This parameter is not used currently and is set to null. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_msg | String | Error message. |
| error_code | String | Error code. |
| error_ext_msg | String | Extended error information. This parameter is not used currently and is set to null. |
Example Requests
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/accounts Example Responses
Status code: 200
ACL accounts listed successfully.
{
"accounts" : [ {
"account_id" : "cb067c67-f08b-4024-af14-f78b58b76a44",
"account_name" : "roUser",
"account_type" : "normal",
"instance_id" : "10fda556-51c3-4cfa-ab6f-37667428da6e",
"status" : "available",
"account_role" : "read",
"description" : "This is a read-only account.",
"error_code" : null
} ]
} Status code: 400
Invalid request.
{
"error_code" : "DCS.4964",
"error_msg" : "Failed to query acl list."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | ACL accounts listed successfully. |
| 400 | Invalid request. |
| 401 | Invalid authentication information. |
| 403 | Request rejected. |
| 404 | The requested resource could not be found. |
| 500 | Internal service error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.