調用DescribeAvailableResource查詢某個Region的可用性區域支援的資源售賣情況。

说明 只返回支援售賣的可用性區域及資源類型。

調試

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

請求參數

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

要執行的操作。

取值:DescribeAvailableResource

RegionId String cn-hangzhou

地區ID。

AddressIPVersion String ipv4

IP地址類型。

取值:ipv4|ipv6

AddressType String vpc

網路類型。

取值:vpc|classic-internet|classic-intranet

返回資料

名稱 類型 樣本值 描述
AvailableResources

可用性區域及支援的資源清單。

MasterZoneId String cn-shanghai-a

主可用性區域。

SlaveZoneId String cn-shanghai-b

備可用性區域。

SupportResources

支援的資源。

AddressIPVersion String ipv4

IP地址類型。

取值:ipv4|ipv6

AddressType String classic_internet

網路類型。

取值:vpc|classic-internet|classic-intranet

RequestId String 173B0EEA-22ED-4EE2-91F9-3A1CDDFFBBBA

請求ID。

樣本

請求樣本


http(s)://[Endpoint]/?Action=DescribeAvailableResource
&RegionId=cn-hangzhou
&<公用請求參數>

正常返回樣本

XML 格式

<DescribeAvailableResourceResponse>
	  <RequestId>173B0EEA-22ED-4EE2-91F9-3A1CDDFFBBBA</RequestId>
	  <AvailableResources>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-b</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-a</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-a</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-b</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-c</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-b</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-b</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-c</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-e</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-d</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-f</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-e</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv6</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-d</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-e</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-e</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-f</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-g</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-f</MasterZoneId>
		    </AvailableResource>
		    <AvailableResource>
			      <SupportResources>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_internet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>classic_intranet</AddressType>
				        </SupportResource>
				        <SupportResource>
					          <AddressIPVersion>ipv4</AddressIPVersion>
					          <AddressType>vpc</AddressType>
				        </SupportResource>
			      </SupportResources>
			      <SlaveZoneId>cn-shanghai-f</SlaveZoneId>
			      <MasterZoneId>cn-shanghai-g</MasterZoneId>
		    </AvailableResource>
	  </AvailableResources>
     </DescribeAvailableResourceResponse>

JSON 格式

{
	"RequestId":"173B0EEA-22ED-4EE2-91F9-3A1CDDFFBBBA",
	"AvailableResources":{
		"AvailableResource":[
			{
				"SlaveZoneId":"cn-shanghai-b",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-a"
			},
			{
				"SlaveZoneId":"cn-shanghai-a",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-b"
			},
			{
				"SlaveZoneId":"cn-shanghai-c",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-b"
			},
			{
				"SlaveZoneId":"cn-shanghai-b",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-c"
			},
			{
				"SlaveZoneId":"cn-shanghai-e",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-d"
			},
			{
				"SlaveZoneId":"cn-shanghai-f",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-e"
			},
			{
				"SlaveZoneId":"cn-shanghai-d",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						},
						{
							"AddressIPVersion":"ipv6",
							"AddressType":"classic_internet"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-e"
			},
			{
				"SlaveZoneId":"cn-shanghai-e",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-f"
			},
			{
				"SlaveZoneId":"cn-shanghai-g",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-f"
			},
			{
				"SlaveZoneId":"cn-shanghai-f",
				"SupportResources":{
					"SupportResource":[
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_internet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"classic_intranet"
						},
						{
							"AddressIPVersion":"ipv4",
							"AddressType":"vpc"
						}
					]
				},
				"MasterZoneId":"cn-shanghai-g"
			}
		]
	}
}

錯誤碼

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