netbox.AvailableVlan
Explore with Pulumi AI
Per the docs:
A VLAN represents an isolated Layer 2 domain identified by a numeric ID (1–4094). VLANs may be assigned to specific sites or marked as global. Optionally, they can be organized within VLAN groups to define scope and enforce uniqueness.
Each VLAN can also be assigned an operational status and a functional role. Statuses are hard-coded in NetBox and include the following:
- Active
- Reserved
- Deprecated
This resource will retrieve the next available VLAN ID from a given VLAN group (specified by ID).
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: Optional[AvailableVlanArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AvailableVlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
available_vlan_id: Optional[str] = None,
description: Optional[str] = None,
group_id: Optional[float] = None,
name: Optional[str] = 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 = null, 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.
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()
{
AvailableVlanId = "string",
Description = "string",
GroupId = 0,
Name = "string",
RoleId = 0,
SiteId = 0,
Status = "string",
Tags = new[]
{
"string",
},
TenantId = 0,
});
example, err := netbox.NewAvailableVlan(ctx, "availableVlanResource", &netbox.AvailableVlanArgs{
AvailableVlanId: pulumi.String("string"),
Description: pulumi.String("string"),
GroupId: pulumi.Float64(0),
Name: pulumi.String("string"),
RoleId: pulumi.Float64(0),
SiteId: pulumi.Float64(0),
Status: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.Float64(0),
})
var availableVlanResource = new AvailableVlan("availableVlanResource", AvailableVlanArgs.builder()
.availableVlanId("string")
.description("string")
.groupId(0.0)
.name("string")
.roleId(0.0)
.siteId(0.0)
.status("string")
.tags("string")
.tenantId(0.0)
.build());
available_vlan_resource = netbox.AvailableVlan("availableVlanResource",
available_vlan_id="string",
description="string",
group_id=0,
name="string",
role_id=0,
site_id=0,
status="string",
tags=["string"],
tenant_id=0)
const availableVlanResource = new netbox.AvailableVlan("availableVlanResource", {
availableVlanId: "string",
description: "string",
groupId: 0,
name: "string",
roleId: 0,
siteId: 0,
status: "string",
tags: ["string"],
tenantId: 0,
});
type: netbox:AvailableVlan
properties:
availableVlanId: string
description: string
groupId: 0
name: string
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:
- Available
Vlan stringId - The ID of this resource.
- Description string
- Group
Id double - Name string
- Role
Id double - Site
Id double - Status string
- List<string>
- Tenant
Id double
- Available
Vlan stringId - The ID of this resource.
- Description string
- Group
Id float64 - Name string
- Role
Id float64 - Site
Id float64 - Status string
- []string
- Tenant
Id float64
- available
Vlan StringId - The ID of this resource.
- description String
- group
Id Double - name String
- role
Id Double - site
Id Double - status String
- List<String>
- tenant
Id Double
- available
Vlan stringId - The ID of this resource.
- description string
- group
Id number - name string
- role
Id number - site
Id number - status string
- string[]
- tenant
Id number
- available_
vlan_ strid - The ID of this resource.
- description str
- group_
id float - name str
- role_
id float - site_
id float - status str
- Sequence[str]
- tenant_
id float
- available
Vlan StringId - The ID of this resource.
- description String
- group
Id Number - name String
- role
Id Number - site
Id Number - status String
- List<String>
- tenant
Id Number
Outputs
All input properties are implicitly available as output properties. Additionally, the AvailableVlan resource produces the following output properties:
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[str] = None,
comments: Optional[str] = None,
description: Optional[str] = None,
group_id: Optional[float] = None,
name: Optional[str] = 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,
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}
- 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 stringId - The ID of this resource.
- Comments string
- Description string
- Group
Id double - Name string
- Role
Id double - Site
Id double - Status string
- List<string>
- List<string>
- Tenant
Id double - Vid double
- Available
Vlan stringId - The ID of this resource.
- Comments string
- Description string
- Group
Id float64 - Name string
- Role
Id float64 - Site
Id float64 - Status string
- []string
- []string
- Tenant
Id float64 - Vid float64
- available
Vlan StringId - The ID of this resource.
- comments String
- description String
- group
Id Double - name String
- role
Id Double - site
Id Double - status String
- List<String>
- List<String>
- tenant
Id Double - vid Double
- available
Vlan stringId - The ID of this resource.
- comments string
- description string
- group
Id number - name string
- role
Id number - site
Id number - status string
- string[]
- string[]
- tenant
Id number - vid number
- available_
vlan_ strid - The ID of this resource.
- comments str
- description str
- group_
id float - name str
- role_
id float - site_
id float - status str
- Sequence[str]
- Sequence[str]
- tenant_
id float - vid float
- available
Vlan StringId - The ID of this resource.
- comments String
- description String
- group
Id Number - name String
- role
Id Number - site
Id Number - status String
- List<String>
- List<String>
- tenant
Id Number - vid Number
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.