Queries the configurations of a VSwitch.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DescribeVSwitchAttributes

The name of this action. Value: 


RegionId String Yes cn-hangzhou

The region ID of the VPC to which the route table belongs.

VSwitchId String Yes vsw-25naue4gz

The ID of the VSwitch.

Response parameters

Parameter Type Example value Description
AvailableIpAddressCount Long 12

The number of available IP addresses.

CidrBlock String

The private CIDR block of the VSwitch.

CloudResources N/A N/A

Cloud resources under the VSwitch.

 └ResourceCount Integer 1

The number of cloud resources under the VSwitch.

 └ResourceType String nat

The type of the cloud resource.

CreationTime String 2017-08-22T10:40:25Z

The time when the VSwitch was created.

Description String This is my VSwitch.

The description of the VSwitch.

Ipv6CidrBlock String 2408:4004:0:2900::/64

The IPv6 CIDR block of the VSwitch.

IsDefault Boolean false

Whether the VSwitch is the default VSwitch.

RequestId String 7B48B4B9-1EAD-469F-B488-594DAB4B6A1A

The ID of the request.

ResourceGroupId String 123456

The ID of the resource group.

RouteTable N/A N/A

The route table information of the VSwitch.

 └RouteTableId String vtb-bp145q7glnuzdvzu21pom

The ID of the route table associated with the VSwitch.

 └RouteTableType String System

The type of the route table. Valid values:

  • System: system route table.
  • Custom: customer route table.
Status String Pending

The status of the VSwitch. Valid values:

  • Pending: being configured
  • Available: available
VSwitchId String vsw-25b7pv15t

The ID of the VSwitch.

VSwitchName String test

The name of the VSwitch.

VpcId String vpc-257gq642n

The ID of the VPC to which the VSwitch belongs.

ZoneId String cn-beijing-a

The ID of the zone to which the VSwitch belongs.


Request example

Response example

XML format

JSON format

Error codes

See common error codes