Queries the chart namespaces of a Container Registry instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListNamespace |
get |
*ChartRepository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| NamespaceStatus |
string |
No |
The status of the namespace. Valid values:
|
NORMAL |
| NamespaceName |
string |
No |
The name of the namespace. |
test |
| PageNo |
integer |
No |
The number of the page to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F56D589D-AF7F-4900-BA46-62C780AC2C10 |
| Code |
string |
The return value. |
success |
| PageNo |
integer |
The page number of the returned page. |
1 |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| TotalCount |
string |
The total number of returned entries. |
1 |
| Namespaces |
array<object> |
The namespaces. |
|
|
object |
|||
| DefaultRepoType |
string |
The default repository type. Valid values:
|
PUBLIC |
| NamespaceStatus |
string |
The status of the namespace. Valid values:
|
NORMAL |
| NamespaceId |
string |
The ID of the namespace. |
null |
| AutoCreateRepo |
boolean |
Indicates whether a repository is automatically created when a chart is pushed to the namespace. |
true |
| InstanceId |
string |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| NamespaceName |
string |
The name of the namespace. |
test |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfm4n5kzyf**** |
Examples
Success response
JSON format
{
"RequestId": "F56D589D-AF7F-4900-BA46-62C780AC2C10",
"Code": "success",
"PageNo": 1,
"IsSuccess": true,
"PageSize": 30,
"TotalCount": "1",
"Namespaces": [
{
"DefaultRepoType": "PUBLIC",
"NamespaceStatus": "NORMAL",
"NamespaceId": "null",
"AutoCreateRepo": true,
"InstanceId": "cri-kmsiwlxxdcva****",
"NamespaceName": "test",
"ResourceGroupId": "rg-acfm4n5kzyf****"
}
]
}
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.