All Products
Search
Document Center

Container Registry:ListRepoBuildRecord

Last Updated:Apr 23, 2024

Queries image building records of an image 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:ListRepositoryBuildRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
RepoIdstringYes

The ID of the repository.

crr-tquyps22md8****
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.

9D23DEDF-E91D-434B-B7D5-9D12C648D166
Codestring

The return value.

success
PageNointeger

The page number of the returned page.

1
IsSuccessboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
PageSizeinteger

The number of entries returned per page.

30
TotalCountstring

The total number of returned entries.

1
BuildRecordsobject []

The list of image building records.

EndTimestring

The time when the image building ended.

1572875610000
StartTimestring

The time when the image building started.

1572872207000
BuildStatusstring

The status of the image building.

SUCCESS
BuildRecordIdstring

The ID of the image building record.

537e08ab-735e-415f-b7c2-160eb87f8****
Imageobject

The information about the image.

RepoNamespaceNamestring

The name of the namespace to which the repository belongs.

test
ImageTagstring

The tag of the image.

v0.1
RepoIdstring

The ID of the repository.

crr-gzsrlevmvoaq****
RepoNamestring

The name of the repository.

test

Examples

Sample success responses

JSONformat

{
  "RequestId": "9D23DEDF-E91D-434B-B7D5-9D12C648D166",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": "1",
  "BuildRecords": [
    {
      "EndTime": "1572875610000",
      "StartTime": "1572872207000",
      "BuildStatus": "SUCCESS",
      "BuildRecordId": "537e08ab-735e-415f-b7c2-160eb87f8****",
      "Image": {
        "RepoNamespaceName": "test",
        "ImageTag": "v0.1",
        "RepoId": "crr-gzsrlevmvoaq****",
        "RepoName": "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.