Deletes an image synchronization rule for 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 DeleteRepoSyncRule

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

InstanceId String Yes cri-hpdfkc6utbaqi5as

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

SyncRuleId String Yes crsr-gk5p2ns1kznsqasd

The ID of the synchronization rule.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String 72DD4198-1BB9-47A3-BC01-EAD1A6D5E173

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteRepoSyncRule
&InstanceId=cri-hpdfkc6utbaqi5as
&RegionId=cn-shanghai
&SyncRuleId=crsr-gk5p2ns1kznsqasd
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"72DD4198-1BB9-47A3-BC01-EAD1A6D5E173",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>72DD4198-1BB9-47A3-BC01-EAD1A6D5E173</RequestId>
<Code>success</Code>

Error codes

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