Queries the available regions for NLB.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceCode |
string |
No |
The service code of the cloud service. Valid value: nlb. |
nlb |
| AcceptLanguage |
string |
No |
The supported language. Valid values:
|
en-US |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the value from your client to ensure that the value is unique across different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request may be different. |
123e4567-e89b-12d3-a456-426655440000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The structure of the returned data. |
||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| Regions |
array<object> |
The list of regions. |
|
|
object |
The region information structure. |
||
| LocalName |
string |
The region name. |
China (Hangzhou) |
| RegionEndpoint |
string |
The endpoint of the region. |
nlb.cn-hangzhou.aliyuncs.com |
| RegionId |
string |
The region ID. |
cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"Regions": [
{
"LocalName": "us-east-1",
"RegionEndpoint": "nlb.cn-hangzhou.aliyuncs.com",
"RegionId": "cn-hangzhou"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SystemBusy | System is busy, please try again later. | The system is busy. Try again later. |
| 400 | IllegalParam | The param of %s is illegal. | The input parameters contain invalid values. Check the input. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.