Help Center> Config> API Reference> API> Region Management> Querying Regions Visible to a User

Querying Regions Visible to a User

Function

This API is used to query regions visible to a user

URI

GET /v1/resource-manager/domains/{domain_id}/regions

Table 1 Path parameter

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Specifies the account ID.

Maximum length: 36

Request Parameters

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

X-Language

No

String

Specifies the language of the information to return.

Default value: zh-cn

Possible values are as follows:

  • zh-cn

  • en-us

Response Parameters

Status code: 200

Table 3 Response body parameter

Parameter

Type

Description

value

Array of Region objects

Specifies the region list.

Table 4 Region

Parameter

Type

Description

region_id

String

Specifies the region ID.

display_name

String

Specifies the display name of the region.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Example Request

None

Example Response

Status code: 200

Operation succeeded.

[ {
  "region_id" : "cn-north-1",
   "display_name": "CN North-Beijng1",
}, {
  "region_id" : "cn-east-3",
    "display_name": "CN East-Shanghai1"
} ]

Status Codes

Status Code

Description

200

Operation succeeded.

400

Invalid parameter.

403

Authentication failed.

404

User not found.

500

Internal server error.

Error Codes

See Error Codes.