Querying the O&M Account Status of a Cluster
Function
This API is used to query the status of a database O&M account.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/clusters/{cluster_id}/db-manager/om-user/status
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
cluster_id |
Yes |
String |
Definition Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID. Constraints The value must be a valid DWS cluster ID. Range It is a 36-digit UUID. Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error_code |
Integer |
Definition Error code. Non-zero values indicate abnormal scenarios. Range N/A |
error_msg |
String |
Definition Error message. Range N/A |
om_user_info |
DatabaseOmUserInfo object |
Definition O&M user information. Range N/A |
Example Requests
Querying the O&M Account Status
https://{Endpoint}/dws/rest-dms/v1.0/05f2cff45100d5112f4bc00b794ea08e/clusters/e7107fab-cac0-4261-916b-7f32b3053034/db-manager/om-user/status { "error_code" : 0, "error_msg" : null, "om_user_info" : { "om_user_status" : "on", "om_user_expires_time" : 1684918485000 } }
Example Responses
Status code: 200
Query succeeded.
{ "error_code" : 0, "error_msg" : null, "om_user_info" : null }
Status Codes
Status Code |
Description |
---|---|
200 |
Query succeeded. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
You do not have required permissions. |
404 |
No resources found. |
500 |
Internal server error. |
503 |
Service unavailable. |
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