Listing Allocated, Inactive, and All IAM Users
Function
This API is used to list allocated, inactive, and all IAM users.
URI
GET /v1/{project_id}/quota-users/all
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain the project ID, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
account_name |
No |
String |
Username (fuzzy search). |
sys_role_list |
No |
Array |
System-defined roles. The options include:
|
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
[Array element] |
Array of Table 5 objects |
- |
Parameter |
Type |
Description |
---|---|---|
user_id |
String |
User ID. |
account_name |
String |
Username. |
user_type |
String |
User type. The options are IAM, SELF-BUILT, and DEFAULT. |
sys_role |
Integer |
User role. The options include:
|
effective_time |
Long |
Effective timestamp. |
Example Request
GET https://{endpoint}/v1/{project_id}/quota-users/all?account_name=&sys_role_list=
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
All users are successfully listed. |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot