Querying Second-Level Monitoring Configurations
API Description
This API is used to query second-level monitoring configurations.
URI
- URI format
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch
- URI example
https://dds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/054e292c9880d4992f02c0196d3ein02/monitoring-by-seconds/switch
Table 1 Request parameters Name
Mandatory
Type
Description
project_id
Yes
String
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID.
instance_id
Yes
String
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.
Requests
- Parameter description
Table 2 Request header parameters Name
Mandatory
Type
Description
X-Auth-Token
Yes
String
User token obtained from IAM. For details, see Authentication.
Responses
- Parameter description
Table 3 Response body parameters Name
Type
Description
enabled
Boolean
Whether second-level monitoring is enabled.
The value true indicates that the function is enabled, and the value false indicates that the function is disabled.
- Response example
{ "enabled" : false }
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
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