Querying Whether One-Click Password Reset Is Supported
Function
This API is used to query whether an ECS supports one-click password reset.
- Offline password reset: This method depends on the one-click password reset plug-in. The new password will not be applied unless the ECS is restarted or started.
- Online password reset: This method depends on Cloud Operations Center (COC) and UniAgents provided by Application Operations Management (AOM). The new password is applied immediately without restarting the ECS.
For more information, see Overview of Password Reset.
This API is used to query whether password reset offline is supported.
Debugging
You can debug this API in API Explorer.
Authorization
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permissions listed below are required.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
| ecs:cloudServers:showResetPasswordFlag | read | instance * |
| ecs:cloudServers:get | - |
URI
GET /v1/{project_id}/cloudservers/{server_id}/os-resetpwd-flag
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Definition Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
| server_id | Yes | Definition Specifies the ECS ID. Constraints N/A Range N/A Default Value N/A |
Request
None
Response
Example Request
Query whether a specified ECS supports one-click password reset.
GET https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/os-resetpwd-flag Example Response
{
"resetpwd_flag": "False"
} Returned Values
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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