1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. getSwitches
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.vpc.getSwitches

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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();
    
            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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:vpc/getSwitches:getSwitches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    DryRun bool
    Specifies whether to precheck this request only. Valid values: true and false.
    Ids List<string>
    A list of vSwitch IDs.
    IsDefault bool
    Indicate whether the vSwitch is created by the system.
    NameRegex string
    A regex string to filter results by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The Id of resource group which VSWitch belongs.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch. Valid values: Available and Pending.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchName string
    The name of the vSwitch.
    VswitchOwnerId int
    The vSwitch owner id.
    ZoneId string
    The availability zone of the vSwitch.
    CidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    DryRun bool
    Specifies whether to precheck this request only. Valid values: true and false.
    Ids []string
    A list of vSwitch IDs.
    IsDefault bool
    Indicate whether the vSwitch is created by the system.
    NameRegex string
    A regex string to filter results by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The Id of resource group which VSWitch belongs.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch. Valid values: Available and Pending.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchName string
    The name of the vSwitch.
    VswitchOwnerId int
    The vSwitch owner id.
    ZoneId string
    The availability zone of the vSwitch.
    cidrBlock String
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    dryRun Boolean
    Specifies whether to precheck this request only. Valid values: true and false.
    ids List<String>
    A list of vSwitch IDs.
    isDefault Boolean
    Indicate whether the vSwitch is created by the system.
    nameRegex String
    A regex string to filter results by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The Id of resource group which VSWitch belongs.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch. Valid values: Available and Pending.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchName String
    The name of the vSwitch.
    vswitchOwnerId Integer
    The vSwitch owner id.
    zoneId String
    The availability zone of the vSwitch.
    cidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    dryRun boolean
    Specifies whether to precheck this request only. Valid values: true and false.
    ids string[]
    A list of vSwitch IDs.
    isDefault boolean
    Indicate whether the vSwitch is created by the system.
    nameRegex string
    A regex string to filter results by name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceGroupId string
    The Id of resource group which VSWitch belongs.
    routeTableId string
    The route table ID of the vSwitch.
    status string
    The status of the vSwitch. Valid values: Available and Pending.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcId string
    ID of the VPC that owns the vSwitch.
    vswitchName string
    The name of the vSwitch.
    vswitchOwnerId number
    The vSwitch owner id.
    zoneId 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: true and false.
    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_id str
    The Id of resource group which VSWitch belongs.
    route_table_id str
    The route table ID of the vSwitch.
    status str
    The status of the vSwitch. Valid values: Available and Pending.
    tags 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_id int
    The vSwitch owner id.
    zone_id str
    The availability zone of the vSwitch.
    cidrBlock String
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    dryRun Boolean
    Specifies whether to precheck this request only. Valid values: true and false.
    ids List<String>
    A list of vSwitch IDs.
    isDefault Boolean
    Indicate whether the vSwitch is created by the system.
    nameRegex String
    A regex string to filter results by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The Id of resource group which VSWitch belongs.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch. Valid values: Available and Pending.
    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchName String
    The name of the vSwitch.
    vswitchOwnerId Number
    The vSwitch owner id.
    zoneId 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.AliCloud.Vpc.Outputs.GetSwitchesVswitch>
    A list of VSwitches. Each element contains the following attributes:
    CidrBlock string
    CIDR block of the vSwitch.
    DryRun bool
    IsDefault bool
    Whether the vSwitch is the default one in the region.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The resource group ID of the vSwitch.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch.
    Tags Dictionary<string, string>
    The Tags of the vSwitch.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchName string
    Name of the vSwitch.
    VswitchOwnerId int
    ZoneId 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 []GetSwitchesVswitch
    A list of VSwitches. Each element contains the following attributes:
    CidrBlock string
    CIDR block of the vSwitch.
    DryRun bool
    IsDefault bool
    Whether the vSwitch is the default one in the region.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The resource group ID of the vSwitch.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch.
    Tags map[string]string
    The Tags of the vSwitch.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchName string
    Name of the vSwitch.
    VswitchOwnerId int
    ZoneId 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<GetSwitchesVswitch>
    A list of VSwitches. Each element contains the following attributes:
    cidrBlock String
    CIDR block of the vSwitch.
    dryRun Boolean
    isDefault Boolean
    Whether the vSwitch is the default one in the region.
    nameRegex String
    outputFile String
    resourceGroupId String
    The resource group ID of the vSwitch.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch.
    tags Map<String,String>
    The Tags of the vSwitch.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchName String
    Name of the vSwitch.
    vswitchOwnerId Integer
    zoneId 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 GetSwitchesVswitch[]
    A list of VSwitches. Each element contains the following attributes:
    cidrBlock string
    CIDR block of the vSwitch.
    dryRun boolean
    isDefault boolean
    Whether the vSwitch is the default one in the region.
    nameRegex string
    outputFile string
    resourceGroupId string
    The resource group ID of the vSwitch.
    routeTableId string
    The route table ID of the vSwitch.
    status string
    The status of the vSwitch.
    tags {[key: string]: string}
    The Tags of the vSwitch.
    vpcId string
    ID of the VPC that owns the vSwitch.
    vswitchName string
    Name of the vSwitch.
    vswitchOwnerId number
    zoneId 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[GetSwitchesVswitch]
    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_id str
    The resource group ID of the vSwitch.
    route_table_id str
    The route table ID of the vSwitch.
    status str
    The status of the vSwitch.
    tags 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_id int
    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:
    cidrBlock String
    CIDR block of the vSwitch.
    dryRun Boolean
    isDefault Boolean
    Whether the vSwitch is the default one in the region.
    nameRegex String
    outputFile String
    resourceGroupId String
    The resource group ID of the vSwitch.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch.
    tags Map<String>
    The Tags of the vSwitch.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchName String
    Name of the vSwitch.
    vswitchOwnerId Number
    zoneId String
    ID of the availability zone where the vSwitch is located.

    Supporting Types

    GetSwitchesVswitch

    AvailableIpAddressCount int
    The available ip address count of the vSwitch.
    CidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    CreationTime string
    Time of creation.
    Description string
    Description of the vSwitch.
    Id string
    ID of the vSwitch.
    Ipv6CidrBlock string
    The IPv6 CIDR block of the switch.
    IsDefault bool
    Indicate whether the vSwitch is created by the system.
    Name string
    Name of the vSwitch.
    ResourceGroupId string
    The Id of resource group which VSWitch belongs.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch. Valid values: Available and Pending.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchId string
    ID of the vSwitch.
    VswitchName string
    The name of the vSwitch.
    ZoneId string
    The availability zone of the vSwitch.
    AvailableIpAddressCount int
    The available ip address count of the vSwitch.
    CidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    CreationTime string
    Time of creation.
    Description string
    Description of the vSwitch.
    Id string
    ID of the vSwitch.
    Ipv6CidrBlock string
    The IPv6 CIDR block of the switch.
    IsDefault bool
    Indicate whether the vSwitch is created by the system.
    Name string
    Name of the vSwitch.
    ResourceGroupId string
    The Id of resource group which VSWitch belongs.
    RouteTableId string
    The route table ID of the vSwitch.
    Status string
    The status of the vSwitch. Valid values: Available and Pending.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcId string
    ID of the VPC that owns the vSwitch.
    VswitchId string
    ID of the vSwitch.
    VswitchName string
    The name of the vSwitch.
    ZoneId string
    The availability zone of the vSwitch.
    availableIpAddressCount Integer
    The available ip address count of the vSwitch.
    cidrBlock String
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    creationTime String
    Time of creation.
    description String
    Description of the vSwitch.
    id String
    ID of the vSwitch.
    ipv6CidrBlock String
    The IPv6 CIDR block of the switch.
    isDefault Boolean
    Indicate whether the vSwitch is created by the system.
    name String
    Name of the vSwitch.
    resourceGroupId String
    The Id of resource group which VSWitch belongs.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch. Valid values: Available and Pending.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchId String
    ID of the vSwitch.
    vswitchName String
    The name of the vSwitch.
    zoneId String
    The availability zone of the vSwitch.
    availableIpAddressCount number
    The available ip address count of the vSwitch.
    cidrBlock string
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    creationTime string
    Time of creation.
    description string
    Description of the vSwitch.
    id string
    ID of the vSwitch.
    ipv6CidrBlock string
    The IPv6 CIDR block of the switch.
    isDefault boolean
    Indicate whether the vSwitch is created by the system.
    name string
    Name of the vSwitch.
    resourceGroupId string
    The Id of resource group which VSWitch belongs.
    routeTableId string
    The route table ID of the vSwitch.
    status string
    The status of the vSwitch. Valid values: Available and Pending.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcId string
    ID of the VPC that owns the vSwitch.
    vswitchId string
    ID of the vSwitch.
    vswitchName string
    The name of the vSwitch.
    zoneId string
    The availability zone of the vSwitch.
    available_ip_address_count int
    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_block str
    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_id str
    The Id of resource group which VSWitch belongs.
    route_table_id str
    The route table ID of the vSwitch.
    status str
    The status of the vSwitch. Valid values: Available and Pending.
    tags 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.
    availableIpAddressCount Number
    The available ip address count of the vSwitch.
    cidrBlock String
    Filter results by a specific CIDR block. For example: "172.16.0.0/12".
    creationTime String
    Time of creation.
    description String
    Description of the vSwitch.
    id String
    ID of the vSwitch.
    ipv6CidrBlock String
    The IPv6 CIDR block of the switch.
    isDefault Boolean
    Indicate whether the vSwitch is created by the system.
    name String
    Name of the vSwitch.
    resourceGroupId String
    The Id of resource group which VSWitch belongs.
    routeTableId String
    The route table ID of the vSwitch.
    status String
    The status of the vSwitch. Valid values: Available and Pending.
    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcId String
    ID of the VPC that owns the vSwitch.
    vswitchId String
    ID of the vSwitch.
    vswitchName String
    The name of the vSwitch.
    zoneId 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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi