Docs
api
Public Image Repository(UHub)
GetRepoImage

Retrieve the image from the image repository - GetRepoImage

Overview

Retrieve the image from the image repository

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetRepoImage.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
RepoNamestringImage Repository NameYes
OffsetintOffset, default 0No
LimitintDisplay quantity, default is 20No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintYes
ImageSetarray[ImageSet]Image ListYes

Data Model

ImageSet

Field NameTypeDescription InformationRequired
ImageNamestringImage NameYes
PullCountintNumber of times the image was downloadedYes
CreateTimestringCreation TimeYes
UpdateTimestringModification TimeYes
LatestTagstringLatest Pushed TagYes
RepoNamestringImage Repository NameYes

Example

Request Example

https://api.dezai.com/?Action=GetRepoImage
&ProjectId=bbrEuvfC
&RepoName=idkTdEFo
&Offset=6
&Limit=6
&ProjectId=WsHgZAjU

Response Example

{
  "Action": "GetRepoImageResponse",
  "ImageSet": [
    {
      "CreateTime": 5,
      "ImageName": "dCVBnkxg",
      "LatestTag": "iBvvYGkW",
      "PullCount": 4,
      "UpdateTime": 7
    },
    {
      "CreateTime": 2,
      "ImageName": "HxZkUXvp",
      "LatestTag": "KNyBVrNA",
      "PullCount": 2,
      "UpdateTime": 2
    },
    {
      "CreateTime": 2,
      "ImageName": "qCHiVQXX",
      "LatestTag": "dnvIjkJY",
      "PullCount": 6,
      "UpdateTime": 6
    },
    {
      "CreateTime": 9,
      "ImageName": "lJszSnED",
      "LatestTag": "wGBJBifW",
      "PullCount": 1,
      "UpdateTime": 8
    },
    {
      "CreateTime": 7,
      "ImageName": "BfChDnxj",
      "LatestTag": "CdySnxrY",
      "PullCount": 9,
      "UpdateTime": 1
    },
    {
      "CreateTime": 9,
      "ImageName": "HUTQywVu",
      "LatestTag": "zqXMWiRd",
      "PullCount": 1,
      "UpdateTime": 9
    },
    {
      "CreateTime": 8,
      "ImageName": "QfwwaABh",
      "LatestTag": "EymhuHfx",
      "PullCount": 7,
      "UpdateTime": 9
    },
    {
      "CreateTime": 5,
      "ImageName": "ThYJXrVc",
      "LatestTag": "dnXrJOti",
      "PullCount": 4,
      "UpdateTime": 2
    },
    {
      "CreateTime": 2,
      "ImageName": "qzCGPhQD",
      "LatestTag": "MCnyUuwU",
      "PullCount": 6,
      "UpdateTime": 3
    }
  ],
  "RetCode": 0,
  "TotalCount": 5
}