Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
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
published on Wednesday, Nov 4, 2026 by e-breuninger
A MAC address (dcim.macaddress), optionally assigned to a device or VM interface.
From the official documentation:
A MAC address object in NetBox comprises a single Ethernet link layer address, and represents a MAC address as reported by or assigned to a network interface. MAC addresses can be assigned to device and virtual machine interfaces.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getMacAddress({
id: 123,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_mac_address(id=123)
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 {
_, err := netbox.LookupMacAddress(ctx, &netbox.LookupMacAddressArgs{
Id: pulumi.Float64Ref(123),
}, nil)
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 = Netbox.GetMacAddress.Invoke(new()
{
Id = 123,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.NetboxFunctions;
import com.pulumi.netbox.inputs.GetMacAddressArgs;
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) {
final var test = NetboxFunctions.getMacAddress(GetMacAddressArgs.builder()
.id(123)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getMacAddress
arguments:
id: 123
Example coming soon!
Using getMacAddress
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMacAddress(args: GetMacAddressArgs, opts?: InvokeOptions): Promise<GetMacAddressResult>
function getMacAddressOutput(args: GetMacAddressOutputArgs, opts?: InvokeOutputOptions): Output<GetMacAddressResult>def get_mac_address(custom_field_filters: Optional[Mapping[str, str]] = None,
id: Optional[float] = None,
owner_id: Optional[float] = None,
tag_slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMacAddressResult
def get_mac_address_output(custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
id: pulumi.Input[Optional[float]] = None,
owner_id: pulumi.Input[Optional[float]] = None,
tag_slug: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMacAddressResult]func LookupMacAddress(ctx *Context, args *LookupMacAddressArgs, opts ...InvokeOption) (*LookupMacAddressResult, error)
func LookupMacAddressOutput(ctx *Context, args *LookupMacAddressOutputArgs, opts ...InvokeOption) LookupMacAddressResultOutput> Note: This function is named LookupMacAddress in the Go SDK.
public static class GetMacAddress
{
public static Task<GetMacAddressResult> InvokeAsync(GetMacAddressArgs args, InvokeOptions? opts = null)
public static Output<GetMacAddressResult> Invoke(GetMacAddressInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMacAddressResult> Invoke(GetMacAddressInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMacAddressResult> getMacAddress(GetMacAddressArgs args, InvokeOptions options)
public static Output<GetMacAddressResult> getMacAddress(GetMacAddressArgs args, InvokeOptions options)
public static Output<GetMacAddressResult> getMacAddress(GetMacAddressArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getMacAddress:getMacAddress
arguments:
# arguments dictionarydata "netbox_get_mac_address" "name" {
# arguments
}The following arguments are supported:
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Id double
- NetBox id.
- Owner
Id double - Id of the owner the object is assigned to.
- string
- Slug of a tag the object carries.
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Id float64
- NetBox id.
- Owner
Id float64 - Id of the owner the object is assigned to.
- string
- Slug of a tag the object carries.
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id number
- NetBox id.
- owner_
id number - Id of the owner the object is assigned to.
- tag_
slug string - Slug of a tag the object carries.
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id Double
- NetBox id.
- owner
Id Double - Id of the owner the object is assigned to.
- String
- Slug of a tag the object carries.
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id number
- NetBox id.
- owner
Id number - Id of the owner the object is assigned to.
- string
- Slug of a tag the object carries.
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id float
- NetBox id.
- owner_
id float - Id of the owner the object is assigned to.
- tag_
slug str - Slug of a tag the object carries.
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id Number
- NetBox id.
- owner
Id Number - Id of the owner the object is assigned to.
- String
- Slug of a tag the object carries.
getMacAddress Result
The following output properties are available:
- Assigned
Object doubleId - Id of the interface the address is assigned to (see assignedobjecttype).
- Assigned
Object stringType - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- Device
Interface doubleId - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- Id double
- NetBox id.
- Last
Updated string - Mac
Address string - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- Owner
Id double - Id of the owner the object is assigned to.
- 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.
- Url string
- Virtual
Machine doubleInterface Id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- Assigned
Object float64Id - Id of the interface the address is assigned to (see assignedobjecttype).
- Assigned
Object stringType - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- Device
Interface float64Id - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- Id float64
- NetBox id.
- Last
Updated string - Mac
Address string - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- Owner
Id float64 - Id of the owner the object is assigned to.
- []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.
- Url string
- Virtual
Machine float64Interface Id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- assigned_
object_ numberid - Id of the interface the address is assigned to (see assignedobjecttype).
- assigned_
object_ stringtype - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- device_
interface_ numberid - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- id number
- NetBox id.
- last_
updated string - mac_
address string - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- owner_
id number - Id of the owner the object is assigned to.
- 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.
- url string
- virtual_
machine_ numberinterface_ id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug string - Slug of a tag the object carries.
- assigned
Object DoubleId - Id of the interface the address is assigned to (see assignedobjecttype).
- assigned
Object StringType - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- device
Interface DoubleId - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- id Double
- NetBox id.
- last
Updated String - mac
Address String - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- owner
Id Double - Id of the owner the object is assigned to.
- 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.
- url String
- virtual
Machine DoubleInterface Id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
- assigned
Object numberId - Id of the interface the address is assigned to (see assignedobjecttype).
- assigned
Object stringType - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- device
Interface numberId - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- id number
- NetBox id.
- last
Updated string - mac
Address string - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- owner
Id number - Id of the owner the object is assigned to.
- 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.
- url string
- virtual
Machine numberInterface Id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- assigned_
object_ floatid - Id of the interface the address is assigned to (see assignedobjecttype).
- assigned_
object_ strtype - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- device_
interface_ floatid - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- id float
- NetBox id.
- last_
updated str - mac_
address str - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- owner_
id float - Id of the owner the object is assigned to.
- 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.
- url str
- virtual_
machine_ floatinterface_ id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug str - Slug of a tag the object carries.
- assigned
Object NumberId - Id of the interface the address is assigned to (see assignedobjecttype).
- assigned
Object StringType - Content type of the interface the address is assigned to. Derived from deviceinterfaceid or virtualmachineinterface_id when one of those is set. One of: dcim.interface, virtualization.vminterface.
- 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
- device
Interface NumberId - Id of the device interface the address is assigned to (assignedobjecttype dcim.interface). Conflicts with virtualmachineinterfaceid and with setting the assignedobject_* pair directly.
- id Number
- NetBox id.
- last
Updated String - mac
Address String - The MAC address (EUI-48) in colon, dash or dot notation, any case; the configured spelling is kept in state (NetBox stores it colon-separated and uppercased).
- owner
Id Number - Id of the owner the object is assigned to.
- 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.
- url String
- virtual
Machine NumberInterface Id - Id of the virtual machine interface the address is assigned to (assignedobjecttype virtualization.vminterface). Conflicts with deviceinterfaceid and with setting the assigned*object** pair directly.
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger