Unbind Alarm Rule and Object

Last updated: 2020-06-05 21:53:49

    Note:

    This is a legacy API which has been hidden and will no longer be updated.

    1. API Description

    This API (UnbindAlarmRuleObjects) is used to unbind alarm rule from object. Once unbound from the object, the alarm rule will no longer analyze the data reported by the object.

    Domain name: monitor.api.qcloud.com

    2. Input Parameters

    Parameter Name Required Type Description
    alarmRuleId Yes String Rule ID, which can be queried by calling the API Query Alarm Rule (DescribeAlarmRuleList)
    dimensions.n.name Yes String Key of the dimension group, which can be queried by calling the API Query Objects Bound with Alarm Rule (DescribeAlarmRuleByObject)
    dimensions.n.value Yes string Value of the dimension group, which can be queried by calling the API Query Objects Bound with Alarm Rule (DescribeAlarmRuleByObject)

    3. Output Parameters

    Parameter Name Type Description
    code Int Error code, 0: Successful. Other values: Failed. For more information, please see Common Error Codes on the Error Codes page
    message String Error message

    4. Example

    Input

    https://monitor.api.qcloud.com/v2/index.php?
    &<Common request parameters>
    &alarmRuleId = policy-f3h1bxvcsb 
    &dimensions.0.name=diskname
    &dimensions.1.name=ip
    &dimensions.0.value=sda
    &dimensions.1.value=172.31.58.160
    

    Output

    {
        "code":"0",
        "message":""
    }

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help