1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. VswitchCidrReservation
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.vpc.VswitchCidrReservation

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Provides a Vpc Vswitch Cidr Reservation resource. The reserved network segment of the vswitch. This resource type can be used only in ap-southeast region.

    For information about Vpc Vswitch Cidr Reservation and how to use it, see What is Vswitch Cidr Reservation.

    NOTE: Available since v1.205.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultVpc = new alicloud.vpc.Network("defaultVpc", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultVSwitch = new alicloud.vpc.Switch("defaultVSwitch", {
        vpcId: defaultVpc.id,
        cidrBlock: "10.0.0.0/20",
        vswitchName: `${name}1`,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
    });
    const defaultVswitchCidrReservation = new alicloud.vpc.VswitchCidrReservation("default", {
        ipVersion: "IPv4",
        vswitchId: defaultVSwitch.id,
        cidrReservationDescription: name,
        cidrReservationCidr: "10.0.10.0/24",
        vswitchCidrReservationName: name,
        cidrReservationType: "Prefix",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_vpc = alicloud.vpc.Network("defaultVpc",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    default_v_switch = alicloud.vpc.Switch("defaultVSwitch",
        vpc_id=default_vpc.id,
        cidr_block="10.0.0.0/20",
        vswitch_name=f"{name}1",
        zone_id=default.zones[0].id)
    default_vswitch_cidr_reservation = alicloud.vpc.VswitchCidrReservation("default",
        ip_version="IPv4",
        vswitch_id=default_v_switch.id,
        cidr_reservation_description=name,
        cidr_reservation_cidr="10.0.10.0/24",
        vswitch_cidr_reservation_name=name,
        cidr_reservation_type="Prefix")
    
    package main
    
    import (
    	"fmt"
    
    	"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 := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultVpc, err := vpc.NewNetwork(ctx, "defaultVpc", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVSwitch, err := vpc.NewSwitch(ctx, "defaultVSwitch", &vpc.SwitchArgs{
    			VpcId:       defaultVpc.ID(),
    			CidrBlock:   pulumi.String("10.0.0.0/20"),
    			VswitchName: pulumi.String(fmt.Sprintf("%v1", name)),
    			ZoneId:      pulumi.String(_default.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewVswitchCidrReservation(ctx, "default", &vpc.VswitchCidrReservationArgs{
    			IpVersion:                  pulumi.String("IPv4"),
    			VswitchId:                  defaultVSwitch.ID(),
    			CidrReservationDescription: pulumi.String(name),
    			CidrReservationCidr:        pulumi.String("10.0.10.0/24"),
    			VswitchCidrReservationName: pulumi.String(name),
    			CidrReservationType:        pulumi.String("Prefix"),
    		})
    		if err != nil {
    			return err
    		}
    		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") ?? "tf-example";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultVpc = new AliCloud.Vpc.Network("defaultVpc", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultVSwitch = new AliCloud.Vpc.Switch("defaultVSwitch", new()
        {
            VpcId = defaultVpc.Id,
            CidrBlock = "10.0.0.0/20",
            VswitchName = $"{name}1",
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        });
    
        var defaultVswitchCidrReservation = new AliCloud.Vpc.VswitchCidrReservation("default", new()
        {
            IpVersion = "IPv4",
            VswitchId = defaultVSwitch.Id,
            CidrReservationDescription = name,
            CidrReservationCidr = "10.0.10.0/24",
            VswitchCidrReservationName = name,
            CidrReservationType = "Prefix",
        });
    
    });
    
    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.VswitchCidrReservation;
    import com.pulumi.alicloud.vpc.VswitchCidrReservationArgs;
    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("tf-example");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var defaultVSwitch = new Switch("defaultVSwitch", SwitchArgs.builder()        
                .vpcId(defaultVpc.id())
                .cidrBlock("10.0.0.0/20")
                .vswitchName(String.format("%s1", name))
                .zoneId(default_.zones()[0].id())
                .build());
    
            var defaultVswitchCidrReservation = new VswitchCidrReservation("defaultVswitchCidrReservation", VswitchCidrReservationArgs.builder()        
                .ipVersion("IPv4")
                .vswitchId(defaultVSwitch.id())
                .cidrReservationDescription(name)
                .cidrReservationCidr("10.0.10.0/24")
                .vswitchCidrReservationName(name)
                .cidrReservationType("Prefix")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultVpc:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      defaultVSwitch:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultVpc.id}
          cidrBlock: 10.0.0.0/20
          vswitchName: ${name}1
          zoneId: ${default.zones[0].id}
      defaultVswitchCidrReservation:
        type: alicloud:vpc:VswitchCidrReservation
        name: default
        properties:
          ipVersion: IPv4
          vswitchId: ${defaultVSwitch.id}
          cidrReservationDescription: ${name}
          cidrReservationCidr: 10.0.10.0/24
          vswitchCidrReservationName: ${name}
          cidrReservationType: Prefix
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create VswitchCidrReservation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VswitchCidrReservation(name: string, args: VswitchCidrReservationArgs, opts?: CustomResourceOptions);
    @overload
    def VswitchCidrReservation(resource_name: str,
                               args: VswitchCidrReservationArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def VswitchCidrReservation(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               vswitch_id: Optional[str] = None,
                               cidr_reservation_cidr: Optional[str] = None,
                               cidr_reservation_description: Optional[str] = None,
                               cidr_reservation_mask: Optional[str] = None,
                               cidr_reservation_type: Optional[str] = None,
                               ip_version: Optional[str] = None,
                               vswitch_cidr_reservation_name: Optional[str] = None)
    func NewVswitchCidrReservation(ctx *Context, name string, args VswitchCidrReservationArgs, opts ...ResourceOption) (*VswitchCidrReservation, error)
    public VswitchCidrReservation(string name, VswitchCidrReservationArgs args, CustomResourceOptions? opts = null)
    public VswitchCidrReservation(String name, VswitchCidrReservationArgs args)
    public VswitchCidrReservation(String name, VswitchCidrReservationArgs args, CustomResourceOptions options)
    
    type: alicloud:vpc:VswitchCidrReservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VswitchCidrReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VswitchCidrReservationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VswitchCidrReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VswitchCidrReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VswitchCidrReservationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var vswitchCidrReservationResource = new AliCloud.Vpc.VswitchCidrReservation("vswitchCidrReservationResource", new()
    {
        VswitchId = "string",
        CidrReservationCidr = "string",
        CidrReservationDescription = "string",
        CidrReservationMask = "string",
        CidrReservationType = "string",
        IpVersion = "string",
        VswitchCidrReservationName = "string",
    });
    
    example, err := vpc.NewVswitchCidrReservation(ctx, "vswitchCidrReservationResource", &vpc.VswitchCidrReservationArgs{
    	VswitchId:                  pulumi.String("string"),
    	CidrReservationCidr:        pulumi.String("string"),
    	CidrReservationDescription: pulumi.String("string"),
    	CidrReservationMask:        pulumi.String("string"),
    	CidrReservationType:        pulumi.String("string"),
    	IpVersion:                  pulumi.String("string"),
    	VswitchCidrReservationName: pulumi.String("string"),
    })
    
    var vswitchCidrReservationResource = new VswitchCidrReservation("vswitchCidrReservationResource", VswitchCidrReservationArgs.builder()        
        .vswitchId("string")
        .cidrReservationCidr("string")
        .cidrReservationDescription("string")
        .cidrReservationMask("string")
        .cidrReservationType("string")
        .ipVersion("string")
        .vswitchCidrReservationName("string")
        .build());
    
    vswitch_cidr_reservation_resource = alicloud.vpc.VswitchCidrReservation("vswitchCidrReservationResource",
        vswitch_id="string",
        cidr_reservation_cidr="string",
        cidr_reservation_description="string",
        cidr_reservation_mask="string",
        cidr_reservation_type="string",
        ip_version="string",
        vswitch_cidr_reservation_name="string")
    
    const vswitchCidrReservationResource = new alicloud.vpc.VswitchCidrReservation("vswitchCidrReservationResource", {
        vswitchId: "string",
        cidrReservationCidr: "string",
        cidrReservationDescription: "string",
        cidrReservationMask: "string",
        cidrReservationType: "string",
        ipVersion: "string",
        vswitchCidrReservationName: "string",
    });
    
    type: alicloud:vpc:VswitchCidrReservation
    properties:
        cidrReservationCidr: string
        cidrReservationDescription: string
        cidrReservationMask: string
        cidrReservationType: string
        ipVersion: string
        vswitchCidrReservationName: string
        vswitchId: string
    

    VswitchCidrReservation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VswitchCidrReservation resource accepts the following input properties:

    VswitchId string
    The Id of the switch instance.
    CidrReservationCidr string
    Reserved network segment CIdrBlock.
    CidrReservationDescription string
    The description of the reserved CIDR block.
    CidrReservationMask string
    Reserved segment mask.
    CidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    IpVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    VswitchCidrReservationName string
    The name of the resource.
    VswitchId string
    The Id of the switch instance.
    CidrReservationCidr string
    Reserved network segment CIdrBlock.
    CidrReservationDescription string
    The description of the reserved CIDR block.
    CidrReservationMask string
    Reserved segment mask.
    CidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    IpVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    VswitchCidrReservationName string
    The name of the resource.
    vswitchId String
    The Id of the switch instance.
    cidrReservationCidr String
    Reserved network segment CIdrBlock.
    cidrReservationDescription String
    The description of the reserved CIDR block.
    cidrReservationMask String
    Reserved segment mask.
    cidrReservationType String
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    ipVersion String
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    vswitchCidrReservationName String
    The name of the resource.
    vswitchId string
    The Id of the switch instance.
    cidrReservationCidr string
    Reserved network segment CIdrBlock.
    cidrReservationDescription string
    The description of the reserved CIDR block.
    cidrReservationMask string
    Reserved segment mask.
    cidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    ipVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    vswitchCidrReservationName string
    The name of the resource.
    vswitch_id str
    The Id of the switch instance.
    cidr_reservation_cidr str
    Reserved network segment CIdrBlock.
    cidr_reservation_description str
    The description of the reserved CIDR block.
    cidr_reservation_mask str
    Reserved segment mask.
    cidr_reservation_type str
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    ip_version str
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    vswitch_cidr_reservation_name str
    The name of the resource.
    vswitchId String
    The Id of the switch instance.
    cidrReservationCidr String
    Reserved network segment CIdrBlock.
    cidrReservationDescription String
    The description of the reserved CIDR block.
    cidrReservationMask String
    Reserved segment mask.
    cidrReservationType String
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    ipVersion String
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    vswitchCidrReservationName String
    The name of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VswitchCidrReservation resource produces the following output properties:

    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    VpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    VswitchCidrReservationId string
    The resource attribute field of the resource ID.
    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    VpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    VswitchCidrReservationId string
    The resource attribute field of the resource ID.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    vpcId String
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId String
    The resource attribute field of the resource ID.
    createTime string
    The creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    vpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId string
    The resource attribute field of the resource ID.
    create_time str
    The creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    vpc_id str
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitch_cidr_reservation_id str
    The resource attribute field of the resource ID.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    vpcId String
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId String
    The resource attribute field of the resource ID.

    Look up Existing VswitchCidrReservation Resource

    Get an existing VswitchCidrReservation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VswitchCidrReservationState, opts?: CustomResourceOptions): VswitchCidrReservation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr_reservation_cidr: Optional[str] = None,
            cidr_reservation_description: Optional[str] = None,
            cidr_reservation_mask: Optional[str] = None,
            cidr_reservation_type: Optional[str] = None,
            create_time: Optional[str] = None,
            ip_version: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_cidr_reservation_id: Optional[str] = None,
            vswitch_cidr_reservation_name: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> VswitchCidrReservation
    func GetVswitchCidrReservation(ctx *Context, name string, id IDInput, state *VswitchCidrReservationState, opts ...ResourceOption) (*VswitchCidrReservation, error)
    public static VswitchCidrReservation Get(string name, Input<string> id, VswitchCidrReservationState? state, CustomResourceOptions? opts = null)
    public static VswitchCidrReservation get(String name, Output<String> id, VswitchCidrReservationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CidrReservationCidr string
    Reserved network segment CIdrBlock.
    CidrReservationDescription string
    The description of the reserved CIDR block.
    CidrReservationMask string
    Reserved segment mask.
    CidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    CreateTime string
    The creation time of the resource.
    IpVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    Status string
    The status of the resource.
    VpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    VswitchCidrReservationId string
    The resource attribute field of the resource ID.
    VswitchCidrReservationName string
    The name of the resource.
    VswitchId string
    The Id of the switch instance.
    CidrReservationCidr string
    Reserved network segment CIdrBlock.
    CidrReservationDescription string
    The description of the reserved CIDR block.
    CidrReservationMask string
    Reserved segment mask.
    CidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    CreateTime string
    The creation time of the resource.
    IpVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    Status string
    The status of the resource.
    VpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    VswitchCidrReservationId string
    The resource attribute field of the resource ID.
    VswitchCidrReservationName string
    The name of the resource.
    VswitchId string
    The Id of the switch instance.
    cidrReservationCidr String
    Reserved network segment CIdrBlock.
    cidrReservationDescription String
    The description of the reserved CIDR block.
    cidrReservationMask String
    Reserved segment mask.
    cidrReservationType String
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    createTime String
    The creation time of the resource.
    ipVersion String
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    status String
    The status of the resource.
    vpcId String
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId String
    The resource attribute field of the resource ID.
    vswitchCidrReservationName String
    The name of the resource.
    vswitchId String
    The Id of the switch instance.
    cidrReservationCidr string
    Reserved network segment CIdrBlock.
    cidrReservationDescription string
    The description of the reserved CIDR block.
    cidrReservationMask string
    Reserved segment mask.
    cidrReservationType string
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    createTime string
    The creation time of the resource.
    ipVersion string
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    status string
    The status of the resource.
    vpcId string
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId string
    The resource attribute field of the resource ID.
    vswitchCidrReservationName string
    The name of the resource.
    vswitchId string
    The Id of the switch instance.
    cidr_reservation_cidr str
    Reserved network segment CIdrBlock.
    cidr_reservation_description str
    The description of the reserved CIDR block.
    cidr_reservation_mask str
    Reserved segment mask.
    cidr_reservation_type str
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    create_time str
    The creation time of the resource.
    ip_version str
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    status str
    The status of the resource.
    vpc_id str
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitch_cidr_reservation_id str
    The resource attribute field of the resource ID.
    vswitch_cidr_reservation_name str
    The name of the resource.
    vswitch_id str
    The Id of the switch instance.
    cidrReservationCidr String
    Reserved network segment CIdrBlock.
    cidrReservationDescription String
    The description of the reserved CIDR block.
    cidrReservationMask String
    Reserved segment mask.
    cidrReservationType String
    Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
    createTime String
    The creation time of the resource.
    ipVersion String
    Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
    status String
    The status of the resource.
    vpcId String
    The id of the vpc instance to which the reserved CIDR block belongs.
    vswitchCidrReservationId String
    The resource attribute field of the resource ID.
    vswitchCidrReservationName String
    The name of the resource.
    vswitchId String
    The Id of the switch instance.

    Import

    Vpc Vswitch Cidr Reservation can be imported using the id, e.g.

    $ pulumi import alicloud:vpc/vswitchCidrReservation:VswitchCidrReservation example <vswitch_id>:<vswitch_cidr_reservation_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.54.0 published on Wednesday, Apr 24, 2024 by Pulumi