All Products
Search
Document Center

Container Registry:ListChartRelease

Last Updated:Apr 24, 2024

Queries the versions of a chart in 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:ListChartReleaseRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-xkx6vujuhay0****
RepoNamestringYes

The name of the repository.

repo1
RepoNamespaceNamestringYes

The name of the namespace.

ns1
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

20
ChartstringNo

The chart whose versions you want to query.

null

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

F68823F6-F1B5-4A4E-8421-A83CAB8F2963
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
ChartReleasesobject []

The list of chart versions.

Statusstring

The status of the chart.

ENABLED
ModifiedTimelong

The time when the chart was last modified.

1571930323000
RepoIdstring

The ID of the chart repository.

crcr-gpsu7b8chmxk****
Releasestring

The version number of the chart.

0.1.0
Sizestring

The size of the chart of the version. Unit: bytes.

2826
InstanceIdstring

The ID of the instance.

cri-xkx6vujuhay0****
Chartstring

The name of the chart version.

chart1

Examples

Sample success responses

JSONformat

{
  "RequestId": "F68823F6-F1B5-4A4E-8421-A83CAB8F2963",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": "1",
  "ChartReleases": [
    {
      "Status": "ENABLED",
      "ModifiedTime": 1571930323000,
      "RepoId": "crcr-gpsu7b8chmxk****",
      "Release": "0.1.0",
      "Size": "2826",
      "InstanceId": "cri-xkx6vujuhay0****",
      "Chart": "chart1"
    }
  ]
}

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.