1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. VswitchCidrReservation
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.vpc.VswitchCidrReservation

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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.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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. VswitchCidrReservationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VswitchCidrReservationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VswitchCidrReservationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VswitchCidrReservationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor 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",
});
Copy
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"),
})
Copy
var vswitchCidrReservationResource = new VswitchCidrReservation("vswitchCidrReservationResource", VswitchCidrReservationArgs.builder()
    .vswitchId("string")
    .cidrReservationCidr("string")
    .cidrReservationDescription("string")
    .cidrReservationMask("string")
    .cidrReservationType("string")
    .ipVersion("string")
    .vswitchCidrReservationName("string")
    .build());
Copy
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")
Copy
const vswitchCidrReservationResource = new alicloud.vpc.VswitchCidrReservation("vswitchCidrReservationResource", {
    vswitchId: "string",
    cidrReservationCidr: "string",
    cidrReservationDescription: "string",
    cidrReservationMask: "string",
    cidrReservationType: "string",
    ipVersion: "string",
    vswitchCidrReservationName: "string",
});
Copy
type: alicloud:vpc:VswitchCidrReservation
properties:
    cidrReservationCidr: string
    cidrReservationDescription: string
    cidrReservationMask: string
    cidrReservationType: string
    ipVersion: string
    vswitchCidrReservationName: string
    vswitchId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VswitchCidrReservation resource accepts the following input properties:

VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the switch instance.
CidrReservationCidr Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
CidrReservationDescription string
The description of the reserved CIDR block.
CidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
CidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
IpVersion Changes to this property will trigger replacement. string
Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
VswitchCidrReservationName string
The name of the resource.
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the switch instance.
CidrReservationCidr Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
CidrReservationDescription string
The description of the reserved CIDR block.
CidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
CidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
IpVersion Changes to this property will trigger replacement. string
Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
VswitchCidrReservationName string
The name of the resource.
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. String
Reserved network segment CIdrBlock.
cidrReservationDescription String
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. String
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. String
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
ipVersion Changes to this property will trigger replacement. String
Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
vswitchCidrReservationName String
The name of the resource.
vswitchId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
cidrReservationDescription string
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
ipVersion Changes to this property will trigger replacement. string
Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
vswitchCidrReservationName string
The name of the resource.
vswitch_id
This property is required.
Changes to this property will trigger replacement.
str
The Id of the switch instance.
cidr_reservation_cidr Changes to this property will trigger replacement. str
Reserved network segment CIdrBlock.
cidr_reservation_description str
The description of the reserved CIDR block.
cidr_reservation_mask Changes to this property will trigger replacement. str
Reserved segment mask.
cidr_reservation_type Changes to this property will trigger replacement. str
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
ip_version Changes to this property will trigger replacement. str
Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
vswitch_cidr_reservation_name str
The name of the resource.
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. String
Reserved network segment CIdrBlock.
cidrReservationDescription String
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. String
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. String
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
ipVersion Changes to this property will trigger replacement. 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)
resources:  _:    type: alicloud:vpc:VswitchCidrReservation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
CidrReservationDescription string
The description of the reserved CIDR block.
CidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
CidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
CreateTime string
The creation time of the resource.
IpVersion Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of the switch instance.
CidrReservationCidr Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
CidrReservationDescription string
The description of the reserved CIDR block.
CidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
CidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
CreateTime string
The creation time of the resource.
IpVersion Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. String
Reserved network segment CIdrBlock.
cidrReservationDescription String
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. String
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. String
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
createTime String
The creation time of the resource.
ipVersion Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. string
Reserved network segment CIdrBlock.
cidrReservationDescription string
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. string
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. string
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
createTime string
The creation time of the resource.
ipVersion Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The Id of the switch instance.
cidr_reservation_cidr Changes to this property will trigger replacement. str
Reserved network segment CIdrBlock.
cidr_reservation_description str
The description of the reserved CIDR block.
cidr_reservation_mask Changes to this property will trigger replacement. str
Reserved segment mask.
cidr_reservation_type Changes to this property will trigger replacement. str
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
create_time str
The creation time of the resource.
ip_version Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The Id of the switch instance.
cidrReservationCidr Changes to this property will trigger replacement. String
Reserved network segment CIdrBlock.
cidrReservationDescription String
The description of the reserved CIDR block.
cidrReservationMask Changes to this property will trigger replacement. String
Reserved segment mask.
cidrReservationType Changes to this property will trigger replacement. String
Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
createTime String
The creation time of the resource.
ipVersion Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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>
Copy

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.