Creates an image tag based on an existing image tag in an image repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateRepoTag |
create |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-shac42yvqzv**** |
| NamespaceName |
string |
Yes |
The name of the namespace. |
ns |
| RepoName |
string |
Yes |
The name of the image repository. |
repo1 |
| FromTag |
string |
Yes |
The source image tag. |
v1 |
| ToTag |
string |
Yes |
The image tag to create. |
v2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Whether the request was successful. |
true |
| RequestId |
string |
The ID of the request. |
C4C7DD0C-C9D6-437A-A7EE-8BY***** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "C4C7DD0C-C9D6-437A-A7EE-8BY*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | A system error occurred. | An unknown error occurred. |
| 403 | NoPrivilege | Access is denied for the user. | The user is not authorized. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.