1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. AvailableVlan
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    A NetBox VLAN (ipam.vlan) allocated with the next free VLAN id of a VLAN group. After creation it is an ordinary VLAN; the group replaces the resource when changed.

    From the official documentation:

    A Virtual LAN (VLAN) represents an isolated layer two domain, identified by a name and a numeric ID (1-4094) as defined in IEEE 802.1Q. VLANs are arranged into VLAN groups to define scope and to enforce uniqueness.

    Example Usage

    The VLAN is allocated on create: the next free VID of the given VLAN group, whose vid_ranges bound the choice.

    From a VLAN group

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.VlanGroup("test", {
        name: "test-vlan-group",
        vidRanges: [{
            start: 100,
            end: 199,
        }],
    });
    // Allocates the next free VID of the group.
    const testAvailableVlan = new netbox.AvailableVlan("test", {
        name: "test-vlan",
        groupId: test.vlanGroupId,
        status: "reserved",
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.VlanGroup("test",
        name="test-vlan-group",
        vid_ranges=[{
            "start": 100,
            "end": 199,
        }])
    # Allocates the next free VID of the group.
    test_available_vlan = netbox.AvailableVlan("test",
        name="test-vlan",
        group_id=test.vlan_group_id,
        status="reserved",
        description="test-description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := netbox.NewVlanGroup(ctx, "test", &netbox.VlanGroupArgs{
    			Name: pulumi.String("test-vlan-group"),
    			VidRanges: netbox.VlanGroupVidRangeArray{
    				&netbox.VlanGroupVidRangeArgs{
    					Start: pulumi.Float64(100),
    					End:   pulumi.Float64(199),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Allocates the next free VID of the group.
    		_, err = netbox.NewAvailableVlan(ctx, "test", &netbox.AvailableVlanArgs{
    			Name:        pulumi.String("test-vlan"),
    			GroupId:     test.VlanGroupId,
    			Status:      pulumi.String("reserved"),
    			Description: pulumi.String("test-description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Netbox.VlanGroup("test", new()
        {
            Name = "test-vlan-group",
            VidRanges = new[]
            {
                new Netbox.Inputs.VlanGroupVidRangeArgs
                {
                    Start = 100,
                    End = 199,
                },
            },
        });
    
        // Allocates the next free VID of the group.
        var testAvailableVlan = new Netbox.AvailableVlan("test", new()
        {
            Name = "test-vlan",
            GroupId = test.VlanGroupId,
            Status = "reserved",
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.VlanGroup;
    import com.pulumi.netbox.VlanGroupArgs;
    import com.pulumi.netbox.inputs.VlanGroupVidRangeArgs;
    import com.pulumi.netbox.AvailableVlan;
    import com.pulumi.netbox.AvailableVlanArgs;
    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 test = new VlanGroup("test", VlanGroupArgs.builder()
                .name("test-vlan-group")
                .vidRanges(VlanGroupVidRangeArgs.builder()
                    .start(100.0)
                    .end(199.0)
                    .build())
                .build());
    
            // Allocates the next free VID of the group.
            var testAvailableVlan = new AvailableVlan("testAvailableVlan", AvailableVlanArgs.builder()
                .name("test-vlan")
                .groupId(test.vlanGroupId())
                .status("reserved")
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:VlanGroup
        properties:
          name: test-vlan-group
          vidRanges:
            - start: 100
              end: 199
      # Allocates the next free VID of the group.
      testAvailableVlan:
        type: netbox:AvailableVlan
        name: test
        properties:
          name: test-vlan
          groupId: ${test.vlanGroupId}
          status: reserved
          description: test-description
    
    Example coming soon!
    

    From a group scoped to a site

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Site("test", {name: "test-site"});
    const testTenant = new netbox.Tenant("test", {name: "test-tenant"});
    // A group scoped to the site; the allocated VLAN is placed at the site too.
    const testVlanGroup = new netbox.VlanGroup("test", {
        name: "test-vlan-group",
        siteId: test.siteId,
        vidRanges: [{
            start: 100,
            end: 199,
        }],
    });
    const testAvailableVlan = new netbox.AvailableVlan("test", {
        name: "test-vlan",
        groupId: testVlanGroup.vlanGroupId,
        siteId: test.siteId,
        tenantId: testTenant.tenantId,
        status: "active",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Site("test", name="test-site")
    test_tenant = netbox.Tenant("test", name="test-tenant")
    # A group scoped to the site; the allocated VLAN is placed at the site too.
    test_vlan_group = netbox.VlanGroup("test",
        name="test-vlan-group",
        site_id=test.site_id,
        vid_ranges=[{
            "start": 100,
            "end": 199,
        }])
    test_available_vlan = netbox.AvailableVlan("test",
        name="test-vlan",
        group_id=test_vlan_group.vlan_group_id,
        site_id=test.site_id,
        tenant_id=test_tenant.tenant_id,
        status="active")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := netbox.NewSite(ctx, "test", &netbox.SiteArgs{
    			Name: pulumi.String("test-site"),
    		})
    		if err != nil {
    			return err
    		}
    		testTenant, err := netbox.NewTenant(ctx, "test", &netbox.TenantArgs{
    			Name: pulumi.String("test-tenant"),
    		})
    		if err != nil {
    			return err
    		}
    		// A group scoped to the site; the allocated VLAN is placed at the site too.
    		testVlanGroup, err := netbox.NewVlanGroup(ctx, "test", &netbox.VlanGroupArgs{
    			Name:   pulumi.String("test-vlan-group"),
    			SiteId: test.SiteId,
    			VidRanges: netbox.VlanGroupVidRangeArray{
    				&netbox.VlanGroupVidRangeArgs{
    					Start: pulumi.Float64(100),
    					End:   pulumi.Float64(199),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewAvailableVlan(ctx, "test", &netbox.AvailableVlanArgs{
    			Name:     pulumi.String("test-vlan"),
    			GroupId:  testVlanGroup.VlanGroupId,
    			SiteId:   test.SiteId,
    			TenantId: testTenant.TenantId,
    			Status:   pulumi.String("active"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Netbox.Site("test", new()
        {
            Name = "test-site",
        });
    
        var testTenant = new Netbox.Tenant("test", new()
        {
            Name = "test-tenant",
        });
    
        // A group scoped to the site; the allocated VLAN is placed at the site too.
        var testVlanGroup = new Netbox.VlanGroup("test", new()
        {
            Name = "test-vlan-group",
            SiteId = test.SiteId,
            VidRanges = new[]
            {
                new Netbox.Inputs.VlanGroupVidRangeArgs
                {
                    Start = 100,
                    End = 199,
                },
            },
        });
    
        var testAvailableVlan = new Netbox.AvailableVlan("test", new()
        {
            Name = "test-vlan",
            GroupId = testVlanGroup.VlanGroupId,
            SiteId = test.SiteId,
            TenantId = testTenant.TenantId,
            Status = "active",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Site;
    import com.pulumi.netbox.SiteArgs;
    import com.pulumi.netbox.Tenant;
    import com.pulumi.netbox.TenantArgs;
    import com.pulumi.netbox.VlanGroup;
    import com.pulumi.netbox.VlanGroupArgs;
    import com.pulumi.netbox.inputs.VlanGroupVidRangeArgs;
    import com.pulumi.netbox.AvailableVlan;
    import com.pulumi.netbox.AvailableVlanArgs;
    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 test = new Site("test", SiteArgs.builder()
                .name("test-site")
                .build());
    
            var testTenant = new Tenant("testTenant", TenantArgs.builder()
                .name("test-tenant")
                .build());
    
            // A group scoped to the site; the allocated VLAN is placed at the site too.
            var testVlanGroup = new VlanGroup("testVlanGroup", VlanGroupArgs.builder()
                .name("test-vlan-group")
                .siteId(test.siteId())
                .vidRanges(VlanGroupVidRangeArgs.builder()
                    .start(100.0)
                    .end(199.0)
                    .build())
                .build());
    
            var testAvailableVlan = new AvailableVlan("testAvailableVlan", AvailableVlanArgs.builder()
                .name("test-vlan")
                .groupId(testVlanGroup.vlanGroupId())
                .siteId(test.siteId())
                .tenantId(testTenant.tenantId())
                .status("active")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Site
        properties:
          name: test-site
      testTenant:
        type: netbox:Tenant
        name: test
        properties:
          name: test-tenant
      # A group scoped to the site; the allocated VLAN is placed at the site too.
      testVlanGroup:
        type: netbox:VlanGroup
        name: test
        properties:
          name: test-vlan-group
          siteId: ${test.siteId}
          vidRanges:
            - start: 100
              end: 199
      testAvailableVlan:
        type: netbox:AvailableVlan
        name: test
        properties:
          name: test-vlan
          groupId: ${testVlanGroup.vlanGroupId}
          siteId: ${test.siteId}
          tenantId: ${testTenant.tenantId}
          status: active
    
    Example coming soon!
    

    Several VLANs from one group

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.VlanGroup("test", {
        name: "test-vlan-group",
        vidRanges: [{
            start: 100,
            end: 199,
        }],
    });
    // Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
    // order.
    const testA = new netbox.AvailableVlan("test_a", {
        name: "test-vlan-a",
        groupId: test.vlanGroupId,
    });
    const testB = new netbox.AvailableVlan("test_b", {
        name: "test-vlan-b",
        groupId: test.vlanGroupId,
    }, {
        dependsOn: [testA],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.VlanGroup("test",
        name="test-vlan-group",
        vid_ranges=[{
            "start": 100,
            "end": 199,
        }])
    # Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
    # order.
    test_a = netbox.AvailableVlan("test_a",
        name="test-vlan-a",
        group_id=test.vlan_group_id)
    test_b = netbox.AvailableVlan("test_b",
        name="test-vlan-b",
        group_id=test.vlan_group_id,
        opts = pulumi.ResourceOptions(depends_on=[test_a]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := netbox.NewVlanGroup(ctx, "test", &netbox.VlanGroupArgs{
    			Name: pulumi.String("test-vlan-group"),
    			VidRanges: netbox.VlanGroupVidRangeArray{
    				&netbox.VlanGroupVidRangeArgs{
    					Start: pulumi.Float64(100),
    					End:   pulumi.Float64(199),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
    		// order.
    		testA, err := netbox.NewAvailableVlan(ctx, "test_a", &netbox.AvailableVlanArgs{
    			Name:    pulumi.String("test-vlan-a"),
    			GroupId: test.VlanGroupId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewAvailableVlan(ctx, "test_b", &netbox.AvailableVlanArgs{
    			Name:    pulumi.String("test-vlan-b"),
    			GroupId: test.VlanGroupId,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			testA,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Netbox.VlanGroup("test", new()
        {
            Name = "test-vlan-group",
            VidRanges = new[]
            {
                new Netbox.Inputs.VlanGroupVidRangeArgs
                {
                    Start = 100,
                    End = 199,
                },
            },
        });
    
        // Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
        // order.
        var testA = new Netbox.AvailableVlan("test_a", new()
        {
            Name = "test-vlan-a",
            GroupId = test.VlanGroupId,
        });
    
        var testB = new Netbox.AvailableVlan("test_b", new()
        {
            Name = "test-vlan-b",
            GroupId = test.VlanGroupId,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                testA,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.VlanGroup;
    import com.pulumi.netbox.VlanGroupArgs;
    import com.pulumi.netbox.inputs.VlanGroupVidRangeArgs;
    import com.pulumi.netbox.AvailableVlan;
    import com.pulumi.netbox.AvailableVlanArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 test = new VlanGroup("test", VlanGroupArgs.builder()
                .name("test-vlan-group")
                .vidRanges(VlanGroupVidRangeArgs.builder()
                    .start(100.0)
                    .end(199.0)
                    .build())
                .build());
    
            // Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
            // order.
            var testA = new AvailableVlan("testA", AvailableVlanArgs.builder()
                .name("test-vlan-a")
                .groupId(test.vlanGroupId())
                .build());
    
            var testB = new AvailableVlan("testB", AvailableVlanArgs.builder()
                .name("test-vlan-b")
                .groupId(test.vlanGroupId())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(testA)
                    .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:VlanGroup
        properties:
          name: test-vlan-group
          vidRanges:
            - start: 100
              end: 199
      # Two allocations from one group: the second waits for the first so NetBox hands out the VIDs in
      # order.
      testA:
        type: netbox:AvailableVlan
        name: test_a
        properties:
          name: test-vlan-a
          groupId: ${test.vlanGroupId}
      testB:
        type: netbox:AvailableVlan
        name: test_b
        properties:
          name: test-vlan-b
          groupId: ${test.vlanGroupId}
        options:
          dependsOn:
            - ${testA}
    
    Example coming soon!
    

    Create AvailableVlan Resource

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

    Constructor syntax

    new AvailableVlan(name: string, args: AvailableVlanArgs, opts?: CustomResourceOptions);
    @overload
    def AvailableVlan(resource_name: str,
                      args: AvailableVlanArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AvailableVlan(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      group_id: Optional[float] = None,
                      qinq_role: Optional[str] = None,
                      description: Optional[str] = None,
                      custom_fields: Optional[Mapping[str, str]] = None,
                      name: Optional[str] = None,
                      owner_id: Optional[float] = None,
                      comments: Optional[str] = None,
                      qinq_svlan_id: Optional[float] = None,
                      role_id: Optional[float] = None,
                      site_id: Optional[float] = None,
                      status: Optional[str] = None,
                      tags: Optional[Sequence[str]] = None,
                      tenant_id: Optional[float] = None)
    func NewAvailableVlan(ctx *Context, name string, args AvailableVlanArgs, opts ...ResourceOption) (*AvailableVlan, error)
    public AvailableVlan(string name, AvailableVlanArgs args, CustomResourceOptions? opts = null)
    public AvailableVlan(String name, AvailableVlanArgs args)
    public AvailableVlan(String name, AvailableVlanArgs args, CustomResourceOptions options)
    
    type: netbox:AvailableVlan
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_available_vlan" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AvailableVlanArgs
    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 AvailableVlanArgs
    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 AvailableVlanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AvailableVlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AvailableVlanArgs
    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 availableVlanResource = new Netbox.AvailableVlan("availableVlanResource", new()
    {
        GroupId = 0.0,
        QinqRole = "string",
        Description = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        Name = "string",
        OwnerId = 0.0,
        Comments = "string",
        QinqSvlanId = 0.0,
        RoleId = 0.0,
        SiteId = 0.0,
        Status = "string",
        Tags = new[]
        {
            "string",
        },
        TenantId = 0.0,
    });
    
    example, err := netbox.NewAvailableVlan(ctx, "availableVlanResource", &netbox.AvailableVlanArgs{
    	GroupId:     pulumi.Float64(0),
    	QinqRole:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:        pulumi.String("string"),
    	OwnerId:     pulumi.Float64(0),
    	Comments:    pulumi.String("string"),
    	QinqSvlanId: pulumi.Float64(0),
    	RoleId:      pulumi.Float64(0),
    	SiteId:      pulumi.Float64(0),
    	Status:      pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId: pulumi.Float64(0),
    })
    
    resource "netbox_available_vlan" "availableVlanResource" {
      lifecycle {
        create_before_destroy = true
      }
      group_id    = 0
      qinq_role   = "string"
      description = "string"
      custom_fields = {
        "string" = "string"
      }
      name          = "string"
      owner_id      = 0
      comments      = "string"
      qinq_svlan_id = 0
      role_id       = 0
      site_id       = 0
      status        = "string"
      tags          = ["string"]
      tenant_id     = 0
    }
    
    var availableVlanResource = new AvailableVlan("availableVlanResource", AvailableVlanArgs.builder()
        .groupId(0.0)
        .qinqRole("string")
        .description("string")
        .customFields(Map.of("string", "string"))
        .name("string")
        .ownerId(0.0)
        .comments("string")
        .qinqSvlanId(0.0)
        .roleId(0.0)
        .siteId(0.0)
        .status("string")
        .tags("string")
        .tenantId(0.0)
        .build());
    
    available_vlan_resource = netbox.AvailableVlan("availableVlanResource",
        group_id=float(0),
        qinq_role="string",
        description="string",
        custom_fields={
            "string": "string",
        },
        name="string",
        owner_id=float(0),
        comments="string",
        qinq_svlan_id=float(0),
        role_id=float(0),
        site_id=float(0),
        status="string",
        tags=["string"],
        tenant_id=float(0))
    
    const availableVlanResource = new netbox.AvailableVlan("availableVlanResource", {
        groupId: 0,
        qinqRole: "string",
        description: "string",
        customFields: {
            string: "string",
        },
        name: "string",
        ownerId: 0,
        comments: "string",
        qinqSvlanId: 0,
        roleId: 0,
        siteId: 0,
        status: "string",
        tags: ["string"],
        tenantId: 0,
    });
    
    type: netbox:AvailableVlan
    properties:
        comments: string
        customFields:
            string: string
        description: string
        groupId: 0
        name: string
        ownerId: 0
        qinqRole: string
        qinqSvlanId: 0
        roleId: 0
        siteId: 0
        status: string
        tags:
            - string
        tenantId: 0
    

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

    GroupId double
    Id of the VLAN group to allocate the VLAN id from.
    Comments string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    QinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    QinqSvlanId double
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    RoleId double
    Id of the role.
    SiteId double
    Id of the site.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId double
    Id of the tenant.
    GroupId float64
    Id of the VLAN group to allocate the VLAN id from.
    Comments string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    QinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    QinqSvlanId float64
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    RoleId float64
    Id of the role.
    SiteId float64
    Id of the site.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId float64
    Id of the tenant.
    group_id number
    Id of the VLAN group to allocate the VLAN id from.
    comments string
    custom_fields map(string)
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    qinq_role string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinq_svlan_id number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    role_id number
    Id of the role.
    site_id number
    Id of the site.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id number
    Id of the tenant.
    groupId Double
    Id of the VLAN group to allocate the VLAN id from.
    comments String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    qinqRole String
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId Double
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId Double
    Id of the role.
    siteId Double
    Id of the site.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Double
    Id of the tenant.
    groupId number
    Id of the VLAN group to allocate the VLAN id from.
    comments string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    qinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId number
    Id of the role.
    siteId number
    Id of the site.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId number
    Id of the tenant.
    group_id float
    Id of the VLAN group to allocate the VLAN id from.
    comments str
    custom_fields Mapping[str, str]
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    qinq_role str
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinq_svlan_id float
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    role_id float
    Id of the role.
    site_id float
    Id of the site.
    status str
    Operational status. One of: active, reserved, deprecated.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id float
    Id of the tenant.
    groupId Number
    Id of the VLAN group to allocate the VLAN id from.
    comments String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    qinqRole String
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId Number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId Number
    Id of the role.
    siteId Number
    Id of the site.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Number
    Id of the tenant.

    Outputs

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

    AvailableVlanId double
    NetBox id.
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    PrefixCount double
    Number of prefixes on the VLAN.
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Vid double
    The allocated VLAN id (1-4094).
    AvailableVlanId float64
    NetBox id.
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    PrefixCount float64
    Number of prefixes on the VLAN.
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Vid float64
    The allocated VLAN id (1-4094).
    available_vlan_id number
    NetBox id.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated string
    prefix_count number
    Number of prefixes on the VLAN.
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    vid number
    The allocated VLAN id (1-4094).
    availableVlanId Double
    NetBox id.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    prefixCount Double
    Number of prefixes on the VLAN.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    vid Double
    The allocated VLAN id (1-4094).
    availableVlanId number
    NetBox id.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    prefixCount number
    Number of prefixes on the VLAN.
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    vid number
    The allocated VLAN id (1-4094).
    available_vlan_id float
    NetBox id.
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    prefix_count float
    Number of prefixes on the VLAN.
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    vid float
    The allocated VLAN id (1-4094).
    availableVlanId Number
    NetBox id.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    prefixCount Number
    Number of prefixes on the VLAN.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    vid Number
    The allocated VLAN id (1-4094).

    Look up Existing AvailableVlan Resource

    Get an existing AvailableVlan 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?: AvailableVlanState, opts?: CustomResourceOptions): AvailableVlan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            available_vlan_id: Optional[float] = None,
            comments: Optional[str] = None,
            created: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            group_id: Optional[float] = None,
            last_updated: Optional[str] = None,
            name: Optional[str] = None,
            owner_id: Optional[float] = None,
            prefix_count: Optional[float] = None,
            qinq_role: Optional[str] = None,
            qinq_svlan_id: Optional[float] = None,
            role_id: Optional[float] = None,
            site_id: Optional[float] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            tenant_id: Optional[float] = None,
            url: Optional[str] = None,
            vid: Optional[float] = None) -> AvailableVlan
    func GetAvailableVlan(ctx *Context, name string, id IDInput, state *AvailableVlanState, opts ...ResourceOption) (*AvailableVlan, error)
    public static AvailableVlan Get(string name, Input<string> id, AvailableVlanState? state, CustomResourceOptions? opts = null)
    public static AvailableVlan get(String name, Output<String> id, AvailableVlanState state, CustomResourceOptions options)
    resources:  _:    type: netbox:AvailableVlan    get:      id: ${id}
    import {
      to = netbox_available_vlan.example
      id = "${id}"
    }
    
    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:
    AvailableVlanId double
    NetBox id.
    Comments string
    Created string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    GroupId double
    Id of the VLAN group to allocate the VLAN id from.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PrefixCount double
    Number of prefixes on the VLAN.
    QinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    QinqSvlanId double
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    RoleId double
    Id of the role.
    SiteId double
    Id of the site.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId double
    Id of the tenant.
    Url string
    Vid double
    The allocated VLAN id (1-4094).
    AvailableVlanId float64
    NetBox id.
    Comments string
    Created string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    GroupId float64
    Id of the VLAN group to allocate the VLAN id from.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PrefixCount float64
    Number of prefixes on the VLAN.
    QinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    QinqSvlanId float64
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    RoleId float64
    Id of the role.
    SiteId float64
    Id of the site.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId float64
    Id of the tenant.
    Url string
    Vid float64
    The allocated VLAN id (1-4094).
    available_vlan_id number
    NetBox id.
    comments string
    created string
    custom_fields map(string)
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    group_id number
    Id of the VLAN group to allocate the VLAN id from.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    prefix_count number
    Number of prefixes on the VLAN.
    qinq_role string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinq_svlan_id number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    role_id number
    Id of the role.
    site_id number
    Id of the site.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id number
    Id of the tenant.
    url string
    vid number
    The allocated VLAN id (1-4094).
    availableVlanId Double
    NetBox id.
    comments String
    created String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    groupId Double
    Id of the VLAN group to allocate the VLAN id from.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    prefixCount Double
    Number of prefixes on the VLAN.
    qinqRole String
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId Double
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId Double
    Id of the role.
    siteId Double
    Id of the site.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Double
    Id of the tenant.
    url String
    vid Double
    The allocated VLAN id (1-4094).
    availableVlanId number
    NetBox id.
    comments string
    created string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    groupId number
    Id of the VLAN group to allocate the VLAN id from.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    prefixCount number
    Number of prefixes on the VLAN.
    qinqRole string
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId number
    Id of the role.
    siteId number
    Id of the site.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId number
    Id of the tenant.
    url string
    vid number
    The allocated VLAN id (1-4094).
    available_vlan_id float
    NetBox id.
    comments str
    created str
    custom_fields Mapping[str, str]
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description str
    group_id float
    Id of the VLAN group to allocate the VLAN id from.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    prefix_count float
    Number of prefixes on the VLAN.
    qinq_role str
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinq_svlan_id float
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    role_id float
    Id of the role.
    site_id float
    Id of the site.
    status str
    Operational status. One of: active, reserved, deprecated.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id float
    Id of the tenant.
    url str
    vid float
    The allocated VLAN id (1-4094).
    availableVlanId Number
    NetBox id.
    comments String
    created String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    groupId Number
    Id of the VLAN group to allocate the VLAN id from.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    prefixCount Number
    Number of prefixes on the VLAN.
    qinqRole String
    Q-in-Q role: a service VLAN (svlan) carrying customer VLANs, or a customer VLAN (cvlan) inside one. One of: svlan, cvlan.
    qinqSvlanId Number
    Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
    roleId Number
    Id of the role.
    siteId Number
    Id of the site.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Number
    Id of the tenant.
    url String
    vid Number
    The allocated VLAN id (1-4094).

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = netbox_available_vlan.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/availableVlan:AvailableVlan test 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial