docs
api
Public Image Repository(UHub)
GetImageTag

Get Image Tag - GetImageTag

Overview

Get Image Tag

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetImageTag.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
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, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
RepoNamestringImage Repository NameYes
ImageNamestringImage NameYes
OffsetintOffset, default 0No
LimitintNumber of acquisitions each time, default is 20No
TagNamestringBy default, it is not written. If filled in, it represents a query for that tag, otherwise all tags are queried.No

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
TotalCountintTotal number of tagsYes
TagSetarray[TagSet]Tag ListYes

Data Model

TagSet

Field NameTypeDescription InformationRequired
UpdateTimestringImage Update TimeYes
TagNamestringTag NameYes
DigeststringImage digest valueNo

Example

Request Example

https://api.surfercloud.com/?Action=GetImageTag
&ProjectId=BvXJygZe
&RepoName=HOJJPcie
&ImageName=PWKlOfuO
&Offset=9
&Limit=9
&TagName=uuEBQFTj

Response Example

{
  "Action": "GetImageTagResponse",
  "RetCode": 0,
  "TagSet": [
    {
      "Digest": "VzEacruq",
      "TagName": "OLlvXCrO",
      "UpdateTime": "CTydYXMK"
    }
  ],
  "TotalCount": 5
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved