1. Packages
  2. Equinix
  3. API Docs
  4. metal
  5. Vrf
Equinix v0.18.0 published on Monday, Sep 23, 2024 by Equinix

equinix.metal.Vrf

Explore with Pulumi AI

equinix logo
Equinix v0.18.0 published on Monday, Sep 23, 2024 by Equinix

    Use this resource to manage a VRF.

    See the Virtual Routing and Forwarding documentation for product details and API reference material.

    Example Usage

    example 1

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Equinix = Pulumi.Equinix;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Equinix.Metal.Project("example", new()
        {
            Name = "example",
        });
    
        var exampleVrf = new Equinix.Metal.Vrf("exampleVrf", new()
        {
            Description = "VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25",
            Name = "example-vrf",
            Metro = "da",
            LocalAsn = 65000,
            IpRanges = new[]
            {
                "192.168.100.0/25",
                "192.168.200.0/25",
            },
            ProjectId = example.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := metal.NewProject(ctx, "example", &metal.ProjectArgs{
    			Name: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = metal.NewVrf(ctx, "exampleVrf", &metal.VrfArgs{
    			Description: pulumi.String("VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25"),
    			Name:        pulumi.String("example-vrf"),
    			Metro:       pulumi.String("da"),
    			LocalAsn:    pulumi.Int(65000),
    			IpRanges: pulumi.StringArray{
    				pulumi.String("192.168.100.0/25"),
    				pulumi.String("192.168.200.0/25"),
    			},
    			ProjectId: example.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.equinix.metal.Project;
    import com.pulumi.equinix.metal.ProjectArgs;
    import com.pulumi.equinix.metal.Vrf;
    import com.pulumi.equinix.metal.VrfArgs;
    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) {
            var example = new Project("example", ProjectArgs.builder()
                .name("example")
                .build());
    
            var exampleVrf = new Vrf("exampleVrf", VrfArgs.builder()
                .description("VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25")
                .name("example-vrf")
                .metro("da")
                .localAsn("65000")
                .ipRanges(            
                    "192.168.100.0/25",
                    "192.168.200.0/25")
                .projectId(example.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_equinix as equinix
    
    example = equinix.metal.Project("example", name="example")
    example_vrf = equinix.metal.Vrf("exampleVrf",
        description="VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25",
        name="example-vrf",
        metro="da",
        local_asn=65000,
        ip_ranges=[
            "192.168.100.0/25",
            "192.168.200.0/25",
        ],
        project_id=example.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as equinix from "@equinix-labs/pulumi-equinix";
    
    const example = new equinix.metal.Project("example", {name: "example"});
    const exampleVrf = new equinix.metal.Vrf("exampleVrf", {
        description: "VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25",
        name: "example-vrf",
        metro: "da",
        localAsn: 65000,
        ipRanges: [
            "192.168.100.0/25",
            "192.168.200.0/25",
        ],
        projectId: example.id,
    });
    
    resources:
      example:
        type: equinix:metal:Project
        properties:
          name: example
      exampleVrf:
        type: equinix:metal:Vrf
        name: example
        properties:
          description: VRF with ASN 65000 and a pool of address space that includes 192.168.100.0/25
          name: example-vrf
          metro: da
          localAsn: '65000'
          ipRanges:
            - 192.168.100.0/25
            - 192.168.200.0/25
          projectId: ${example.id}
    

    example 2

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Equinix = Pulumi.Equinix;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Equinix.Metal.ReservedIpBlock("example", new()
        {
            Description = "Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space.",
            ProjectId = exampleEquinixMetalProject.Id,
            Metro = exampleEquinixMetalVrf.Metro,
            Type = "vrf",
            VrfId = exampleEquinixMetalVrf.Id,
            Cidr = 29,
            Network = "192.168.100.0",
        });
    
        var exampleVlan = new Equinix.Metal.Vlan("exampleVlan", new()
        {
            Description = "A VLAN for Layer2 and Hybrid Metal devices",
            Metro = exampleEquinixMetalVrf.Metro,
            ProjectId = exampleEquinixMetalProject.Id,
        });
    
        var exampleGateway = new Equinix.Metal.Gateway("exampleGateway", new()
        {
            ProjectId = exampleEquinixMetalProject.Id,
            VlanId = exampleVlan.Id,
            IpReservationId = example.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := metal.NewReservedIpBlock(ctx, "example", &metal.ReservedIpBlockArgs{
    			Description: pulumi.String("Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space."),
    			ProjectId:   pulumi.Any(exampleEquinixMetalProject.Id),
    			Metro:       pulumi.Any(exampleEquinixMetalVrf.Metro),
    			Type:        pulumi.String("vrf"),
    			VrfId:       pulumi.Any(exampleEquinixMetalVrf.Id),
    			Cidr:        pulumi.Int(29),
    			Network:     pulumi.String("192.168.100.0"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVlan, err := metal.NewVlan(ctx, "exampleVlan", &metal.VlanArgs{
    			Description: pulumi.String("A VLAN for Layer2 and Hybrid Metal devices"),
    			Metro:       pulumi.Any(exampleEquinixMetalVrf.Metro),
    			ProjectId:   pulumi.Any(exampleEquinixMetalProject.Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = metal.NewGateway(ctx, "exampleGateway", &metal.GatewayArgs{
    			ProjectId:       pulumi.Any(exampleEquinixMetalProject.Id),
    			VlanId:          exampleVlan.ID(),
    			IpReservationId: example.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.equinix.metal.ReservedIpBlock;
    import com.pulumi.equinix.metal.ReservedIpBlockArgs;
    import com.pulumi.equinix.metal.Vlan;
    import com.pulumi.equinix.metal.VlanArgs;
    import com.pulumi.equinix.metal.Gateway;
    import com.pulumi.equinix.metal.GatewayArgs;
    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) {
            var example = new ReservedIpBlock("example", ReservedIpBlockArgs.builder()
                .description("Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space.")
                .projectId(exampleEquinixMetalProject.id())
                .metro(exampleEquinixMetalVrf.metro())
                .type("vrf")
                .vrfId(exampleEquinixMetalVrf.id())
                .cidr(29)
                .network("192.168.100.0")
                .build());
    
            var exampleVlan = new Vlan("exampleVlan", VlanArgs.builder()
                .description("A VLAN for Layer2 and Hybrid Metal devices")
                .metro(exampleEquinixMetalVrf.metro())
                .projectId(exampleEquinixMetalProject.id())
                .build());
    
            var exampleGateway = new Gateway("exampleGateway", GatewayArgs.builder()
                .projectId(exampleEquinixMetalProject.id())
                .vlanId(exampleVlan.id())
                .ipReservationId(example.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_equinix as equinix
    
    example = equinix.metal.ReservedIpBlock("example",
        description="Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space.",
        project_id=example_equinix_metal_project["id"],
        metro=example_equinix_metal_vrf["metro"],
        type="vrf",
        vrf_id=example_equinix_metal_vrf["id"],
        cidr=29,
        network="192.168.100.0")
    example_vlan = equinix.metal.Vlan("exampleVlan",
        description="A VLAN for Layer2 and Hybrid Metal devices",
        metro=example_equinix_metal_vrf["metro"],
        project_id=example_equinix_metal_project["id"])
    example_gateway = equinix.metal.Gateway("exampleGateway",
        project_id=example_equinix_metal_project["id"],
        vlan_id=example_vlan.id,
        ip_reservation_id=example.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as equinix from "@equinix-labs/pulumi-equinix";
    
    const example = new equinix.metal.ReservedIpBlock("example", {
        description: "Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space.",
        projectId: exampleEquinixMetalProject.id,
        metro: exampleEquinixMetalVrf.metro,
        type: "vrf",
        vrfId: exampleEquinixMetalVrf.id,
        cidr: 29,
        network: "192.168.100.0",
    });
    const exampleVlan = new equinix.metal.Vlan("exampleVlan", {
        description: "A VLAN for Layer2 and Hybrid Metal devices",
        metro: exampleEquinixMetalVrf.metro,
        projectId: exampleEquinixMetalProject.id,
    });
    const exampleGateway = new equinix.metal.Gateway("exampleGateway", {
        projectId: exampleEquinixMetalProject.id,
        vlanId: exampleVlan.id,
        ipReservationId: example.id,
    });
    
    resources:
      example:
        type: equinix:metal:ReservedIpBlock
        properties:
          description: Reserved IP block (192.168.100.0/29) taken from on of the ranges in the VRF's pool of address space.
          projectId: ${exampleEquinixMetalProject.id}
          metro: ${exampleEquinixMetalVrf.metro}
          type: vrf
          vrfId: ${exampleEquinixMetalVrf.id}
          cidr: 29
          network: 192.168.100.0
      exampleVlan:
        type: equinix:metal:Vlan
        name: example
        properties:
          description: A VLAN for Layer2 and Hybrid Metal devices
          metro: ${exampleEquinixMetalVrf.metro}
          projectId: ${exampleEquinixMetalProject.id}
      exampleGateway:
        type: equinix:metal:Gateway
        name: example
        properties:
          projectId: ${exampleEquinixMetalProject.id}
          vlanId: ${exampleVlan.id}
          ipReservationId: ${example.id}
    

    example 3

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Equinix = Pulumi.Equinix;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleVirtualCircuit = new Equinix.Metal.VirtualCircuit("exampleVirtualCircuit", new()
        {
            Name = "example-vc",
            Description = "Virtual Circuit",
            ConnectionId = example.Id,
            ProjectId = exampleEquinixMetalProject.Id,
            PortId = example.Ports[0].Id,
            NniVlan = 1024,
            VrfId = exampleEquinixMetalVrf.Id,
            PeerAsn = 65530,
            Subnet = "192.168.100.16/31",
            MetalIp = "192.168.100.16",
            CustomerIp = "192.168.100.17",
        });
    
    });
    
    package main
    
    import (
    	"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := metal.NewVirtualCircuit(ctx, "exampleVirtualCircuit", &metal.VirtualCircuitArgs{
    			Name:         pulumi.String("example-vc"),
    			Description:  pulumi.String("Virtual Circuit"),
    			ConnectionId: pulumi.Any(example.Id),
    			ProjectId:    pulumi.Any(exampleEquinixMetalProject.Id),
    			PortId:       pulumi.Any(example.Ports[0].Id),
    			NniVlan:      pulumi.Int(1024),
    			VrfId:        pulumi.Any(exampleEquinixMetalVrf.Id),
    			PeerAsn:      pulumi.Int(65530),
    			Subnet:       pulumi.String("192.168.100.16/31"),
    			MetalIp:      pulumi.String("192.168.100.16"),
    			CustomerIp:   pulumi.String("192.168.100.17"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.equinix.metal.VirtualCircuit;
    import com.pulumi.equinix.metal.VirtualCircuitArgs;
    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) {
            var exampleVirtualCircuit = new VirtualCircuit("exampleVirtualCircuit", VirtualCircuitArgs.builder()
                .name("example-vc")
                .description("Virtual Circuit")
                .connectionId(example.id())
                .projectId(exampleEquinixMetalProject.id())
                .portId(example.ports()[0].id())
                .nniVlan(1024)
                .vrfId(exampleEquinixMetalVrf.id())
                .peerAsn(65530)
                .subnet("192.168.100.16/31")
                .metalIp("192.168.100.16")
                .customerIp("192.168.100.17")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_equinix as equinix
    
    example_virtual_circuit = equinix.metal.VirtualCircuit("exampleVirtualCircuit",
        name="example-vc",
        description="Virtual Circuit",
        connection_id=example["id"],
        project_id=example_equinix_metal_project["id"],
        port_id=example["ports"][0]["id"],
        nni_vlan=1024,
        vrf_id=example_equinix_metal_vrf["id"],
        peer_asn=65530,
        subnet="192.168.100.16/31",
        metal_ip="192.168.100.16",
        customer_ip="192.168.100.17")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as equinix from "@equinix-labs/pulumi-equinix";
    
    const exampleVirtualCircuit = new equinix.metal.VirtualCircuit("exampleVirtualCircuit", {
        name: "example-vc",
        description: "Virtual Circuit",
        connectionId: example.id,
        projectId: exampleEquinixMetalProject.id,
        portId: example.ports[0].id,
        nniVlan: 1024,
        vrfId: exampleEquinixMetalVrf.id,
        peerAsn: 65530,
        subnet: "192.168.100.16/31",
        metalIp: "192.168.100.16",
        customerIp: "192.168.100.17",
    });
    
    resources:
      exampleVirtualCircuit:
        type: equinix:metal:VirtualCircuit
        name: example
        properties:
          name: example-vc
          description: Virtual Circuit
          connectionId: ${example.id}
          projectId: ${exampleEquinixMetalProject.id}
          portId: ${example.ports[0].id}
          nniVlan: 1024
          vrfId: ${exampleEquinixMetalVrf.id}
          peerAsn: 65530
          subnet: 192.168.100.16/31
          metalIp: 192.168.100.16
          customerIp: 192.168.100.17
    variables:
      example:
        fn::invoke:
          Function: equinix:metal:getInterconnection
          Arguments:
            connectionId: ${metalDedicatedConnectionId}
    

    Create Vrf Resource

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

    Constructor syntax

    new Vrf(name: string, args: VrfArgs, opts?: CustomResourceOptions);
    @overload
    def Vrf(resource_name: str,
            args: VrfArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vrf(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            metro: Optional[str] = None,
            project_id: Optional[str] = None,
            description: Optional[str] = None,
            ip_ranges: Optional[Sequence[str]] = None,
            local_asn: Optional[int] = None,
            name: Optional[str] = None)
    func NewVrf(ctx *Context, name string, args VrfArgs, opts ...ResourceOption) (*Vrf, error)
    public Vrf(string name, VrfArgs args, CustomResourceOptions? opts = null)
    public Vrf(String name, VrfArgs args)
    public Vrf(String name, VrfArgs args, CustomResourceOptions options)
    
    type: equinix:metal:Vrf
    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 VrfArgs
    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 VrfArgs
    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 VrfArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VrfArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VrfArgs
    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 vrfResource = new Equinix.Metal.Vrf("vrfResource", new()
    {
        Metro = "string",
        ProjectId = "string",
        Description = "string",
        IpRanges = new[]
        {
            "string",
        },
        LocalAsn = 0,
        Name = "string",
    });
    
    example, err := metal.NewVrf(ctx, "vrfResource", &metal.VrfArgs{
    	Metro:       pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	IpRanges: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LocalAsn: pulumi.Int(0),
    	Name:     pulumi.String("string"),
    })
    
    var vrfResource = new Vrf("vrfResource", VrfArgs.builder()
        .metro("string")
        .projectId("string")
        .description("string")
        .ipRanges("string")
        .localAsn(0)
        .name("string")
        .build());
    
    vrf_resource = equinix.metal.Vrf("vrfResource",
        metro="string",
        project_id="string",
        description="string",
        ip_ranges=["string"],
        local_asn=0,
        name="string")
    
    const vrfResource = new equinix.metal.Vrf("vrfResource", {
        metro: "string",
        projectId: "string",
        description: "string",
        ipRanges: ["string"],
        localAsn: 0,
        name: "string",
    });
    
    type: equinix:metal:Vrf
    properties:
        description: string
        ipRanges:
            - string
        localAsn: 0
        metro: string
        name: string
        projectId: string
    

    Vrf 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 Vrf resource accepts the following input properties:

    Metro string
    Metro ID or Code where the VRF will be deployed.
    ProjectId string
    Project ID where the VRF will be deployed.
    Description string
    Description of the VRF.
    IpRanges List<string>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    LocalAsn int
    The 4-byte ASN set on the VRF.
    Name string
    User-supplied name of the VRF, unique to the project
    Metro string
    Metro ID or Code where the VRF will be deployed.
    ProjectId string
    Project ID where the VRF will be deployed.
    Description string
    Description of the VRF.
    IpRanges []string
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    LocalAsn int
    The 4-byte ASN set on the VRF.
    Name string
    User-supplied name of the VRF, unique to the project
    metro String
    Metro ID or Code where the VRF will be deployed.
    projectId String
    Project ID where the VRF will be deployed.
    description String
    Description of the VRF.
    ipRanges List<String>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn Integer
    The 4-byte ASN set on the VRF.
    name String
    User-supplied name of the VRF, unique to the project
    metro string
    Metro ID or Code where the VRF will be deployed.
    projectId string
    Project ID where the VRF will be deployed.
    description string
    Description of the VRF.
    ipRanges string[]
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn number
    The 4-byte ASN set on the VRF.
    name string
    User-supplied name of the VRF, unique to the project
    metro str
    Metro ID or Code where the VRF will be deployed.
    project_id str
    Project ID where the VRF will be deployed.
    description str
    Description of the VRF.
    ip_ranges Sequence[str]
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    local_asn int
    The 4-byte ASN set on the VRF.
    name str
    User-supplied name of the VRF, unique to the project
    metro String
    Metro ID or Code where the VRF will be deployed.
    projectId String
    Project ID where the VRF will be deployed.
    description String
    Description of the VRF.
    ipRanges List<String>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn Number
    The 4-byte ASN set on the VRF.
    name String
    User-supplied name of the VRF, unique to the project

    Outputs

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

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

    Look up Existing Vrf Resource

    Get an existing Vrf 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?: VrfState, opts?: CustomResourceOptions): Vrf
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            ip_ranges: Optional[Sequence[str]] = None,
            local_asn: Optional[int] = None,
            metro: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None) -> Vrf
    func GetVrf(ctx *Context, name string, id IDInput, state *VrfState, opts ...ResourceOption) (*Vrf, error)
    public static Vrf Get(string name, Input<string> id, VrfState? state, CustomResourceOptions? opts = null)
    public static Vrf get(String name, Output<String> id, VrfState 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:
    Description string
    Description of the VRF.
    IpRanges List<string>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    LocalAsn int
    The 4-byte ASN set on the VRF.
    Metro string
    Metro ID or Code where the VRF will be deployed.
    Name string
    User-supplied name of the VRF, unique to the project
    ProjectId string
    Project ID where the VRF will be deployed.
    Description string
    Description of the VRF.
    IpRanges []string
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    LocalAsn int
    The 4-byte ASN set on the VRF.
    Metro string
    Metro ID or Code where the VRF will be deployed.
    Name string
    User-supplied name of the VRF, unique to the project
    ProjectId string
    Project ID where the VRF will be deployed.
    description String
    Description of the VRF.
    ipRanges List<String>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn Integer
    The 4-byte ASN set on the VRF.
    metro String
    Metro ID or Code where the VRF will be deployed.
    name String
    User-supplied name of the VRF, unique to the project
    projectId String
    Project ID where the VRF will be deployed.
    description string
    Description of the VRF.
    ipRanges string[]
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn number
    The 4-byte ASN set on the VRF.
    metro string
    Metro ID or Code where the VRF will be deployed.
    name string
    User-supplied name of the VRF, unique to the project
    projectId string
    Project ID where the VRF will be deployed.
    description str
    Description of the VRF.
    ip_ranges Sequence[str]
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    local_asn int
    The 4-byte ASN set on the VRF.
    metro str
    Metro ID or Code where the VRF will be deployed.
    name str
    User-supplied name of the VRF, unique to the project
    project_id str
    Project ID where the VRF will be deployed.
    description String
    Description of the VRF.
    ipRanges List<String>
    All IPv4 and IPv6 Ranges that will be available to BGP Peers. IPv4 addresses must be /8 or smaller with a minimum size of /29. IPv6 must be /56 or smaller with a minimum size of /64. Ranges must not overlap other ranges within the VRF.
    localAsn Number
    The 4-byte ASN set on the VRF.
    metro String
    Metro ID or Code where the VRF will be deployed.
    name String
    User-supplied name of the VRF, unique to the project
    projectId String
    Project ID where the VRF will be deployed.

    Package Details

    Repository
    equinix equinix/pulumi-equinix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the equinix Terraform Provider.
    equinix logo
    Equinix v0.18.0 published on Monday, Sep 23, 2024 by Equinix