Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
This data source provides a list of VSwitches owned by an Alibaba Cloud account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "vswitchDatasourceName";
const _default = alicloud.getZones({});
const vpc = new alicloud.vpc.Network("vpc", {
cidrBlock: "172.16.0.0/16",
vpcName: name,
});
const vswitch = new alicloud.vpc.Switch("vswitch", {
vswitchName: name,
cidrBlock: "172.16.0.0/24",
vpcId: vpc.id,
availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultGetSwitches = alicloud.vpc.getSwitchesOutput({
nameRegex: vswitch.vswitchName,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "vswitchDatasourceName"
default = alicloud.get_zones()
vpc = alicloud.vpc.Network("vpc",
cidr_block="172.16.0.0/16",
vpc_name=name)
vswitch = alicloud.vpc.Switch("vswitch",
vswitch_name=name,
cidr_block="172.16.0.0/24",
vpc_id=vpc.id,
availability_zone=default.zones[0].id)
default_get_switches = alicloud.vpc.get_switches_output(name_regex=vswitch.vswitch_name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "vswitchDatasourceName"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{}, nil)
if err != nil {
return err
}
vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
CidrBlock: pulumi.String("172.16.0.0/16"),
VpcName: pulumi.String(name),
})
if err != nil {
return err
}
vswitch, err := vpc.NewSwitch(ctx, "vswitch", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/24"),
VpcId: vpc.ID(),
AvailabilityZone: pulumi.String(_default.Zones[0].Id),
})
if err != nil {
return err
}
_ = vpc.GetSwitchesOutput(ctx, vpc.GetSwitchesOutputArgs{
NameRegex: vswitch.VswitchName,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "vswitchDatasourceName";
var @default = AliCloud.GetZones.Invoke();
var vpc = new AliCloud.Vpc.Network("vpc", new()
{
CidrBlock = "172.16.0.0/16",
VpcName = name,
});
var vswitch = new AliCloud.Vpc.Switch("vswitch", new()
{
VswitchName = name,
CidrBlock = "172.16.0.0/24",
VpcId = vpc.Id,
AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
NameRegex = vswitch.VswitchName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("vswitchDatasourceName");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.build());
var vpc = new Network("vpc", NetworkArgs.builder()
.cidrBlock("172.16.0.0/16")
.vpcName(name)
.build());
var vswitch = new Switch("vswitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("172.16.0.0/24")
.vpcId(vpc.id())
.availabilityZone(default_.zones()[0].id())
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.nameRegex(vswitch.vswitchName())
.build());
}
}
configuration:
name:
type: string
default: vswitchDatasourceName
resources:
vpc:
type: alicloud:vpc:Network
properties:
cidrBlock: 172.16.0.0/16
vpcName: ${name}
vswitch:
type: alicloud:vpc:Switch
properties:
vswitchName: ${name}
cidrBlock: 172.16.0.0/24
vpcId: ${vpc.id}
availabilityZone: ${default.zones[0].id}
variables:
default:
fn::invoke:
function: alicloud:getZones
arguments: {}
defaultGetSwitches:
fn::invoke:
function: alicloud:vpc:getSwitches
arguments:
nameRegex: ${vswitch.vswitchName}
Using getSwitches
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSwitches(args: GetSwitchesArgs, opts?: InvokeOptions): Promise<GetSwitchesResult>
function getSwitchesOutput(args: GetSwitchesOutputArgs, opts?: InvokeOptions): Output<GetSwitchesResult>def get_switches(cidr_block: Optional[str] = None,
dry_run: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
is_default: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
route_table_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vswitch_name: Optional[str] = None,
vswitch_owner_id: Optional[int] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSwitchesResult
def get_switches_output(cidr_block: Optional[pulumi.Input[str]] = None,
dry_run: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
is_default: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
route_table_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
vswitch_name: Optional[pulumi.Input[str]] = None,
vswitch_owner_id: Optional[pulumi.Input[int]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSwitchesResult]func GetSwitches(ctx *Context, args *GetSwitchesArgs, opts ...InvokeOption) (*GetSwitchesResult, error)
func GetSwitchesOutput(ctx *Context, args *GetSwitchesOutputArgs, opts ...InvokeOption) GetSwitchesResultOutput> Note: This function is named GetSwitches in the Go SDK.
public static class GetSwitches
{
public static Task<GetSwitchesResult> InvokeAsync(GetSwitchesArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchesResult> Invoke(GetSwitchesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSwitchesResult> getSwitches(GetSwitchesArgs args, InvokeOptions options)
public static Output<GetSwitchesResult> getSwitches(GetSwitchesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:vpc/getSwitches:getSwitches
arguments:
# arguments dictionaryThe following arguments are supported:
- Cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- Dry
Run bool - Specifies whether to precheck this request only. Valid values:
trueandfalse. - Ids List<string>
- A list of vSwitch IDs.
- Is
Default bool - Indicate whether the vSwitch is created by the system.
- Name
Regex string - A regex string to filter results by name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Resource
Group stringId - The Id of resource group which VSWitch belongs.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch. Valid values:
AvailableandPending. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Name string - The name of the vSwitch.
- Vswitch
Owner intId - The vSwitch owner id.
- Zone
Id string - The availability zone of the vSwitch.
- Cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- Dry
Run bool - Specifies whether to precheck this request only. Valid values:
trueandfalse. - Ids []string
- A list of vSwitch IDs.
- Is
Default bool - Indicate whether the vSwitch is created by the system.
- Name
Regex string - A regex string to filter results by name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Resource
Group stringId - The Id of resource group which VSWitch belongs.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch. Valid values:
AvailableandPending. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Name string - The name of the vSwitch.
- Vswitch
Owner intId - The vSwitch owner id.
- Zone
Id string - The availability zone of the vSwitch.
- cidr
Block String - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- dry
Run Boolean - Specifies whether to precheck this request only. Valid values:
trueandfalse. - ids List<String>
- A list of vSwitch IDs.
- is
Default Boolean - Indicate whether the vSwitch is created by the system.
- name
Regex String - A regex string to filter results by name.
- output
File String - File name where to save data source results (after running
pulumi preview). - resource
Group StringId - The Id of resource group which VSWitch belongs.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch. Valid values:
AvailableandPending. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Name String - The name of the vSwitch.
- vswitch
Owner IntegerId - The vSwitch owner id.
- zone
Id String - The availability zone of the vSwitch.
- cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- dry
Run boolean - Specifies whether to precheck this request only. Valid values:
trueandfalse. - ids string[]
- A list of vSwitch IDs.
- is
Default boolean - Indicate whether the vSwitch is created by the system.
- name
Regex string - A regex string to filter results by name.
- output
File string - File name where to save data source results (after running
pulumi preview). - resource
Group stringId - The Id of resource group which VSWitch belongs.
- route
Table stringId - The route table ID of the vSwitch.
- status string
- The status of the vSwitch. Valid values:
AvailableandPending. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - ID of the VPC that owns the vSwitch.
- vswitch
Name string - The name of the vSwitch.
- vswitch
Owner numberId - The vSwitch owner id.
- zone
Id string - The availability zone of the vSwitch.
- cidr_
block str - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- dry_
run bool - Specifies whether to precheck this request only. Valid values:
trueandfalse. - ids Sequence[str]
- A list of vSwitch IDs.
- is_
default bool - Indicate whether the vSwitch is created by the system.
- name_
regex str - A regex string to filter results by name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - resource_
group_ strid - The Id of resource group which VSWitch belongs.
- route_
table_ strid - The route table ID of the vSwitch.
- status str
- The status of the vSwitch. Valid values:
AvailableandPending. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - ID of the VPC that owns the vSwitch.
- vswitch_
name str - The name of the vSwitch.
- vswitch_
owner_ intid - The vSwitch owner id.
- zone_
id str - The availability zone of the vSwitch.
- cidr
Block String - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- dry
Run Boolean - Specifies whether to precheck this request only. Valid values:
trueandfalse. - ids List<String>
- A list of vSwitch IDs.
- is
Default Boolean - Indicate whether the vSwitch is created by the system.
- name
Regex String - A regex string to filter results by name.
- output
File String - File name where to save data source results (after running
pulumi preview). - resource
Group StringId - The Id of resource group which VSWitch belongs.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch. Valid values:
AvailableandPending. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Name String - The name of the vSwitch.
- vswitch
Owner NumberId - The vSwitch owner id.
- zone
Id String - The availability zone of the vSwitch.
getSwitches Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of vSwitch IDs.
- Names List<string>
- A list of vSwitch names.
- Vswitches
List<Pulumi.
Ali Cloud. Vpc. Outputs. Get Switches Vswitch> - A list of VSwitches. Each element contains the following attributes:
- Cidr
Block string - CIDR block of the vSwitch.
- Dry
Run bool - Is
Default bool - Whether the vSwitch is the default one in the region.
- Name
Regex string - Output
File string - Resource
Group stringId - The resource group ID of the vSwitch.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch.
- Dictionary<string, string>
- The Tags of the vSwitch.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Name string - Name of the vSwitch.
- Vswitch
Owner intId - Zone
Id string - ID of the availability zone where the vSwitch is located.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of vSwitch IDs.
- Names []string
- A list of vSwitch names.
- Vswitches
[]Get
Switches Vswitch - A list of VSwitches. Each element contains the following attributes:
- Cidr
Block string - CIDR block of the vSwitch.
- Dry
Run bool - Is
Default bool - Whether the vSwitch is the default one in the region.
- Name
Regex string - Output
File string - Resource
Group stringId - The resource group ID of the vSwitch.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch.
- map[string]string
- The Tags of the vSwitch.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Name string - Name of the vSwitch.
- Vswitch
Owner intId - Zone
Id string - ID of the availability zone where the vSwitch is located.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of vSwitch IDs.
- names List<String>
- A list of vSwitch names.
- vswitches
List<Get
Switches Vswitch> - A list of VSwitches. Each element contains the following attributes:
- cidr
Block String - CIDR block of the vSwitch.
- dry
Run Boolean - is
Default Boolean - Whether the vSwitch is the default one in the region.
- name
Regex String - output
File String - resource
Group StringId - The resource group ID of the vSwitch.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch.
- Map<String,String>
- The Tags of the vSwitch.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Name String - Name of the vSwitch.
- vswitch
Owner IntegerId - zone
Id String - ID of the availability zone where the vSwitch is located.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of vSwitch IDs.
- names string[]
- A list of vSwitch names.
- vswitches
Get
Switches Vswitch[] - A list of VSwitches. Each element contains the following attributes:
- cidr
Block string - CIDR block of the vSwitch.
- dry
Run boolean - is
Default boolean - Whether the vSwitch is the default one in the region.
- name
Regex string - output
File string - resource
Group stringId - The resource group ID of the vSwitch.
- route
Table stringId - The route table ID of the vSwitch.
- status string
- The status of the vSwitch.
- {[key: string]: string}
- The Tags of the vSwitch.
- vpc
Id string - ID of the VPC that owns the vSwitch.
- vswitch
Name string - Name of the vSwitch.
- vswitch
Owner numberId - zone
Id string - ID of the availability zone where the vSwitch is located.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of vSwitch IDs.
- names Sequence[str]
- A list of vSwitch names.
- vswitches
Sequence[Get
Switches Vswitch] - A list of VSwitches. Each element contains the following attributes:
- cidr_
block str - CIDR block of the vSwitch.
- dry_
run bool - is_
default bool - Whether the vSwitch is the default one in the region.
- name_
regex str - output_
file str - resource_
group_ strid - The resource group ID of the vSwitch.
- route_
table_ strid - The route table ID of the vSwitch.
- status str
- The status of the vSwitch.
- Mapping[str, str]
- The Tags of the vSwitch.
- vpc_
id str - ID of the VPC that owns the vSwitch.
- vswitch_
name str - Name of the vSwitch.
- vswitch_
owner_ intid - zone_
id str - ID of the availability zone where the vSwitch is located.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of vSwitch IDs.
- names List<String>
- A list of vSwitch names.
- vswitches List<Property Map>
- A list of VSwitches. Each element contains the following attributes:
- cidr
Block String - CIDR block of the vSwitch.
- dry
Run Boolean - is
Default Boolean - Whether the vSwitch is the default one in the region.
- name
Regex String - output
File String - resource
Group StringId - The resource group ID of the vSwitch.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch.
- Map<String>
- The Tags of the vSwitch.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Name String - Name of the vSwitch.
- vswitch
Owner NumberId - zone
Id String - ID of the availability zone where the vSwitch is located.
Supporting Types
GetSwitchesVswitch
- Available
Ip intAddress Count - The available ip address count of the vSwitch.
- Cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- Creation
Time string - Time of creation.
- Description string
- Description of the vSwitch.
- Id string
- ID of the vSwitch.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the switch.
- Is
Default bool - Indicate whether the vSwitch is created by the system.
- Name string
- Name of the vSwitch.
- Resource
Group stringId - The Id of resource group which VSWitch belongs.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch. Valid values:
AvailableandPending. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Id string - ID of the vSwitch.
- Vswitch
Name string - The name of the vSwitch.
- Zone
Id string - The availability zone of the vSwitch.
- Available
Ip intAddress Count - The available ip address count of the vSwitch.
- Cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- Creation
Time string - Time of creation.
- Description string
- Description of the vSwitch.
- Id string
- ID of the vSwitch.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the switch.
- Is
Default bool - Indicate whether the vSwitch is created by the system.
- Name string
- Name of the vSwitch.
- Resource
Group stringId - The Id of resource group which VSWitch belongs.
- Route
Table stringId - The route table ID of the vSwitch.
- Status string
- The status of the vSwitch. Valid values:
AvailableandPending. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - ID of the VPC that owns the vSwitch.
- Vswitch
Id string - ID of the vSwitch.
- Vswitch
Name string - The name of the vSwitch.
- Zone
Id string - The availability zone of the vSwitch.
- available
Ip IntegerAddress Count - The available ip address count of the vSwitch.
- cidr
Block String - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- creation
Time String - Time of creation.
- description String
- Description of the vSwitch.
- id String
- ID of the vSwitch.
- ipv6Cidr
Block String - The IPv6 CIDR block of the switch.
- is
Default Boolean - Indicate whether the vSwitch is created by the system.
- name String
- Name of the vSwitch.
- resource
Group StringId - The Id of resource group which VSWitch belongs.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch. Valid values:
AvailableandPending. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Id String - ID of the vSwitch.
- vswitch
Name String - The name of the vSwitch.
- zone
Id String - The availability zone of the vSwitch.
- available
Ip numberAddress Count - The available ip address count of the vSwitch.
- cidr
Block string - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- creation
Time string - Time of creation.
- description string
- Description of the vSwitch.
- id string
- ID of the vSwitch.
- ipv6Cidr
Block string - The IPv6 CIDR block of the switch.
- is
Default boolean - Indicate whether the vSwitch is created by the system.
- name string
- Name of the vSwitch.
- resource
Group stringId - The Id of resource group which VSWitch belongs.
- route
Table stringId - The route table ID of the vSwitch.
- status string
- The status of the vSwitch. Valid values:
AvailableandPending. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - ID of the VPC that owns the vSwitch.
- vswitch
Id string - ID of the vSwitch.
- vswitch
Name string - The name of the vSwitch.
- zone
Id string - The availability zone of the vSwitch.
- available_
ip_ intaddress_ count - The available ip address count of the vSwitch.
- cidr_
block str - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- creation_
time str - Time of creation.
- description str
- Description of the vSwitch.
- id str
- ID of the vSwitch.
- ipv6_
cidr_ strblock - The IPv6 CIDR block of the switch.
- is_
default bool - Indicate whether the vSwitch is created by the system.
- name str
- Name of the vSwitch.
- resource_
group_ strid - The Id of resource group which VSWitch belongs.
- route_
table_ strid - The route table ID of the vSwitch.
- status str
- The status of the vSwitch. Valid values:
AvailableandPending. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - ID of the VPC that owns the vSwitch.
- vswitch_
id str - ID of the vSwitch.
- vswitch_
name str - The name of the vSwitch.
- zone_
id str - The availability zone of the vSwitch.
- available
Ip NumberAddress Count - The available ip address count of the vSwitch.
- cidr
Block String - Filter results by a specific CIDR block. For example: "172.16.0.0/12".
- creation
Time String - Time of creation.
- description String
- Description of the vSwitch.
- id String
- ID of the vSwitch.
- ipv6Cidr
Block String - The IPv6 CIDR block of the switch.
- is
Default Boolean - Indicate whether the vSwitch is created by the system.
- name String
- Name of the vSwitch.
- resource
Group StringId - The Id of resource group which VSWitch belongs.
- route
Table StringId - The route table ID of the vSwitch.
- status String
- The status of the vSwitch. Valid values:
AvailableandPending. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - ID of the VPC that owns the vSwitch.
- vswitch
Id String - ID of the vSwitch.
- vswitch
Name String - The name of the vSwitch.
- zone
Id String - The availability zone of the vSwitch.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
