Updating the Status of a User Pass
Function
This API is used to update statuses of user passes.
URI
PUT /v1/{project_id}/quota-users
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain the project ID, see Obtaining a Project ID. |
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. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
user_id_list |
Yes |
Array of strings |
User ID list. |
sys_role |
Yes |
Integer |
User role. The options include:
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
Boolean |
Whether the request is successful. The options include true and false. |
Example Request
PUT https://{endpoint}/v1/{project_id}/quota-users
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
The user pass status is successfully edited. |
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