Creates an image synchronization task based on a manual synchronization rule.


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 CreateRepoSyncTaskByRule

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

InstanceId String Yes cri-hpdfkc6utbaqi522

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-hnoq7j93or3keawe

The ID of the image repository to be synchronized.

SyncRuleId String Yes crsr-o8n4dijbumgqldqe

The ID of the synchronization rule.

Tag String Yes 1.24

The version of the image to be synchronized.

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 17A4C658-AE8F-4A08-821F-EDCB5FC74EE8

The ID of the request.

SyncTaskId String rst-biu4u4pm4it51124

The ID of the synchronization task.


Sample requests

http(s)://[Endpoint]/? Action=CreateRepoSyncTaskByRule
&<Common request parameters>

Sample success responses

JSON format

    "IsSuccess": true,
    "RequestId": "17A4C658-AE8F-4A08-821F-EDCB5FC74EE8",
    "SyncTaskId": "rst-biu4u4pm4it51124",
    "Code": "success"

XML format


Error codes

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