docs
api
Public Image Repository(UHub)
GetRepo

Get Image Repository - GetRepo

Overview

Get Image Repository

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetRepo.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, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
TypestringPrivate private repository, Public public repository, Default is publicNo
OffsetintOffset, default 0No
LimitintQuantity, 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
TotalCountintTotal number of repositoriesYes
RepoSetarray[RepoSet]Image Repository ListYes

Data Model

RepoSet

Field NameTypeDescription InformationRequired
RepoNamestringImage Repository NameYes
CreateTimestringCreation Time of the WarehouseYes
UpdateTimestringWarehouse Update TimeYes
DescriptionstringImage Repository DescriptionYes
IsSharedstringImage repository type, false for private; true for publicYes
IsOutSidestringCan the image repository be accessed from the internet, can be set to true, cannot be set to falseYes

Example

Request Example

https://api.surfercloud.com/?Action=GetRepo
&ProjectId=DPQzQxpe
&Type=EzVxntiX
&Offset=1
&Limit=3
&ProjectId=uhpPXDet

Response Example

{
  "Action": "GetRepoResponse",
  "RepoSet": [
    "ntmEsbYx",
    "ORXeSVYD",
    "NLnhyWGk",
    "RjXuIDDg",
    "qrDktRNL",
    "aVhDFvep",
    "JvxMmIMA",
    "BlemVnAI",
    "uekjGZaL"
  ],
  "RetCode": 0,
  "TotalCount": 2
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved