Queries the service regions supported by Smart Access Gateway (SAG) in a specified accelerated region.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListServiceRegions

The operation that you want to perform. Set the value to ListServiceRegions.

RegionId String Yes cn-shanghai

The ID of the accelerated region, which is the region ID of users who want to access the applications that you want to accelerate.

Set the value to cn-shanghai.

Response parameters

Parameter Type Example Description
ServiceRegions Array of String cn-hongkong

The service region IDs.

You can call the DescribeRegions operation to query information about the regions that correspond to the region IDs.

RequestId String DA60C1B6-6351-433D-86B0-5A86C75FB56E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListServiceRegions
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListServiceRegionsResponse>
    <RequestId>DA60C1B6-6351-433D-86B0-5A86C75FB56E</RequestId>
    <ServiceRegions>cn-hongkong</ServiceRegions>
    <ServiceRegions>us-west-1</ServiceRegions>
    <ServiceRegions>eu-west-1</ServiceRegions>
    <ServiceRegions>ap-south-1</ServiceRegions>
    <ServiceRegions>ap-northeast-1</ServiceRegions>
    <ServiceRegions>ap-southeast-2</ServiceRegions>
    <ServiceRegions>eu-central-1</ServiceRegions>
    <ServiceRegions>ap-southeast-1</ServiceRegions>
</ListServiceRegionsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DA60C1B6-6351-433D-86B0-5A86C75FB56E",
  "ServiceRegions" : [ "cn-hongkong", "us-west-1", "eu-west-1", "ap-south-1", "ap-northeast-1", "ap-southeast-2", "eu-central-1", "ap-southeast-1" ]
}

Error codes

For a list of error codes, visit the API Error Center.