Deletes an image build rule of a repository.

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 DeleteRepoBuildRule

The operation that you want to perform. Set the value to DeleteRepoBuildRule.

BuildRuleId String Yes crbr-36tffn0kouvi****

The ID of the image build rule.

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-xwvi3osiy4ff****

The ID of the repository.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

RequestId String 2E3F55BF-FA7B-454E-B2C6-85265E243ADC

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteRepoBuildRule
&BuildRuleId=crbr-36tffn0kouvi****
&InstanceId=cri-xkx6vujuhay0****
&RegionId=cn-shanghai
&RepoId=crr-xwvi3osiy4ff****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>2E3F55BF-FA7B-454E-B2C6-85265E243ADC</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"2E3F55BF-FA7B-454E-B2C6-85265E243ADC",
    "Code":"success"
}

Error codes

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