netbox.Device
Explore with Pulumi AI
From the official documentation:
Every piece of hardware which is installed within a site or rack exists in NetBox as a device. Devices are measured in rack units (U) and can be half depth or full depth. A device may have a height of 0U: These devices do not consume vertical rack space and cannot be assigned to a particular rack unit. A common example of a 0U device is a vertically-mounted PDU.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const testSite = new netbox.Site("testSite", {});
const testDeviceRole = new netbox.DeviceRole("testDeviceRole", {colorHex: "123456"});
const testManufacturer = new netbox.Manufacturer("testManufacturer", {});
const testDeviceType = new netbox.DeviceType("testDeviceType", {
model: "test",
manufacturerId: testManufacturer.manufacturerId,
});
const testDevice = new netbox.Device("testDevice", {
deviceTypeId: testDeviceType.deviceTypeId,
roleId: testDeviceRole.deviceRoleId,
siteId: testSite.siteId,
localContextData: JSON.stringify({
setting_a: "Some Setting",
setting_b: 42,
}),
});
import pulumi
import json
import pulumi_netbox as netbox
test_site = netbox.Site("testSite")
test_device_role = netbox.DeviceRole("testDeviceRole", color_hex="123456")
test_manufacturer = netbox.Manufacturer("testManufacturer")
test_device_type = netbox.DeviceType("testDeviceType",
model="test",
manufacturer_id=test_manufacturer.manufacturer_id)
test_device = netbox.Device("testDevice",
device_type_id=test_device_type.device_type_id,
role_id=test_device_role.device_role_id,
site_id=test_site.site_id,
local_context_data=json.dumps({
"setting_a": "Some Setting",
"setting_b": 42,
}))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v3/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testSite, err := netbox.NewSite(ctx, "testSite", nil)
if err != nil {
return err
}
testDeviceRole, err := netbox.NewDeviceRole(ctx, "testDeviceRole", &netbox.DeviceRoleArgs{
ColorHex: pulumi.String("123456"),
})
if err != nil {
return err
}
testManufacturer, err := netbox.NewManufacturer(ctx, "testManufacturer", nil)
if err != nil {
return err
}
testDeviceType, err := netbox.NewDeviceType(ctx, "testDeviceType", &netbox.DeviceTypeArgs{
Model: pulumi.String("test"),
ManufacturerId: testManufacturer.ManufacturerId,
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"setting_a": "Some Setting",
"setting_b": 42,
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = netbox.NewDevice(ctx, "testDevice", &netbox.DeviceArgs{
DeviceTypeId: testDeviceType.DeviceTypeId,
RoleId: testDeviceRole.DeviceRoleId,
SiteId: testSite.SiteId,
LocalContextData: pulumi.String(json0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var testSite = new Netbox.Site("testSite");
var testDeviceRole = new Netbox.DeviceRole("testDeviceRole", new()
{
ColorHex = "123456",
});
var testManufacturer = new Netbox.Manufacturer("testManufacturer");
var testDeviceType = new Netbox.DeviceType("testDeviceType", new()
{
Model = "test",
ManufacturerId = testManufacturer.ManufacturerId,
});
var testDevice = new Netbox.Device("testDevice", new()
{
DeviceTypeId = testDeviceType.DeviceTypeId,
RoleId = testDeviceRole.DeviceRoleId,
SiteId = testSite.SiteId,
LocalContextData = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["setting_a"] = "Some Setting",
["setting_b"] = 42,
}),
});
});
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.DeviceRole;
import com.pulumi.netbox.DeviceRoleArgs;
import com.pulumi.netbox.Manufacturer;
import com.pulumi.netbox.DeviceType;
import com.pulumi.netbox.DeviceTypeArgs;
import com.pulumi.netbox.Device;
import com.pulumi.netbox.DeviceArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 testSite = new Site("testSite");
var testDeviceRole = new DeviceRole("testDeviceRole", DeviceRoleArgs.builder()
.colorHex("123456")
.build());
var testManufacturer = new Manufacturer("testManufacturer");
var testDeviceType = new DeviceType("testDeviceType", DeviceTypeArgs.builder()
.model("test")
.manufacturerId(testManufacturer.manufacturerId())
.build());
var testDevice = new Device("testDevice", DeviceArgs.builder()
.deviceTypeId(testDeviceType.deviceTypeId())
.roleId(testDeviceRole.deviceRoleId())
.siteId(testSite.siteId())
.localContextData(serializeJson(
jsonObject(
jsonProperty("setting_a", "Some Setting"),
jsonProperty("setting_b", 42)
)))
.build());
}
}
resources:
testSite:
type: netbox:Site
testDeviceRole:
type: netbox:DeviceRole
properties:
colorHex: '123456'
testManufacturer:
type: netbox:Manufacturer
testDeviceType:
type: netbox:DeviceType
properties:
model: test
manufacturerId: ${testManufacturer.manufacturerId}
testDevice:
type: netbox:Device
properties:
deviceTypeId: ${testDeviceType.deviceTypeId}
roleId: ${testDeviceRole.deviceRoleId}
siteId: ${testSite.siteId}
localContextData:
fn::toJSON:
setting_a: Some Setting
setting_b: 42
Create Device Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Device(name: string, args: DeviceArgs, opts?: CustomResourceOptions);
@overload
def Device(resource_name: str,
args: DeviceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Device(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_type_id: Optional[float] = None,
site_id: Optional[float] = None,
role_id: Optional[float] = None,
rack_face: Optional[str] = None,
rack_position: Optional[float] = None,
description: Optional[str] = None,
device_id: Optional[str] = None,
config_template_id: Optional[float] = None,
local_context_data: Optional[str] = None,
location_id: Optional[float] = None,
name: Optional[str] = None,
platform_id: Optional[float] = None,
asset_tag: Optional[str] = None,
rack_id: Optional[float] = None,
custom_fields: Optional[Mapping[str, str]] = None,
comments: Optional[str] = None,
serial: Optional[str] = None,
cluster_id: Optional[float] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None,
virtual_chassis_id: Optional[float] = None,
virtual_chassis_master: Optional[bool] = None,
virtual_chassis_position: Optional[float] = None,
virtual_chassis_priority: Optional[float] = None)
func NewDevice(ctx *Context, name string, args DeviceArgs, opts ...ResourceOption) (*Device, error)
public Device(string name, DeviceArgs args, CustomResourceOptions? opts = null)
public Device(String name, DeviceArgs args)
public Device(String name, DeviceArgs args, CustomResourceOptions options)
type: netbox:Device
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 DeviceArgs
- 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 DeviceArgs
- 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 DeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceArgs
- 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 deviceResource = new Netbox.Device("deviceResource", new()
{
DeviceTypeId = 0,
SiteId = 0,
RoleId = 0,
RackFace = "string",
RackPosition = 0,
Description = "string",
DeviceId = "string",
ConfigTemplateId = 0,
LocalContextData = "string",
LocationId = 0,
Name = "string",
PlatformId = 0,
AssetTag = "string",
RackId = 0,
CustomFields =
{
{ "string", "string" },
},
Comments = "string",
Serial = "string",
ClusterId = 0,
Status = "string",
Tags = new[]
{
"string",
},
TenantId = 0,
VirtualChassisId = 0,
VirtualChassisMaster = false,
VirtualChassisPosition = 0,
VirtualChassisPriority = 0,
});
example, err := netbox.NewDevice(ctx, "deviceResource", &netbox.DeviceArgs{
DeviceTypeId: pulumi.Float64(0),
SiteId: pulumi.Float64(0),
RoleId: pulumi.Float64(0),
RackFace: pulumi.String("string"),
RackPosition: pulumi.Float64(0),
Description: pulumi.String("string"),
DeviceId: pulumi.String("string"),
ConfigTemplateId: pulumi.Float64(0),
LocalContextData: pulumi.String("string"),
LocationId: pulumi.Float64(0),
Name: pulumi.String("string"),
PlatformId: pulumi.Float64(0),
AssetTag: pulumi.String("string"),
RackId: pulumi.Float64(0),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Comments: pulumi.String("string"),
Serial: pulumi.String("string"),
ClusterId: pulumi.Float64(0),
Status: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.Float64(0),
VirtualChassisId: pulumi.Float64(0),
VirtualChassisMaster: pulumi.Bool(false),
VirtualChassisPosition: pulumi.Float64(0),
VirtualChassisPriority: pulumi.Float64(0),
})
var deviceResource = new Device("deviceResource", DeviceArgs.builder()
.deviceTypeId(0)
.siteId(0)
.roleId(0)
.rackFace("string")
.rackPosition(0)
.description("string")
.deviceId("string")
.configTemplateId(0)
.localContextData("string")
.locationId(0)
.name("string")
.platformId(0)
.assetTag("string")
.rackId(0)
.customFields(Map.of("string", "string"))
.comments("string")
.serial("string")
.clusterId(0)
.status("string")
.tags("string")
.tenantId(0)
.virtualChassisId(0)
.virtualChassisMaster(false)
.virtualChassisPosition(0)
.virtualChassisPriority(0)
.build());
device_resource = netbox.Device("deviceResource",
device_type_id=0,
site_id=0,
role_id=0,
rack_face="string",
rack_position=0,
description="string",
device_id="string",
config_template_id=0,
local_context_data="string",
location_id=0,
name="string",
platform_id=0,
asset_tag="string",
rack_id=0,
custom_fields={
"string": "string",
},
comments="string",
serial="string",
cluster_id=0,
status="string",
tags=["string"],
tenant_id=0,
virtual_chassis_id=0,
virtual_chassis_master=False,
virtual_chassis_position=0,
virtual_chassis_priority=0)
const deviceResource = new netbox.Device("deviceResource", {
deviceTypeId: 0,
siteId: 0,
roleId: 0,
rackFace: "string",
rackPosition: 0,
description: "string",
deviceId: "string",
configTemplateId: 0,
localContextData: "string",
locationId: 0,
name: "string",
platformId: 0,
assetTag: "string",
rackId: 0,
customFields: {
string: "string",
},
comments: "string",
serial: "string",
clusterId: 0,
status: "string",
tags: ["string"],
tenantId: 0,
virtualChassisId: 0,
virtualChassisMaster: false,
virtualChassisPosition: 0,
virtualChassisPriority: 0,
});
type: netbox:Device
properties:
assetTag: string
clusterId: 0
comments: string
configTemplateId: 0
customFields:
string: string
description: string
deviceId: string
deviceTypeId: 0
localContextData: string
locationId: 0
name: string
platformId: 0
rackFace: string
rackId: 0
rackPosition: 0
roleId: 0
serial: string
siteId: 0
status: string
tags:
- string
tenantId: 0
virtualChassisId: 0
virtualChassisMaster: false
virtualChassisPosition: 0
virtualChassisPriority: 0
Device 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 Device resource accepts the following input properties:
- Device
Type doubleId - Role
Id double - Site
Id double - Asset
Tag string - Cluster
Id double - Comments string
- Config
Template doubleId - Custom
Fields Dictionary<string, string> - Description string
- Device
Id string - The ID of this resource.
- Local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - Location
Id double - Name string
- Platform
Id double - Rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - Rack
Id double - Rack
Position double - Serial string
- Status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<string>
- Tenant
Id double - Virtual
Chassis doubleId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis boolMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis doublePosition - Virtual
Chassis doublePriority
- Device
Type float64Id - Role
Id float64 - Site
Id float64 - Asset
Tag string - Cluster
Id float64 - Comments string
- Config
Template float64Id - Custom
Fields map[string]string - Description string
- Device
Id string - The ID of this resource.
- Local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - Location
Id float64 - Name string
- Platform
Id float64 - Rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - Rack
Id float64 - Rack
Position float64 - Serial string
- Status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - []string
- Tenant
Id float64 - Virtual
Chassis float64Id - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis boolMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis float64Position - Virtual
Chassis float64Priority
- device
Type DoubleId - role
Id Double - site
Id Double - asset
Tag String - cluster
Id Double - comments String
- config
Template DoubleId - custom
Fields Map<String,String> - description String
- device
Id String - The ID of this resource.
- local
Context StringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id Double - name String
- platform
Id Double - rack
Face String - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id Double - rack
Position Double - serial String
- status String
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<String>
- tenant
Id Double - virtual
Chassis DoubleId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis BooleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis DoublePosition - virtual
Chassis DoublePriority
- device
Type numberId - role
Id number - site
Id number - asset
Tag string - cluster
Id number - comments string
- config
Template numberId - custom
Fields {[key: string]: string} - description string
- device
Id string - The ID of this resource.
- local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id number - name string
- platform
Id number - rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id number - rack
Position number - serial string
- status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - string[]
- tenant
Id number - virtual
Chassis numberId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis booleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis numberPosition - virtual
Chassis numberPriority
- device_
type_ floatid - role_
id float - site_
id float - asset_
tag str - cluster_
id float - comments str
- config_
template_ floatid - custom_
fields Mapping[str, str] - description str
- device_
id str - The ID of this resource.
- local_
context_ strdata - This is best managed through the use of
jsonencode
and a map of settings. - location_
id float - name str
- platform_
id float - rack_
face str - Valid values are
front
andrear
. Required whenrack_position
is set. - rack_
id float - rack_
position float - serial str
- status str
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - Sequence[str]
- tenant_
id float - virtual_
chassis_ floatid - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual_
chassis_ boolmaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual_
chassis_ floatposition - virtual_
chassis_ floatpriority
- device
Type NumberId - role
Id Number - site
Id Number - asset
Tag String - cluster
Id Number - comments String
- config
Template NumberId - custom
Fields Map<String> - description String
- device
Id String - The ID of this resource.
- local
Context StringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id Number - name String
- platform
Id Number - rack
Face String - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id Number - rack
Position Number - serial String
- status String
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<String>
- tenant
Id Number - virtual
Chassis NumberId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis BooleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis NumberPosition - virtual
Chassis NumberPriority
Outputs
All input properties are implicitly available as output properties. Additionally, the Device resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Ipv4 double - Primary
Ipv6 double
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Ipv4 float64 - Primary
Ipv6 float64
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Ipv4 Double - primary
Ipv6 Double
- id string
- The provider-assigned unique ID for this managed resource.
- primary
Ipv4 number - primary
Ipv6 number
- id str
- The provider-assigned unique ID for this managed resource.
- primary_
ipv4 float - primary_
ipv6 float
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Ipv4 Number - primary
Ipv6 Number
Look up Existing Device Resource
Get an existing Device 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?: DeviceState, opts?: CustomResourceOptions): Device
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asset_tag: Optional[str] = None,
cluster_id: Optional[float] = None,
comments: Optional[str] = None,
config_template_id: Optional[float] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
device_id: Optional[str] = None,
device_type_id: Optional[float] = None,
local_context_data: Optional[str] = None,
location_id: Optional[float] = None,
name: Optional[str] = None,
platform_id: Optional[float] = None,
primary_ipv4: Optional[float] = None,
primary_ipv6: Optional[float] = None,
rack_face: Optional[str] = None,
rack_id: Optional[float] = None,
rack_position: Optional[float] = None,
role_id: Optional[float] = None,
serial: Optional[str] = None,
site_id: Optional[float] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None,
virtual_chassis_id: Optional[float] = None,
virtual_chassis_master: Optional[bool] = None,
virtual_chassis_position: Optional[float] = None,
virtual_chassis_priority: Optional[float] = None) -> Device
func GetDevice(ctx *Context, name string, id IDInput, state *DeviceState, opts ...ResourceOption) (*Device, error)
public static Device Get(string name, Input<string> id, DeviceState? state, CustomResourceOptions? opts = null)
public static Device get(String name, Output<String> id, DeviceState state, CustomResourceOptions options)
resources: _: type: netbox:Device 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.
- Asset
Tag string - Cluster
Id double - Comments string
- Config
Template doubleId - Custom
Fields Dictionary<string, string> - Description string
- Device
Id string - The ID of this resource.
- Device
Type doubleId - Local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - Location
Id double - Name string
- Platform
Id double - Primary
Ipv4 double - Primary
Ipv6 double - Rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - Rack
Id double - Rack
Position double - Role
Id double - Serial string
- Site
Id double - Status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<string>
- Tenant
Id double - Virtual
Chassis doubleId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis boolMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis doublePosition - Virtual
Chassis doublePriority
- Asset
Tag string - Cluster
Id float64 - Comments string
- Config
Template float64Id - Custom
Fields map[string]string - Description string
- Device
Id string - The ID of this resource.
- Device
Type float64Id - Local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - Location
Id float64 - Name string
- Platform
Id float64 - Primary
Ipv4 float64 - Primary
Ipv6 float64 - Rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - Rack
Id float64 - Rack
Position float64 - Role
Id float64 - Serial string
- Site
Id float64 - Status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - []string
- Tenant
Id float64 - Virtual
Chassis float64Id - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis boolMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - Virtual
Chassis float64Position - Virtual
Chassis float64Priority
- asset
Tag String - cluster
Id Double - comments String
- config
Template DoubleId - custom
Fields Map<String,String> - description String
- device
Id String - The ID of this resource.
- device
Type DoubleId - local
Context StringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id Double - name String
- platform
Id Double - primary
Ipv4 Double - primary
Ipv6 Double - rack
Face String - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id Double - rack
Position Double - role
Id Double - serial String
- site
Id Double - status String
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<String>
- tenant
Id Double - virtual
Chassis DoubleId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis BooleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis DoublePosition - virtual
Chassis DoublePriority
- asset
Tag string - cluster
Id number - comments string
- config
Template numberId - custom
Fields {[key: string]: string} - description string
- device
Id string - The ID of this resource.
- device
Type numberId - local
Context stringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id number - name string
- platform
Id number - primary
Ipv4 number - primary
Ipv6 number - rack
Face string - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id number - rack
Position number - role
Id number - serial string
- site
Id number - status string
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - string[]
- tenant
Id number - virtual
Chassis numberId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis booleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis numberPosition - virtual
Chassis numberPriority
- asset_
tag str - cluster_
id float - comments str
- config_
template_ floatid - custom_
fields Mapping[str, str] - description str
- device_
id str - The ID of this resource.
- device_
type_ floatid - local_
context_ strdata - This is best managed through the use of
jsonencode
and a map of settings. - location_
id float - name str
- platform_
id float - primary_
ipv4 float - primary_
ipv6 float - rack_
face str - Valid values are
front
andrear
. Required whenrack_position
is set. - rack_
id float - rack_
position float - role_
id float - serial str
- site_
id float - status str
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - Sequence[str]
- tenant_
id float - virtual_
chassis_ floatid - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual_
chassis_ boolmaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual_
chassis_ floatposition - virtual_
chassis_ floatpriority
- asset
Tag String - cluster
Id Number - comments String
- config
Template NumberId - custom
Fields Map<String> - description String
- device
Id String - The ID of this resource.
- device
Type NumberId - local
Context StringData - This is best managed through the use of
jsonencode
and a map of settings. - location
Id Number - name String
- platform
Id Number - primary
Ipv4 Number - primary
Ipv6 Number - rack
Face String - Valid values are
front
andrear
. Required whenrack_position
is set. - rack
Id Number - rack
Position Number - role
Id Number - serial String
- site
Id Number - status String
- Valid values are
offline
,active
,planned
,staged
,failed
andinventory
. Defaults toactive
. - List<String>
- tenant
Id Number - virtual
Chassis NumberId - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis BooleanMaster - Required when
virtual_chassis_master
andvirtual_chassis_id
is set. - virtual
Chassis NumberPosition - virtual
Chassis NumberPriority
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.