Queries the details of a chart namespace in a Container Registry instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetNamespace |
get |
*ChartNamespace
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-xkx6vujuhay0**** |
| NamespaceName |
string |
Yes |
The name of the namespace. |
ns1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DefaultRepoType |
string |
The default repository type. Valid values:
|
PRIVATE |
| NamespaceId |
string |
The ID of the namespace. |
crcn-43dhbjbyt2xl**** |
| NamespaceStatus |
string |
The status of the namespace. Valid values:
|
NORMAL |
| RequestId |
string |
The ID of the request. |
CD71CF13-93AA-4805-848B-69B2DD543A9A |
| Code |
string |
The return value. |
success |
| InstanceId |
string |
The ID of the instance. |
cri-xkx6vujuhay0**** |
| AutoCreateRepo |
boolean |
Indicates whether repositories are automatically created in the namespace. Valid values:
|
true |
| IsSuccess |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| NamespaceName |
string |
The name of the namespace. |
ns1 |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfmv36i4is**** |
Examples
Success response
JSON format
{
"DefaultRepoType": "PRIVATE",
"NamespaceId": "crcn-43dhbjbyt2xl****",
"NamespaceStatus": "NORMAL",
"RequestId": "CD71CF13-93AA-4805-848B-69B2DD543A9A",
"Code": "success",
"InstanceId": "cri-xkx6vujuhay0****",
"AutoCreateRepo": true,
"IsSuccess": true,
"NamespaceName": "ns1",
"ResourceGroupId": "rg-acfmv36i4is****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.