All Products
Search
Document Center

Container Registry:ListChain

Last Updated:Nov 07, 2024

Queries delivery chains.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:ListChainget
  • Repository
    acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-4cdrlqmhn4gm****
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

10
RepoNamespaceNamestringNo

The name of the namespace.

ns1
RepoNamestringNo

The name of the image repository.

repo1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

85A99B10-3926-5201-958E-C06FA47F****
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.

1
TotalCountinteger

The total number of delivery chains.

1
Chainsarray<object>

The list of delivery chains.

Chainsobject
ModifiedTimelong

The time when the delivery chain was last modified.

1638259914000
ScopeIdstring

The ID of the delivery chain scope.

crr-nyrh2oko32xb****
Descriptionstring

The description of the delivery chain.

description
CreateTimelong

The time when the delivery chain was created.

1638255427000
ScopeTypestring

The type of the delivery chain scope.

REPOSITORY
ChainIdstring

The ID of the delivery chain.

chi-0ops0gsmw5x2****
InstanceIdstring

The ID of the instance.

cri-4cdrlqmhn4gm****
Namestring

The name of the delivery chain.

test
ScopeExcludearray

Repositories to which the delivery chain does not apply.

scopeExcludestring

The names of the repositories to which the delivery chain does not apply. Separate multiple repository names with commas (,).

repo_name1,repo_name2

Examples

Sample success responses

JSONformat

{
  "RequestId": "85A99B10-3926-5201-958E-C06FA47F****",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 1,
  "TotalCount": 1,
  "Chains": [
    {
      "ModifiedTime": 1638259914000,
      "ScopeId": "crr-nyrh2oko32xb****",
      "Description": "description",
      "CreateTime": 1638255427000,
      "ScopeType": "REPOSITORY",
      "ChainId": "chi-0ops0gsmw5x2****",
      "InstanceId": "cri-4cdrlqmhn4gm****",
      "Name": "test",
      "ScopeExclude": [
        "repo_name1,repo_name2"
      ]
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history