DATASOURCE::VPC::VSwitches is used to query created vSwitches.
Syntax
{
"Type": "DATASOURCE::VPC::VSwitches",
"Properties": {
"IsDefault": Boolean,
"DhcpOptionsSetId": String,
"RouteTableId": String,
"VpcId": String,
"ResourceGroupId": String,
"VSwitchIds": List,
"VSwitchOwnerId": String,
"VSwitchName": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
IsDefault | Boolean | No | Yes | Specifies whether to query the default vSwitch in the region where the stack resides. | Valid values:
|
DhcpOptionsSetId | String | No | Yes | The ID of the Dynamic Host Configuration Protocol (DHCP) options set. | None. |
RouteTableId | String | No | Yes | The ID of the route table. | None. |
VpcId | String | No | Yes | The ID of the virtual private cloud (VPC) to which the vSwitch belongs. | None. |
ResourceGroupId | String | No | Yes | The ID of the resource group to which the vSwitch belongs. | None. |
| List | No | Yes | The vSwitch IDs. | You can specify up to 20 vSwitch IDs. |
| String | No | Yes | The ID of the Alibaba Cloud account to which the vSwitch belongs. | None. |
| String | No | Yes | The name of the vSwitch. | None. |
Return values (Fn::GetAtt)
VSwitchIds
: the vSwitch IDs.VSwitches
: details of the vSwitches.
Property | Type | Description | Constraint |
| List | The vSwitch IDs. | Example: |
| List | Details of the vSwitches. | None. |
VpcId | String | The ID of the VPC to which the vSwitch belongs. | Example: |
Status | String | The state of the vSwitch. | Valid values:
|
IsDefault | Boolean | Indicates whether the vSwitch is the default vSwitch. | Valid values:
|
AvailableIpAddressCount | String | The number of available IP addresses in the vSwitch. | None. |
NetworkAclId | String | The ID of the network access control list (ACL). | Example: |
| String | The vSwitch ID. | Example: |
CidrBlock | String | The IPv4 CIDR block of the vSwitch. | None. |
Description | String | The description of the vSwitch. | None. |
ResourceGroupId | String | The ID of the resource group to which the vSwitch belongs. | Example: |
ZoneId | String | The zone to which the vSwitch belongs. | None. |
Ipv6CidrBlock | String | The IPv6 CIDR block of the vSwitch. | None. |
| String | The name of the vSwitch. | None. |
Tags | List | The tags of the vSwitch. | Example:
|
RouteTable | List | Details of the route table. | Example:
|