Creates an image tag based on an existing image tag in an image repository.


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 CreateRepoTag

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

FromTag String Yes v1

The source image tag.

InstanceId String Yes cri-wnwxxxx

The ID of the instance.

NamespaceName String Yes ns1

The name of the namespace.

RegionId String Yes ap-southeast-1

The ID of the region.

RepoName String Yes repo1

The name of the image repository.

ToTag String Yes v2

The image tag that you want to create.

Response parameters

Parameter Type Example Description
Code String success

The return code.

IsSuccess Boolean true

Indicates whether the call was successful.

RequestId String C4C7DD0C-C9D6-437A-A7EE-XXXXXXXXXX

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

HttpCode Error code Error message Description
500 SystemError A system error occurred. The error message returned because an unknown error occurred.
403 NoPrivilege Access is denied for the user. The error message returned because the user has no access permissions.

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