docs
api
Label
ListLabels

Tag List - ListLabels

Overview

Tag List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListLabels.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
CategorystringTag type, system: System tag; custom: Custom tagYes
OffsetintList start position offset, default is 0No
LimitintReturn data length, default is 10, maximum 100No

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 TagsNo
Labelsarray[ListLabelsLabel]Tag ArrayNo

Data Model

ListLabelsLabel

Field NameTypeDescription InformationRequired
KeystringTag KeyYes
ValuestringTag ValueYes
ResourceCountintResource QuantityYes

Example

Request Example

https://api.surfercloud.com/?Action=ListLabels
&Category=rOXertdp
&Offset=6
&Limit=9

Response Example

{
  "Action": "ListLabelsResponse",
  "Labels": [
    {
      "Key": "rtvfJqwC",
      "ResourceCount": 5,
      "Value": "pxqqmyZV"
    }
  ],
  "RetCode": 0,
  "TotalCount": 7
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved