Queries the detailed information about a vSwitch.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeVSwitchAttributes | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
VSwitchId | string | Yes | The ID of the vSwitch. | vsw-25naue4g**** |
RegionId | string | No | The region ID of the virtual private cloud (VPC) to which the custom route table belongs. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DryRun | boolean | No | Specifies whether to perform only a dry run, without performing the actual request. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"VpcId": "vpc-257gq642n****",
"Status": "Pending",
"CreationTime": "2021-08-22T10:40:25Z",
"IsDefault": false,
"AvailableIpAddressCount": 12,
"NetworkAclId": "1",
"OwnerId": 287683832402436800,
"VSwitchId": "vsw-25b7pv15t****",
"RequestId": "7B48B4B9-1EAD-469F-B488-594DAB4B6A1A",
"CidrBlock": "192.168.0.1/24",
"Description": "abc",
"ResourceGroupId": "rg-acfmxazb4ph****",
"ZoneId": "cn-beijing-a",
"Ipv6CidrBlock": "2408:XXXX:3c5:44e::/64",
"VSwitchName": "test",
"ShareType": "Shared",
"EnabledIpv6": true,
"RouteTable": {
"RouteTableId": "vtb-bp145q7glnuzdv****",
"RouteTableType": "System"
},
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidVSwitchId.NotFound | Specified VSwitch can not found. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-07-05 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-05-22 | The Error code has changed. The response structure of the API has changed | View Change Details |