Deletes an event rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteEventCenterRule

The operation that you want to perform. Set this parameter to DeleteEventCenterRule.

RegionId String No cn-shanghai

The region ID of the Container Registry instance.

InstanceId String No cri-xkx6vujuhay0****

The ID of the Container Registry instance.

RuleId String No crecr-n6pbhgjx*****

The ID of the event rule.

Response parameters

Parameter Type Example Description
RequestId String 031572FA-7D8F-4C05-B790-1071E0E05DE6

The ID of the request.

Code String success

The status code.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteEventCenterRule
&InstanceId=cri-xkx6vujuhay0****
&RuleId=crecr-n6pbhgjx*****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>
<Code>success</Code>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "031572FA-7D8F-4C05-B790-1071E0E05DE6",
  "Code" : "success"
}

Error codes

For a list of error codes, visit the API Error Center.