Show / Hide Table of Contents

Class Vlan

Provides a resource to allow users to manage Virtual Networks in their projects.

To learn more about Layer 2 networking in Packet, refer to

  • https://www.packet.com/resources/guides/layer-2-configurations/
  • https://www.packet.com/developers/docs/network/advanced/layer-2/

Example Usage

using Pulumi;
using Packet = Pulumi.Packet;

class MyStack : Stack
{
public MyStack()
{
    // Create a new VLAN in datacenter "ewr1"
    var vlan1 = new Packet.Vlan("vlan1", new Packet.VlanArgs
    {
        Description = "VLAN in New Jersey",
        Facility = "ewr1",
        ProjectId = local.Project_id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Vlan
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class Vlan : CustomResource

Constructors

View Source

Vlan(String, VlanArgs, CustomResourceOptions)

Create a Vlan resource with the given unique name, arguments, and options.

Declaration
public Vlan(string name, VlanArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

VlanArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

Description string

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Facility

Facility where to create the VLAN

Declaration
public Output<string> Facility { get; }
Property Value
Type Description
Output<System.String>
View Source

ProjectId

ID of parent project

Declaration
public Output<string> ProjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

Vxlan

VXLAN segment ID

Declaration
public Output<int> Vxlan { get; }
Property Value
Type Description
Output<System.Int32>

Methods

View Source

Get(String, Input<String>, VlanState, CustomResourceOptions)

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

Declaration
public static Vlan Get(string name, Input<string> id, VlanState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

VlanState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Vlan
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.