Querying Account Information Accessible to an IAM User
Function
This API is used to query the account information that is accessible to a specified IAM user.
The API can be called using both the global endpoint and region-specific endpoints.
Authorization Information
You do not need to obtain permissions to call this API.
URI
GET /v3/auth/domains
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
Content-Type | Yes | String | Fill application/json;charset=utf8 in this field. |
X-Auth-Token | Yes | String | IAM user token (no special permission requirements). |
Response Parameters
Parameter | Type | Description |
|---|---|---|
Array of objects | Account information. | |
Object | Resource link information. |
Parameter | Type | Description |
|---|---|---|
enabled | Boolean | Indicates whether an account is enabled. true (default value) indicates that the account is enabled. false indicates that the account is disabled. |
id | String | Account ID. |
name | String | Account name. |
Object | Account resource link. | |
description | String | Description of the account. |
Example Request
Request for querying account information accessible to an IAM user
GET https://iam.myhuaweicloud.eu/v3/auth/domains Example Response
Status code: 200
The request is successful.
{
"domains": [
{
"description": "",
"enabled": true,
"id": "d78cbac186b744899480f25bd022f468",
"links": {
"self": "https://iam.myhuaweicloud.eu/v3/domains/d78cbac186b744899480f25bd022f468"
},
"name": "IAMDomain"
}
],
"links": {
"self": "https://iam.myhuaweicloud.eu/v3/auth/domains"
}
} Status Codes
Status Code | Description |
|---|---|
200 | The request is successful. |
400 | Invalid parameters. |
401 | Authentication failed. |
403 | Access denied. |
405 | The method specified in the request is not allowed for the requested resource. |
413 | The request entity is too large. |
500 | Internal server error. |
503 | Service unavailable. |
Error Codes
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

