All Products
Search
Document Center

Server Load Balancer:DescribeAvailableResource

Last Updated:Mar 14, 2024

Queries the available resources and resources that are available for purchase in the zones of a region.

Operation description

Note Only the available resources and zones are returned.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
AddressTypestringNo

The network type.

Valid values: vpc, classic-internet, and classic-intranet.

vpc: an internal Classic Load Balancer (CLB) instance that is deployed in a virtual private cloud (VPC).

classic_internet: a public-facing CLB instance.

classic_intranet: an internal CLB instance that is deployed in a classic network.

vpc
AddressIPVersionstringNo

The type of the IP address.

Valid values: ipv4 and ipv6.

ipv4

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

173B0EEA-22ED-4EE2-91F9-3A1CDDFFBBBA
AvailableResourcesobject []

The zones and the supported resources.

SlaveZoneIdstring

The secondary zone.

cn-shanghai-b
MasterZoneIdstring

The primary zone.

cn-shanghai-a
SupportResourcesobject []

The supported resources.

AddressTypestring

The network type.

Valid values: vpc, classic-internet, and classic-intranet.

classic_internet
AddressIPVersionstring

The type of the IP address.

Valid values: ipv4 and ipv6.

ipv4

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.