Manually creates a synchronization task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateRepositorySync |
create |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The source instance ID. |
cri-hpdfkc6utbaq**** |
| RepoId |
string |
Yes |
The ID of the image repository in the source instance. |
crr-iql7jalx4g0**** |
| Tag |
string |
Yes |
The image tag in the source instance. |
tag1 |
| TargetRegionId |
string |
Yes |
The region ID of the target instance. |
cn-hangzhou |
| TargetInstanceId |
string |
Yes |
The target instance ID. |
cri-ibxs3piklys3**** |
| TargetNamespace |
string |
Yes |
The namespace of the target instance. |
ns1 |
| TargetRepoName |
string |
Yes |
The name of the image repository in the target instance. |
repo1 |
| TargetTag |
string |
Yes |
The image tag in the target instance. |
tag1 |
| TargetUserId |
string |
No |
The UID of the account to which the target instance belongs. |
12345*** |
| Override |
boolean |
No |
Specifies whether to forcibly overwrite existing images. Valid values:
|
true |
| Priority |
integer |
No |
The execution priority of the synchronization task. Synchronization tasks are executed in descending order of priority. Tasks with the same priority are executed in random order. Valid values: 1 to 5. Default value: 3. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
8F8A0BA6-7F06-4BAE-B147-10BD6A25**** |
| SyncTaskId |
string |
The ID of the synchronization task. |
rst-gbch330f0c**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "8F8A0BA6-7F06-4BAE-B147-10BD6A25****",
"SyncTaskId": "rst-gbch330f0c****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.