All Products
Search
Document Center

Container Registry:GetRepoTagManifest

Last Updated:Mar 01, 2024

Queries the manifest information of an image tag.

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:GetRepositoryManifestRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
TagstringYes

The tag of the image.

master
SchemaVersionintegerNo

The schema version of the manifest. Valid values: 1 and 2.

2
RepoIdstringYes

The ID of the repository.

crr-kwgb20p8wwmh****

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The return value.

success
IsSuccessboolean

Indicates whether the request is successful.

true
RequestIdstring

The ID of the request.

D39D7151-0299-47E3-B948-E49E1EA8D406
Manifestobject

The information about the image manifest.

Tagstring

The tag of the image.

master
Namestring

The name.

null
MediaTypestring

The type.

application/vnd.docker.distribution.manifest.v2+json
SchemaVersioninteger

The schema version of the manifest.

2
Architecturestring

Architecture.

null
FsLayersobject []

The digest of the referenced filesystem image layer.

BlobSumstring

A list of filesystem layer blob sums contained in this image.

null
Historyobject []

A list of unstructured historical data for V1 compatibility.

V1Compatibilityobject

The raw V1 compatibility information.

null
Signaturesobject []

The information about signatures.

Signaturestring

The signature for the image manifest.

null
Headerobject

The header information of the signature.

null
Protectedstring

The signed protected header.

null
Layersobject []

The information about image layers.

Digeststring

The digest of the image.

sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f
MediaTypestring

The MIME type of the configuration file.

application/vnd.docker.image.rootfs.diff.tar.gzip
Sizelong

Size.

32654
Configobject

The configuration information.

Digeststring

The digest of the image.

sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7
MediaTypestring

The MIME type of the configuration file.

application/vnd.docker.container.image.v1+json
Sizelong

Size

7023

Examples

Sample success responses

JSONformat

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "D39D7151-0299-47E3-B948-E49E1EA8D406",
  "Manifest": {
    "Tag": "master",
    "Name": "null",
    "MediaType": "application/vnd.docker.distribution.manifest.v2+json",
    "SchemaVersion": 2,
    "Architecture": "null",
    "FsLayers": [
      {
        "BlobSum": "null"
      }
    ],
    "History": [
      {
        "V1Compatibility": null
      }
    ],
    "Signatures": [
      {
        "Signature": "null",
        "Header": null,
        "Protected": "null"
      }
    ],
    "Layers": [
      {
        "Digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
        "MediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
        "Size": 32654
      }
    ],
    "Config": {
      "Digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7",
      "MediaType": "application/vnd.docker.container.image.v1+json",
      "Size": 7023
    }
  }
}

JSONformat

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "D39D7151-0299-47E3-B948-E49E1EA8D406",
  "Manifest": {
    "Tag": "master",
    "Name": "null",
    "MediaType": "application/vnd.docker.distribution.manifest.v2+json",
    "SchemaVersion": 2,
    "Architecture": "null",
    "FsLayers": [
      {
        "BlobSum": "null"
      }
    ],
    "History": [
      {
        "V1Compatibility": null
      }
    ],
    "Signatures": [
      {
        "Signature": "null",
        "Header": null,
        "Protected": "null"
      }
    ],
    "Layers": [
      {
        "Digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
        "MediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
        "Size": 32654
      }
    ],
    "Config": {
      "Digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7",
      "MediaType": "application/vnd.docker.container.image.v1+json",
      "Size": 7023
    }
  }
}

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.

Change history

Change timeSummary of changesOperation
2023-08-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
    delete Error Codes: 500