全部產品
Search
文件中心

:ListServiceRegions

更新時間:Feb 25, 2025

調用ListServiceRegions介面查詢指定加速地區下Smart Access Gateway支援加速訪問的應用的服務地區。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String ListServiceRegions

要執行的操作。取值:ListServiceRegions

RegionId String cn-shanghai

加速地區ID,即要加速訪問應用的使用者所在的地區ID。

取值:cn-shanghai

返回資料

名稱 類型 樣本值 描述
ServiceRegions Array of String cn-hongkong

服務地區ID。

您可以通過調用DescribeRegions介面查詢地區ID對應的地區資訊。

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

請求ID。

樣本

請求樣本

http(s)://[Endpoint]/?Action=ListServiceRegions
&RegionId=cn-shanghai
&公用請求參數

正常返回樣本

XML格式

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格式

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" ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。