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",
});
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.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.
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",
});
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:
- Vswitch
Id string - The Id of the switch instance.
- Cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- Cidr
Reservation stringDescription - The description of the reserved CIDR block.
- Cidr
Reservation stringMask - Reserved segment mask.
- Cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - Ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - Vswitch
Cidr stringReservation Name - The name of the resource.
- Vswitch
Id string - The Id of the switch instance.
- Cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- Cidr
Reservation stringDescription - The description of the reserved CIDR block.
- Cidr
Reservation stringMask - Reserved segment mask.
- Cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - Ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - Vswitch
Cidr stringReservation Name - The name of the resource.
- vswitch
Id String - The Id of the switch instance.
- cidr
Reservation StringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation StringDescription - The description of the reserved CIDR block.
- cidr
Reservation StringMask - Reserved segment mask.
- cidr
Reservation StringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - ip
Version String - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - vswitch
Cidr StringReservation Name - The name of the resource.
- vswitch
Id string - The Id of the switch instance.
- cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation stringDescription - The description of the reserved CIDR block.
- cidr
Reservation stringMask - Reserved segment mask.
- cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - vswitch
Cidr stringReservation Name - The name of the resource.
- vswitch_
id str - The Id of the switch instance.
- cidr_
reservation_ strcidr - Reserved network segment CIdrBlock.
- cidr_
reservation_ strdescription - The description of the reserved CIDR block.
- cidr_
reservation_ strmask - Reserved segment mask.
- cidr_
reservation_ strtype - 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_ strreservation_ name - The name of the resource.
- vswitch
Id String - The Id of the switch instance.
- cidr
Reservation StringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation StringDescription - The description of the reserved CIDR block.
- cidr
Reservation StringMask - Reserved segment mask.
- cidr
Reservation StringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - ip
Version String - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - vswitch
Cidr StringReservation Name - The name of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VswitchCidrReservation resource produces the following output properties:
- Create
Time 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.
- Vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- Vswitch
Cidr stringReservation Id - The resource attribute field of the resource ID.
- Create
Time 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.
- Vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- Vswitch
Cidr stringReservation Id - The resource attribute field of the resource ID.
- create
Time 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.
- vpc
Id String - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr StringReservation Id - The resource attribute field of the resource ID.
- create
Time 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.
- vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr stringReservation Id - 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_ strreservation_ id - The resource attribute field of the resource ID.
- create
Time 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.
- vpc
Id String - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr StringReservation Id - 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.
- Cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- Cidr
Reservation stringDescription - The description of the reserved CIDR block.
- Cidr
Reservation stringMask - Reserved segment mask.
- Cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - Create
Time string - The creation time of the resource.
- Ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - Status string
- The status of the resource.
- Vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- Vswitch
Cidr stringReservation Id - The resource attribute field of the resource ID.
- Vswitch
Cidr stringReservation Name - The name of the resource.
- Vswitch
Id string - The Id of the switch instance.
- Cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- Cidr
Reservation stringDescription - The description of the reserved CIDR block.
- Cidr
Reservation stringMask - Reserved segment mask.
- Cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - Create
Time string - The creation time of the resource.
- Ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - Status string
- The status of the resource.
- Vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- Vswitch
Cidr stringReservation Id - The resource attribute field of the resource ID.
- Vswitch
Cidr stringReservation Name - The name of the resource.
- Vswitch
Id string - The Id of the switch instance.
- cidr
Reservation StringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation StringDescription - The description of the reserved CIDR block.
- cidr
Reservation StringMask - Reserved segment mask.
- cidr
Reservation StringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - create
Time String - The creation time of the resource.
- ip
Version String - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - status String
- The status of the resource.
- vpc
Id String - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr StringReservation Id - The resource attribute field of the resource ID.
- vswitch
Cidr StringReservation Name - The name of the resource.
- vswitch
Id String - The Id of the switch instance.
- cidr
Reservation stringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation stringDescription - The description of the reserved CIDR block.
- cidr
Reservation stringMask - Reserved segment mask.
- cidr
Reservation stringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - create
Time string - The creation time of the resource.
- ip
Version string - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - status string
- The status of the resource.
- vpc
Id string - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr stringReservation Id - The resource attribute field of the resource ID.
- vswitch
Cidr stringReservation Name - The name of the resource.
- vswitch
Id string - The Id of the switch instance.
- cidr_
reservation_ strcidr - Reserved network segment CIdrBlock.
- cidr_
reservation_ strdescription - The description of the reserved CIDR block.
- cidr_
reservation_ strmask - Reserved segment mask.
- cidr_
reservation_ strtype - 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_ strreservation_ id - The resource attribute field of the resource ID.
- vswitch_
cidr_ strreservation_ name - The name of the resource.
- vswitch_
id str - The Id of the switch instance.
- cidr
Reservation StringCidr - Reserved network segment CIdrBlock.
- cidr
Reservation StringDescription - The description of the reserved CIDR block.
- cidr
Reservation StringMask - Reserved segment mask.
- cidr
Reservation StringType - Reserved CIDR Block Type.Valid values:
Prefix
. Default value: Prefix. - create
Time String - The creation time of the resource.
- ip
Version String - Reserved ip version of network segment, valid values:
IPv4
,IPv6
, default IPv4. - status String
- The status of the resource.
- vpc
Id String - The id of the vpc instance to which the reserved CIDR block belongs.
- vswitch
Cidr StringReservation Id - The resource attribute field of the resource ID.
- vswitch
Cidr StringReservation Name - The name of the resource.
- vswitch
Id 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.