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

    A NetBox virtual circuit type (circuits.virtualcircuittype).

    From the official documentation:

    Like physical circuits, virtual circuits are classified by functional type. These types are completely customizable, and can help categorize circuits by function or technology.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.VirtualCircuitType("test", {
        name: "test-virtual-circuit-type",
        slug: "test-virtual-circuit-type",
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.VirtualCircuitType("test",
        name="test-virtual-circuit-type",
        slug="test-virtual-circuit-type",
        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 {
    		_, err := netbox.NewVirtualCircuitType(ctx, "test", &netbox.VirtualCircuitTypeArgs{
    			Name:        pulumi.String("test-virtual-circuit-type"),
    			Slug:        pulumi.String("test-virtual-circuit-type"),
    			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.VirtualCircuitType("test", new()
        {
            Name = "test-virtual-circuit-type",
            Slug = "test-virtual-circuit-type",
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.VirtualCircuitType;
    import com.pulumi.netbox.VirtualCircuitTypeArgs;
    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 VirtualCircuitType("test", VirtualCircuitTypeArgs.builder()
                .name("test-virtual-circuit-type")
                .slug("test-virtual-circuit-type")
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:VirtualCircuitType
        properties:
          name: test-virtual-circuit-type
          slug: test-virtual-circuit-type
          description: test-description
    
    Example coming soon!
    

    Create VirtualCircuitType Resource

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

    Constructor syntax

    new VirtualCircuitType(name: string, args?: VirtualCircuitTypeArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualCircuitType(resource_name: str,
                           args: Optional[VirtualCircuitTypeArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualCircuitType(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           color_hex: Optional[str] = None,
                           comments: Optional[str] = None,
                           custom_fields: Optional[Mapping[str, str]] = None,
                           description: Optional[str] = None,
                           name: Optional[str] = None,
                           owner_id: Optional[float] = None,
                           slug: Optional[str] = None,
                           tags: Optional[Sequence[str]] = None)
    func NewVirtualCircuitType(ctx *Context, name string, args *VirtualCircuitTypeArgs, opts ...ResourceOption) (*VirtualCircuitType, error)
    public VirtualCircuitType(string name, VirtualCircuitTypeArgs? args = null, CustomResourceOptions? opts = null)
    public VirtualCircuitType(String name, VirtualCircuitTypeArgs args)
    public VirtualCircuitType(String name, VirtualCircuitTypeArgs args, CustomResourceOptions options)
    
    type: netbox:VirtualCircuitType
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_virtual_circuit_type" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VirtualCircuitTypeArgs
    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 VirtualCircuitTypeArgs
    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 VirtualCircuitTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualCircuitTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualCircuitTypeArgs
    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 virtualCircuitTypeResource = new Netbox.VirtualCircuitType("virtualCircuitTypeResource", new()
    {
        ColorHex = "string",
        Comments = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        Description = "string",
        Name = "string",
        OwnerId = 0.0,
        Slug = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := netbox.NewVirtualCircuitType(ctx, "virtualCircuitTypeResource", &netbox.VirtualCircuitTypeArgs{
    	ColorHex: pulumi.String("string"),
    	Comments: pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	OwnerId:     pulumi.Float64(0),
    	Slug:        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "netbox_virtual_circuit_type" "virtualCircuitTypeResource" {
      lifecycle {
        create_before_destroy = true
      }
      color_hex = "string"
      comments  = "string"
      custom_fields = {
        "string" = "string"
      }
      description = "string"
      name        = "string"
      owner_id    = 0
      slug        = "string"
      tags        = ["string"]
    }
    
    var virtualCircuitTypeResource = new VirtualCircuitType("virtualCircuitTypeResource", VirtualCircuitTypeArgs.builder()
        .colorHex("string")
        .comments("string")
        .customFields(Map.of("string", "string"))
        .description("string")
        .name("string")
        .ownerId(0.0)
        .slug("string")
        .tags("string")
        .build());
    
    virtual_circuit_type_resource = netbox.VirtualCircuitType("virtualCircuitTypeResource",
        color_hex="string",
        comments="string",
        custom_fields={
            "string": "string",
        },
        description="string",
        name="string",
        owner_id=float(0),
        slug="string",
        tags=["string"])
    
    const virtualCircuitTypeResource = new netbox.VirtualCircuitType("virtualCircuitTypeResource", {
        colorHex: "string",
        comments: "string",
        customFields: {
            string: "string",
        },
        description: "string",
        name: "string",
        ownerId: 0,
        slug: "string",
        tags: ["string"],
    });
    
    type: netbox:VirtualCircuitType
    properties:
        colorHex: string
        comments: string
        customFields:
            string: string
        description: string
        name: string
        ownerId: 0
        slug: string
        tags:
            - string
    

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

    ColorHex string
    RGB color in hex (e.g. ff0000).
    Comments string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    ColorHex string
    RGB color in hex (e.g. ff0000).
    Comments string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    color_hex string
    RGB color in hex (e.g. ff0000).
    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.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    colorHex String
    RGB color in hex (e.g. ff0000).
    comments String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    colorHex string
    RGB color in hex (e.g. ff0000).
    comments string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    color_hex str
    RGB color in hex (e.g. ff0000).
    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.
    slug str
    URL-friendly unique shorthand; derived from name when not set.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    colorHex String
    RGB color in hex (e.g. ff0000).
    comments String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).

    Outputs

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

    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualCircuitCount double
    Number of virtual circuits of the type.
    VirtualCircuitTypeId double
    NetBox id.
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualCircuitCount float64
    Number of virtual circuits of the type.
    VirtualCircuitTypeId float64
    NetBox id.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated string
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtual_circuit_count number
    Number of virtual circuits of the type.
    virtual_circuit_type_id number
    NetBox id.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualCircuitCount Double
    Number of virtual circuits of the type.
    virtualCircuitTypeId Double
    NetBox id.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtualCircuitCount number
    Number of virtual circuits of the type.
    virtualCircuitTypeId number
    NetBox id.
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    virtual_circuit_count float
    Number of virtual circuits of the type.
    virtual_circuit_type_id float
    NetBox id.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualCircuitCount Number
    Number of virtual circuits of the type.
    virtualCircuitTypeId Number
    NetBox id.

    Look up Existing VirtualCircuitType Resource

    Get an existing VirtualCircuitType 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?: VirtualCircuitTypeState, opts?: CustomResourceOptions): VirtualCircuitType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            color_hex: Optional[str] = None,
            comments: Optional[str] = None,
            created: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            last_updated: Optional[str] = None,
            name: Optional[str] = None,
            owner_id: Optional[float] = None,
            slug: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            url: Optional[str] = None,
            virtual_circuit_count: Optional[float] = None,
            virtual_circuit_type_id: Optional[float] = None) -> VirtualCircuitType
    func GetVirtualCircuitType(ctx *Context, name string, id IDInput, state *VirtualCircuitTypeState, opts ...ResourceOption) (*VirtualCircuitType, error)
    public static VirtualCircuitType Get(string name, Input<string> id, VirtualCircuitTypeState? state, CustomResourceOptions? opts = null)
    public static VirtualCircuitType get(String name, Output<String> id, VirtualCircuitTypeState state, CustomResourceOptions options)
    resources:  _:    type: netbox:VirtualCircuitType    get:      id: ${id}
    import {
      to = netbox_virtual_circuit_type.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ColorHex string
    RGB color in hex (e.g. ff0000).
    Comments string
    Created string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualCircuitCount double
    Number of virtual circuits of the type.
    VirtualCircuitTypeId double
    NetBox id.
    ColorHex string
    RGB color in hex (e.g. ff0000).
    Comments string
    Created string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualCircuitCount float64
    Number of virtual circuits of the type.
    VirtualCircuitTypeId float64
    NetBox id.
    color_hex string
    RGB color in hex (e.g. ff0000).
    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
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtual_circuit_count number
    Number of virtual circuits of the type.
    virtual_circuit_type_id number
    NetBox id.
    colorHex String
    RGB color in hex (e.g. ff0000).
    comments String
    created String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualCircuitCount Double
    Number of virtual circuits of the type.
    virtualCircuitTypeId Double
    NetBox id.
    colorHex string
    RGB color in hex (e.g. ff0000).
    comments string
    created string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtualCircuitCount number
    Number of virtual circuits of the type.
    virtualCircuitTypeId number
    NetBox id.
    color_hex str
    RGB color in hex (e.g. ff0000).
    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
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    slug str
    URL-friendly unique shorthand; derived from name when not set.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    virtual_circuit_count float
    Number of virtual circuits of the type.
    virtual_circuit_type_id float
    NetBox id.
    colorHex String
    RGB color in hex (e.g. ff0000).
    comments String
    created String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualCircuitCount Number
    Number of virtual circuits of the type.
    virtualCircuitTypeId Number
    NetBox id.

    Import

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

    terraform

    import {

    to = netbox_virtual_circuit_type.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/virtualCircuitType:VirtualCircuitType test 123
    

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

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial