• Auto Scaling

as
  1. Help Center
  2. Auto Scaling
  3. Developer Guide
  4. Appendix
  5. Response Parameters for Querying VPCs

Response Parameters for Querying VPCs

Response parameters are as follows.

Parameter description

Table 1 Response parameter

Name

Type

Description

vpcs

List data structure

Specifies the VPC list.

Descriptions of vpcs fields

Table 2 Description of the vpcs field

Name

Type

Description

id

String

Specifies a resource ID in UUID format.

name

String

Specifies the VPC name.

cidr

String

Specifies the available IP address ranges for subnets in the VPC.

status

String

  • Specifies the VPC status.
  • The value can be CREATING (creating) or OK (successfully created).

routes

List

  • Specifies the route information.
  • For details, see the description of the route object.

enable_shared_snat

Boolean

Specifies whether the shared SNAT function is enabled. The value true indicates that the function is enabled, and the value false indicates that the function is not enabled.

Descriptions of route fields

Table 3 Description of the route field

Name

Type

Description

destination

String

  • Specifies the destination network segment of a route.
  • The value must be in the CIDR format. Currently, only the value 0.0.0.0/0 is supported.

nexthop

String

  • Specifies the next hop of a route.
  • The value must be an IP address and must belong to the subnet in the VPC. Otherwise, this value does not take effect.

Example response

{
    "vpcs": [
        {
            "id": "13551d6b-755d-4757-b956-536f674975c0",
            "name": "default",
            "cidr": "172.16.0.0/16",
            "status": "OK",
            
            "routes": null,
            "enable_shared_snat": false
        },
        {
            "id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85",
            "name": "222",
            "cidr": "192.168.0.0/16",
            "status": "OK",
            
            "routes": null,
            "enable_shared_snat": false
        },
        {
            "id": "99d9d709-8478-4b46-9f3f-2206b1023fd3",
            "name": "vpc",
            "cidr": "192.168.0.0/16",
            "status": "OK",
            
            "routes": null,
            "enable_shared_snat": false
        }
    ]
}