RemoveResourceFromRules
- Print
- PDF
RemoveResourceFromRules
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API deletes a monitored target from an event rule's monitored target group.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/monitor/removeResourceFromRules
Method: POST
Request header
The request headers specified in common settings are required.
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request Body
Category | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
prodKey | Y | String | Product's cw_key | |
resourceId | Y | String | Monitored target ID to delete | |
ruleGroupIds | Y | List<String> | min=1 | Event Rule id |
Example
Request example
POST /cw_fea/real/cw/api/rule/group/monitor/removeResourceFromRules
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
{
"prodKey": "xxxxxxxxxxxxxxxxxx",
"resourceId": "ID of a monitored target",
"ruleGroupIds": [
// Event Rule id
// Multiple event rule ID inputs are allowed.
"xxxxxxxxxxxxxxxxxx"
]
}
Response example
The API returns HTTP code 200 without a response body if the monitored target is deleted without any errors.
Was this article helpful?