All Products
Search
Document Center

Container Registry:ListChartNamespace

Last Updated:Mar 01, 2024

Queries the namespaces of a chart repository.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cr:ListNamespaceList
  • ChartRepository
    acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
NamespaceStatusstringNo

The status of the namespace. Valid values:

  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.
NORMAL
NamespaceNamestringNo

The name of the namespace.

test
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

30

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

F56D589D-AF7F-4900-BA46-62C780AC2C10
Codestring

The return value.

success
PageNointeger

The page number of the returned page.

1
IsSuccessboolean

Indicates whether the request is successful.

true
PageSizeinteger

The number of entries returned per page.

30
TotalCountstring

The total number of returned entries.

1
Namespacesobject []

The namespaces.

DefaultRepoTypestring

The default repository type. Valid values:

  • PUBLIC: a public repository
  • PRIVATE: a private repository
PUBLIC
NamespaceStatusstring

The status of the namespace. Valid values:

  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.
NORMAL
NamespaceIdstring

The ID of the namespace.

null
AutoCreateRepoboolean

Indicates whether a repository was automatically created when a chart is pushed to the namespace.

true
InstanceIdstring

The ID of the instance.

cri-kmsiwlxxdcva****
NamespaceNamestring

The name of the namespace.

test

Examples

Sample success responses

JSONformat

{
  "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"
    }
  ]
}

Error codes

HTTP status codeError codeError message
403NoPrivilegeAccess denied for this user.
500SystemErrorUnknown error.

For a list of error codes, visit the Service error codes.