Manually creates an image synchronization task.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| InstanceId | string | Yes | The ID of the source instance. | cri-hpdfkc6utbaq**** |
| RepoId | string | Yes | The ID of the image repository of the source instance. | crr-iql7jalx4g0**** |
| Tag | string | Yes | The image tag of the source instance. | tag1 |
| TargetRegionId | string | Yes | The region ID of the destination instance. | cn-hangzhou |
| TargetInstanceId | string | Yes | The ID of the destination instance. | cri-ibxs3piklys3**** |
| TargetNamespace | string | Yes | The namespace of the destination instance. | ns1 |
| TargetRepoName | string | Yes | The image repository name of the destination instance. | repo1 |
| TargetTag | string | Yes | The image tag of the destination instance. | tag1 |
| TargetUserId | string | No | The user ID (UID) of the Alibaba Cloud account to which the destination instance belongs. | 12345*** |
| Override | boolean | No | Specifies whether to forcibly overwrite existing images. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSONformat
{
"Code": "success",
"IsSuccess": true,
"RequestId": "8F8A0BA6-7F06-4BAE-B147-10BD6A25****",
"SyncTaskId": "rst-gbch330f0c****"
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 403 | NoPrivilege | Access denied for this user. |
| 500 | SystemError | Unknown error. |
For a list of error codes, visit the Service error codes.