All Products
Search
Document Center

Container Registry:ListChainInstance

Last Updated:Mar 01, 2024

Queries execution records of delivery chains.

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

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The operation that you want to perform. Set this parameter to ListChainInstance.

cri-kmsiwlxxdcva****
PageNointegerNo

The time when the delivery chain started.

1
PageSizeintegerNo

The name of the image repository.

30
RepoNamespaceNamestringNo

The name of the delivery chain.

test-namespace
RepoNamestringNo

The time when the delivery chain is completed.

test-repo

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the Container Registry instance.

838D1602-6D8F-47FB-B60A-656645D2****
Codestring

The version of the delivery chain.

success
PageNointeger

30

1
IsSuccessboolean

The execution record of the delivery chain.

true
InstanceIdstring

The page number of the page to return.

cri-kmsiwlxxdcva****
PageSizeinteger

Indicates whether the operation is successful.

30
TotalCountinteger

The name of the repository.

1
ChainInstancesobject []

The number of entries to return on each page.

EndTimelong

The ID of the Container Registry instance.

1636685856000
Statusstring

The status of the delivery chain. Valid values:

  • RUNNING
  • COMPLETE
  • CANCELING
  • CANCELED
COMPLETE
StartTimelong

test-repo

1636685776000
Resultstring

The list of the execution records of delivery chains.

SUCCESS
ChainInstanceIdstring

1

F4CF4DDB-BEF2-5575-****-*******
RepoNamespaceNamestring

The execution result of the delivery chain. Valid values:

  • SUCCESS
  • FAILED
  • CANCELED
  • DENIED
test-ns
RepoNamestring

The ID of the delivery chain.

test-repo
Chainobject

The name of the namespace.

ChainIdstring

The name of the namespace.

chi-m42gbku0****
ChainNamestring

The number of entries returned on each page.

test-chain
Versionlong

The ID of the request.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "838D1602-6D8F-47FB-B60A-656645D2****",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "InstanceId": "cri-kmsiwlxxdcva****",
  "PageSize": 30,
  "TotalCount": 1,
  "ChainInstances": [
    {
      "EndTime": 1636685856000,
      "Status": "COMPLETE",
      "StartTime": 1636685776000,
      "Result": "SUCCESS",
      "ChainInstanceId": "F4CF4DDB-BEF2-5575-****-*******",
      "RepoNamespaceName": "test-ns",
      "RepoName": "test-repo",
      "Chain": {
        "ChainId": "chi-m42gbku0****",
        "ChainName": "test-chain",
        "Version": 1
      }
    }
  ]
}

Error codes

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