All Products
Search
Document Center

Container Registry:GetRepoBuildRecord

Last Updated:Jan 10, 2024

Queries the information about image building records of a repository.

Debugging

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

Debug

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

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
BuildRecordIdstringYes

The ID of the image building record.

a78ec6fb-16ea-4649-93b7-f52afba7d****

Response parameters

ParameterTypeDescriptionExample
object
Statusstring

The status of the instance.

true
EndTimelong

The time when the image building was completed.

1568718698000
StartTimelong

The time when the image building started.

1568718468000
RequestIdstring

The ID of the request.

a78ec6fb-16ea-4649-93b7-f52afba7d9de1
Codestring

The return value.

success
IsSuccessboolean

Indicates whether the request is successful.

true
BuildRecordIdstring

The ID of the image building record.

79174CBA-8556-443A-8976-22C922D7****
Imageobject

The information about the image.

RepoNamespaceNamestring

The name of the namespace to which the image repository belongs.

test
ImageTagstring

The tag of the image.

master
RepoNamestring

The name of the image repository.

test

Examples

Sample success responses

JSONformat

{
  "Status": "true",
  "EndTime": 1568718698000,
  "StartTime": 1568718468000,
  "RequestId": "a78ec6fb-16ea-4649-93b7-f52afba7d9de1\t",
  "Code": "success",
  "IsSuccess": true,
  "BuildRecordId": "79174CBA-8556-443A-8976-22C922D7****",
  "Image": {
    "RepoNamespaceName": "test",
    "ImageTag": "master",
    "RepoName": "test"
  }
}

JSONformat

{
  "Status": "true",
  "EndTime": 1568718698000,
  "StartTime": 1568718468000,
  "RequestId": "a78ec6fb-16ea-4649-93b7-f52afba7d9de1\t",
  "Code": "success",
  "IsSuccess": true,
  "BuildRecordId": "79174CBA-8556-443A-8976-22C922D7****",
  "Image": {
    "RepoNamespaceName": "test",
    "ImageTag": "master",
    "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.