All Products
Search
Document Center

Container Registry:CreateRepoSyncTask

Last Updated:Apr 18, 2023

Manually creates an image synchronization task.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the source instance.

cri-hpdfkc6utbaq****
RepoIdstringYes

The ID of the image repository of the source instance.

crr-iql7jalx4g0****
TagstringYes

The image tag of the source instance.

tag1
TargetRegionIdstringYes

The region ID of the destination instance.

cn-hangzhou
TargetInstanceIdstringYes

The ID of the destination instance.

cri-ibxs3piklys3****
TargetNamespacestringYes

The namespace of the destination instance.

ns1
TargetRepoNamestringYes

The image repository name of the destination instance.

repo1
TargetTagstringYes

The image tag of the destination instance.

tag1
TargetUserIdstringNo

The user ID (UID) of the Alibaba Cloud account to which the destination instance belongs.

12345***
OverridebooleanNo

Specifies whether to forcibly overwrite existing images. Valid values:

  • true: forcibly overwrites existing images.
  • false: does not forcibly overwrite existing images.
true

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The return value.

success
IsSuccessboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
RequestIdstring

The ID of the request.

8F8A0BA6-7F06-4BAE-B147-10BD6A25****
SyncTaskIdstring

The ID of the synchronization task.

rst-gbch330f0c****

Examples

Sample success responses

JSONformat

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "8F8A0BA6-7F06-4BAE-B147-10BD6A25****",
  "SyncTaskId": "rst-gbch330f0c****"
}

Error codes

HTTP status codeError codeError message
403NoPrivilegeAccess denied for this user.
500SystemErrorUnknown error.

For a list of error codes, visit the Service error codes.