published on Wednesday, Nov 4, 2026 by e-breuninger
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:
- Group
Id double - Id of the VLAN group to allocate the VLAN id from.
- Comments string
- Custom
Fields 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
- Owner
Id double - 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 doubleId - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- Role
Id double - Id of the role.
- Site
Id double - Id of the site.
- Status string
- Operational status. One of: active, reserved, deprecated.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id double - Id of the tenant.
- Group
Id float64 - Id of the VLAN group to allocate the VLAN id from.
- Comments string
- Custom
Fields 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
- Owner
Id float64 - 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 float64Id - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- Role
Id float64 - Id of the role.
- Site
Id float64 - Id of the site.
- Status string
- Operational status. One of: active, reserved, deprecated.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id 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_ numberid - 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.
- 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.
- group
Id Double - Id of the VLAN group to allocate the VLAN id from.
- comments String
- custom
Fields 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
- owner
Id Double - 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 DoubleId - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- role
Id Double - Id of the role.
- site
Id Double - Id of the site.
- status String
- Operational status. One of: active, reserved, deprecated.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id Double - Id of the tenant.
- group
Id number - Id of the VLAN group to allocate the VLAN id from.
- comments string
- custom
Fields {[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
- 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 numberId - 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.
- 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.
- 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_ floatid - 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.
- 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.
- 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 NumberId - 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AvailableVlan resource produces the following output properties:
- Available
Vlan doubleId - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Prefix
Count double - Number of prefixes on the VLAN.
- 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).
- Available
Vlan float64Id - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Prefix
Count float64 - Number of prefixes on the VLAN.
- []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_ numberid - 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.
- 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).
- available
Vlan DoubleId - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - prefix
Count Double - Number of prefixes on the VLAN.
- 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).
- available
Vlan numberId - 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.
- 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_ floatid - 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.
- 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).
- available
Vlan NumberId - 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.
- 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) -> AvailableVlanfunc 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.
- Available
Vlan doubleId - NetBox id.
- Comments string
- Created string
- Custom
Fields 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
- Group
Id double - Id of the VLAN group to allocate the VLAN id from.
- Last
Updated string - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Prefix
Count double - 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 doubleId - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- Role
Id double - Id of the role.
- Site
Id double - Id of the site.
- Status string
- Operational status. One of: active, reserved, deprecated.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id double - Id of the tenant.
- Url string
- Vid double
- The allocated VLAN id (1-4094).
- Available
Vlan float64Id - NetBox id.
- Comments string
- Created string
- Custom
Fields 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
- Group
Id float64 - Id of the VLAN group to allocate the VLAN id from.
- Last
Updated string - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Prefix
Count float64 - 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 float64Id - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- Role
Id float64 - Id of the role.
- Site
Id float64 - Id of the site.
- Status string
- Operational status. One of: active, reserved, deprecated.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id float64 - Id of the tenant.
- Url string
- Vid float64
- The allocated VLAN id (1-4094).
- available_
vlan_ numberid - 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_ numberid - 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.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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).
- available
Vlan DoubleId - NetBox id.
- comments String
- created String
- custom
Fields 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
- group
Id Double - Id of the VLAN group to allocate the VLAN id from.
- last
Updated String - name String
- owner
Id Double - Id of the owner the object is assigned to.
- prefix
Count Double - 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 DoubleId - Id of the service VLAN this customer VLAN is carried in (qinq_role cvlan).
- role
Id Double - Id of the role.
- site
Id Double - Id of the site.
- status String
- Operational status. One of: active, reserved, deprecated.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id Double - Id of the tenant.
- url String
- vid Double
- The allocated VLAN id (1-4094).
- available
Vlan numberId - NetBox id.
- comments string
- created string
- custom
Fields {[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
- 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 numberId - 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.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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).
- available_
vlan_ floatid - 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_ floatid - 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.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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).
- available
Vlan NumberId - 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 NumberId - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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).
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
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger