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-shac42yvqzv****

The ID of the instance.

NamespaceName String Yes ns

The name of the source 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 operation is successful.

RequestId String C4C7DD0C-C9D6-437A-A7EE-8BY*****

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "C4C7DD0C-C9D6-437A-A7EE-8BY*****",
    "Code": "success"

Error codes

HttpCode Error code Error message Description
500 SystemError A system error occurred. The error code returned because an unknown error has 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 API Error Center.