All Products
Search
Document Center

AnalyticDB:DescribeVSwitchs

Last Updated:Jan 08, 2026

Queries a list of available vSwitches.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
VpcIdstringNo

The virtual private cloud (VPC) ID.

Note You can call the DescribeDBClusters operation to query the VPC ID.
vpc-2ze1lz7nk4pn4zwy1j7pm
ZoneIdstringNo

The zone ID.

Note You can call the DescribeRegions operation to query the most recent zone list.
cn-hangzhou-h

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

1B892DA2-9ABC-5CC0-AD73-405479C3FA53
VSwitchesobject

The queried vSwitches.

VSwitcharray<object>

The queried vSwitch.

VSwitchobject

Details of the vSwitch.

Statusstring

The state of the vSwitch. Valid values: Pending: the vSwitch is being configured. Available: the vSwitch is available.

Available
IsDefaultboolean

Indicates whether the vSwitch is the default vSwitch. Valid values: true: The vSwitch is the default vSwitch. false: The vSwitch is not the default vSwitch.

true
VSwitchIdstring

The vSwitch ID.

vsw-25bcdxs7pv1****
CidrBlockstring

The IPv4 CIDR block of the vSwitch.

172.16.0.0/24
RegionNostring

The region ID of the vSwitch.

cn-hangzhou
GmtCreatestring

The time when the vSwitch was created.

2022-01-18T12:43:57Z
AliUidstring

The ID of the Resource Access Management (RAM) user.

195813423043****
GmtModifiedstring

The time when the vSwitch was modified.

2022-01-22T12:43:57Z
Bidstring

The ID of the user channel.

26842
IzNostring

The zone ID of the vSwitch.

cn-hangzhou-k
VSwitchNamestring

The name of the vSwitch.

VSW-Test-hangzhou-I

Examples

Sample success responses

JSONformat

{
  "RequestId": "1B892DA2-9ABC-5CC0-AD73-405479C3FA53",
  "VSwitches": {
    "VSwitch": [
      {
        "Status": "Available",
        "IsDefault": true,
        "VSwitchId": "vsw-25bcdxs7pv1****",
        "CidrBlock": "172.16.0.0/24",
        "RegionNo": "cn-hangzhou",
        "GmtCreate": "2022-01-18T12:43:57Z",
        "AliUid": "195813423043****",
        "GmtModified": "2022-01-22T12:43:57Z",
        "Bid": 26842,
        "IzNo": "cn-hangzhou-k",
        "VSwitchName": "VSW-Test-hangzhou-I"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history