docs
api
Account Management(UAccount)
GetRegion

Get the list of regions and availability zones - GetRegion

Overview

Obtain user's permissions and other information in various data centers

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetRegion.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

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
Regionsarray[RegionInfo]Information of Each Data CenterNo

Data Model

RegionInfo

Field NameTypeDescription InformationRequired
RegionIdintData Center IDYes
RegionNamestringData Center NameYes
IsDefaultbooleanIs the user's current default data centerYes
BitMapsstringThe permission bit of the user in this data centerYes
RegionstringRegion name, such as cn-bjYes
ZonestringAvailability zone name, such as cn-bj-01Yes

Example

Request Example

https://api.surfercloud.com/?Action=GetRegion

Response Example

{
  "Action": "GetRegionResponse",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved