Updates the namespace of a Container Registry instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateChartNamespace |
The operation that you want to perform. Set the value to UpdateChartNamespace. |
InstanceId | String | Yes | cri-kmsiwlxxdcva**** |
The ID of the Container Registry instance. |
NamespaceName | String | Yes | test |
The namespace that you want to update. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
AutoCreateRepo | Boolean | No | true |
Specifies whether to automatically create repositories in the namespace. Valid values:
|
DefaultRepoType | String | No | PUBLIC |
The type of the repository. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | success |
The return value. |
IsSuccess | Boolean | true |
Indicates whether the API call is successful. Valid values:
|
RequestId | String | 6877B80A-2895-44C4-BC9E-703B157DEE66 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateChartNamespace
&InstanceId=cri-kmsiwlxxdcva****
&NamespaceName=test
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>6877B80A-2895-44C4-BC9E-703B157DEE66</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"6877B80A-2895-44C4-BC9E-703B157DEE66",
"Code":"success"
}
Error codes
For a list of error codes, visit the API Error Center.