Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

Vlan

Create a Vlan Resource

new Vlan(name: string, args: VlanArgs, opts?: CustomResourceOptions);
def Vlan(resource_name: str, opts: Optional[ResourceOptions] = None, cidr_block: Optional[str] = None, description: Optional[str] = None, linodes: Optional[Sequence[int]] = None, region: Optional[str] = None)
func NewVlan(ctx *Context, name string, args VlanArgs, opts ...ResourceOption) (*Vlan, error)
public Vlan(string name, VlanArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args VlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Vlan Resource Properties

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

Inputs

The Vlan resource accepts the following input properties:

Region string

The region of where the VLAN is deployed.

CidrBlock string

The CIDR block for this VLAN.

Description string

Description of the vlan for display purposes only.

Linodes List<int>

A list of IDs of Linodes to attach to this VLAN.

Region string

The region of where the VLAN is deployed.

CidrBlock string

The CIDR block for this VLAN.

Description string

Description of the vlan for display purposes only.

Linodes []int

A list of IDs of Linodes to attach to this VLAN.

region string

The region of where the VLAN is deployed.

cidrBlock string

The CIDR block for this VLAN.

description string

Description of the vlan for display purposes only.

linodes number[]

A list of IDs of Linodes to attach to this VLAN.

region str

The region of where the VLAN is deployed.

cidr_block str

The CIDR block for this VLAN.

description str

Description of the vlan for display purposes only.

linodes Sequence[int]

A list of IDs of Linodes to attach to this VLAN.

Outputs

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

AttachedLinodes List<VlanAttachedLinode>

The Linodes attached to this vlan.

Id string
The provider-assigned unique ID for this managed resource.
AttachedLinodes []VlanAttachedLinode

The Linodes attached to this vlan.

Id string
The provider-assigned unique ID for this managed resource.
attachedLinodes VlanAttachedLinode[]

The Linodes attached to this vlan.

id string
The provider-assigned unique ID for this managed resource.
attached_linodes Sequence[VlanAttachedLinode]

The Linodes attached to this vlan.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Vlan Resource

Get an existing Vlan 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?: VlanState, opts?: CustomResourceOptions): Vlan
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, attached_linodes: Optional[Sequence[VlanAttachedLinodeArgs]] = None, cidr_block: Optional[str] = None, description: Optional[str] = None, linodes: Optional[Sequence[int]] = None, region: Optional[str] = None) -> Vlan
func GetVlan(ctx *Context, name string, id IDInput, state *VlanState, opts ...ResourceOption) (*Vlan, error)
public static Vlan Get(string name, Input<string> id, VlanState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AttachedLinodes List<VlanAttachedLinodeArgs>

The Linodes attached to this vlan.

CidrBlock string

The CIDR block for this VLAN.

Description string

Description of the vlan for display purposes only.

Linodes List<int>

A list of IDs of Linodes to attach to this VLAN.

Region string

The region of where the VLAN is deployed.

AttachedLinodes []VlanAttachedLinode

The Linodes attached to this vlan.

CidrBlock string

The CIDR block for this VLAN.

Description string

Description of the vlan for display purposes only.

Linodes []int

A list of IDs of Linodes to attach to this VLAN.

Region string

The region of where the VLAN is deployed.

attachedLinodes VlanAttachedLinode[]

The Linodes attached to this vlan.

cidrBlock string

The CIDR block for this VLAN.

description string

Description of the vlan for display purposes only.

linodes number[]

A list of IDs of Linodes to attach to this VLAN.

region string

The region of where the VLAN is deployed.

attached_linodes Sequence[VlanAttachedLinodeArgs]

The Linodes attached to this vlan.

cidr_block str

The CIDR block for this VLAN.

description str

Description of the vlan for display purposes only.

linodes Sequence[int]

A list of IDs of Linodes to attach to this VLAN.

region str

The region of where the VLAN is deployed.

Supporting Types

VlanAttachedLinode

Id int

The ID of the Linode.

Ipv4Address string

The IPv4 address of the Linode.

MacAddress string

The mac address of the Linode.

Id int

The ID of the Linode.

Ipv4Address string

The IPv4 address of the Linode.

MacAddress string

The mac address of the Linode.

id number

The ID of the Linode.

ipv4Address string

The IPv4 address of the Linode.

macAddress string

The mac address of the Linode.

id int

The ID of the Linode.

ipv4_address str

The IPv4 address of the Linode.

mac_address str

The mac address of the Linode.

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.