1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. VirtualCircuit
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 (circuits.virtualcircuit): a layer 2 or 3 service delivered over a provider network.

    From the official documentation:

    A virtual circuit can connect two or more interfaces atop a set of decoupled physical connections. For example, it’s very common to form a virtual connection between two virtual interfaces, each of which is bound to a physical interface on its respective device and physically connected to a provider network via an independent physical circuit.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.CircuitProvider("test", {name: "test-circuit-provider"});
    const testCircuitProviderNetwork = new netbox.CircuitProviderNetwork("test", {
        name: "test-circuit-provider-network",
        circuitProviderId: test.circuitProviderId,
    });
    const testCircuitProviderAccount = new netbox.CircuitProviderAccount("test", {
        account: "test-account",
        circuitProviderId: test.circuitProviderId,
    });
    const testVirtualCircuitType = new netbox.VirtualCircuitType("test", {name: "test-virtual-circuit-type"});
    const testTenant = new netbox.Tenant("test", {name: "test-tenant"});
    const testVirtualCircuit = new netbox.VirtualCircuit("test", {
        cid: "test-cid",
        circuitProviderNetworkId: testCircuitProviderNetwork.circuitProviderNetworkId,
        virtualCircuitTypeId: testVirtualCircuitType.virtualCircuitTypeId,
        circuitProviderAccountId: testCircuitProviderAccount.circuitProviderAccountId,
        tenantId: testTenant.tenantId,
        status: "active",
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.CircuitProvider("test", name="test-circuit-provider")
    test_circuit_provider_network = netbox.CircuitProviderNetwork("test",
        name="test-circuit-provider-network",
        circuit_provider_id=test.circuit_provider_id)
    test_circuit_provider_account = netbox.CircuitProviderAccount("test",
        account="test-account",
        circuit_provider_id=test.circuit_provider_id)
    test_virtual_circuit_type = netbox.VirtualCircuitType("test", name="test-virtual-circuit-type")
    test_tenant = netbox.Tenant("test", name="test-tenant")
    test_virtual_circuit = netbox.VirtualCircuit("test",
        cid="test-cid",
        circuit_provider_network_id=test_circuit_provider_network.circuit_provider_network_id,
        virtual_circuit_type_id=test_virtual_circuit_type.virtual_circuit_type_id,
        circuit_provider_account_id=test_circuit_provider_account.circuit_provider_account_id,
        tenant_id=test_tenant.tenant_id,
        status="active",
        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.NewCircuitProvider(ctx, "test", &netbox.CircuitProviderArgs{
    			Name: pulumi.String("test-circuit-provider"),
    		})
    		if err != nil {
    			return err
    		}
    		testCircuitProviderNetwork, err := netbox.NewCircuitProviderNetwork(ctx, "test", &netbox.CircuitProviderNetworkArgs{
    			Name:              pulumi.String("test-circuit-provider-network"),
    			CircuitProviderId: test.CircuitProviderId,
    		})
    		if err != nil {
    			return err
    		}
    		testCircuitProviderAccount, err := netbox.NewCircuitProviderAccount(ctx, "test", &netbox.CircuitProviderAccountArgs{
    			Account:           pulumi.String("test-account"),
    			CircuitProviderId: test.CircuitProviderId,
    		})
    		if err != nil {
    			return err
    		}
    		testVirtualCircuitType, err := netbox.NewVirtualCircuitType(ctx, "test", &netbox.VirtualCircuitTypeArgs{
    			Name: pulumi.String("test-virtual-circuit-type"),
    		})
    		if err != nil {
    			return err
    		}
    		testTenant, err := netbox.NewTenant(ctx, "test", &netbox.TenantArgs{
    			Name: pulumi.String("test-tenant"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewVirtualCircuit(ctx, "test", &netbox.VirtualCircuitArgs{
    			Cid:                      pulumi.String("test-cid"),
    			CircuitProviderNetworkId: testCircuitProviderNetwork.CircuitProviderNetworkId,
    			VirtualCircuitTypeId:     testVirtualCircuitType.VirtualCircuitTypeId,
    			CircuitProviderAccountId: testCircuitProviderAccount.CircuitProviderAccountId,
    			TenantId:                 testTenant.TenantId,
    			Status:                   pulumi.String("active"),
    			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.CircuitProvider("test", new()
        {
            Name = "test-circuit-provider",
        });
    
        var testCircuitProviderNetwork = new Netbox.CircuitProviderNetwork("test", new()
        {
            Name = "test-circuit-provider-network",
            CircuitProviderId = test.CircuitProviderId,
        });
    
        var testCircuitProviderAccount = new Netbox.CircuitProviderAccount("test", new()
        {
            Account = "test-account",
            CircuitProviderId = test.CircuitProviderId,
        });
    
        var testVirtualCircuitType = new Netbox.VirtualCircuitType("test", new()
        {
            Name = "test-virtual-circuit-type",
        });
    
        var testTenant = new Netbox.Tenant("test", new()
        {
            Name = "test-tenant",
        });
    
        var testVirtualCircuit = new Netbox.VirtualCircuit("test", new()
        {
            Cid = "test-cid",
            CircuitProviderNetworkId = testCircuitProviderNetwork.CircuitProviderNetworkId,
            VirtualCircuitTypeId = testVirtualCircuitType.VirtualCircuitTypeId,
            CircuitProviderAccountId = testCircuitProviderAccount.CircuitProviderAccountId,
            TenantId = testTenant.TenantId,
            Status = "active",
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.CircuitProvider;
    import com.pulumi.netbox.CircuitProviderArgs;
    import com.pulumi.netbox.CircuitProviderNetwork;
    import com.pulumi.netbox.CircuitProviderNetworkArgs;
    import com.pulumi.netbox.CircuitProviderAccount;
    import com.pulumi.netbox.CircuitProviderAccountArgs;
    import com.pulumi.netbox.VirtualCircuitType;
    import com.pulumi.netbox.VirtualCircuitTypeArgs;
    import com.pulumi.netbox.Tenant;
    import com.pulumi.netbox.TenantArgs;
    import com.pulumi.netbox.VirtualCircuit;
    import com.pulumi.netbox.VirtualCircuitArgs;
    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 CircuitProvider("test", CircuitProviderArgs.builder()
                .name("test-circuit-provider")
                .build());
    
            var testCircuitProviderNetwork = new CircuitProviderNetwork("testCircuitProviderNetwork", CircuitProviderNetworkArgs.builder()
                .name("test-circuit-provider-network")
                .circuitProviderId(test.circuitProviderId())
                .build());
    
            var testCircuitProviderAccount = new CircuitProviderAccount("testCircuitProviderAccount", CircuitProviderAccountArgs.builder()
                .account("test-account")
                .circuitProviderId(test.circuitProviderId())
                .build());
    
            var testVirtualCircuitType = new VirtualCircuitType("testVirtualCircuitType", VirtualCircuitTypeArgs.builder()
                .name("test-virtual-circuit-type")
                .build());
    
            var testTenant = new Tenant("testTenant", TenantArgs.builder()
                .name("test-tenant")
                .build());
    
            var testVirtualCircuit = new VirtualCircuit("testVirtualCircuit", VirtualCircuitArgs.builder()
                .cid("test-cid")
                .circuitProviderNetworkId(testCircuitProviderNetwork.circuitProviderNetworkId())
                .virtualCircuitTypeId(testVirtualCircuitType.virtualCircuitTypeId())
                .circuitProviderAccountId(testCircuitProviderAccount.circuitProviderAccountId())
                .tenantId(testTenant.tenantId())
                .status("active")
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:CircuitProvider
        properties:
          name: test-circuit-provider
      testCircuitProviderNetwork:
        type: netbox:CircuitProviderNetwork
        name: test
        properties:
          name: test-circuit-provider-network
          circuitProviderId: ${test.circuitProviderId}
      testCircuitProviderAccount:
        type: netbox:CircuitProviderAccount
        name: test
        properties:
          account: test-account
          circuitProviderId: ${test.circuitProviderId}
      testVirtualCircuitType:
        type: netbox:VirtualCircuitType
        name: test
        properties:
          name: test-virtual-circuit-type
      testTenant:
        type: netbox:Tenant
        name: test
        properties:
          name: test-tenant
      testVirtualCircuit:
        type: netbox:VirtualCircuit
        name: test
        properties:
          cid: test-cid
          circuitProviderNetworkId: ${testCircuitProviderNetwork.circuitProviderNetworkId}
          virtualCircuitTypeId: ${testVirtualCircuitType.virtualCircuitTypeId}
          circuitProviderAccountId: ${testCircuitProviderAccount.circuitProviderAccountId}
          tenantId: ${testTenant.tenantId}
          status: active
          description: test-description
    
    Example coming soon!
    

    Create VirtualCircuit Resource

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

    Constructor syntax

    new VirtualCircuit(name: string, args: VirtualCircuitArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualCircuit(resource_name: str,
                       args: VirtualCircuitArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualCircuit(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cid: Optional[str] = None,
                       circuit_provider_network_id: Optional[float] = None,
                       virtual_circuit_type_id: Optional[float] = None,
                       circuit_provider_account_id: Optional[float] = None,
                       comments: Optional[str] = None,
                       custom_fields: Optional[Mapping[str, str]] = None,
                       description: Optional[str] = None,
                       owner_id: Optional[float] = None,
                       status: Optional[str] = None,
                       tags: Optional[Sequence[str]] = None,
                       tenant_id: Optional[float] = None)
    func NewVirtualCircuit(ctx *Context, name string, args VirtualCircuitArgs, opts ...ResourceOption) (*VirtualCircuit, error)
    public VirtualCircuit(string name, VirtualCircuitArgs args, CustomResourceOptions? opts = null)
    public VirtualCircuit(String name, VirtualCircuitArgs args)
    public VirtualCircuit(String name, VirtualCircuitArgs args, CustomResourceOptions options)
    
    type: netbox:VirtualCircuit
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_virtual_circuit" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VirtualCircuitArgs
    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 VirtualCircuitArgs
    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 VirtualCircuitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualCircuitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualCircuitArgs
    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 virtualCircuitResource = new Netbox.VirtualCircuit("virtualCircuitResource", new()
    {
        Cid = "string",
        CircuitProviderNetworkId = 0.0,
        VirtualCircuitTypeId = 0.0,
        CircuitProviderAccountId = 0.0,
        Comments = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        Description = "string",
        OwnerId = 0.0,
        Status = "string",
        Tags = new[]
        {
            "string",
        },
        TenantId = 0.0,
    });
    
    example, err := netbox.NewVirtualCircuit(ctx, "virtualCircuitResource", &netbox.VirtualCircuitArgs{
    	Cid:                      pulumi.String("string"),
    	CircuitProviderNetworkId: pulumi.Float64(0),
    	VirtualCircuitTypeId:     pulumi.Float64(0),
    	CircuitProviderAccountId: pulumi.Float64(0),
    	Comments:                 pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	OwnerId:     pulumi.Float64(0),
    	Status:      pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId: pulumi.Float64(0),
    })
    
    resource "netbox_virtual_circuit" "virtualCircuitResource" {
      lifecycle {
        create_before_destroy = true
      }
      cid                         = "string"
      circuit_provider_network_id = 0
      virtual_circuit_type_id     = 0
      circuit_provider_account_id = 0
      comments                    = "string"
      custom_fields = {
        "string" = "string"
      }
      description = "string"
      owner_id    = 0
      status      = "string"
      tags        = ["string"]
      tenant_id   = 0
    }
    
    var virtualCircuitResource = new VirtualCircuit("virtualCircuitResource", VirtualCircuitArgs.builder()
        .cid("string")
        .circuitProviderNetworkId(0.0)
        .virtualCircuitTypeId(0.0)
        .circuitProviderAccountId(0.0)
        .comments("string")
        .customFields(Map.of("string", "string"))
        .description("string")
        .ownerId(0.0)
        .status("string")
        .tags("string")
        .tenantId(0.0)
        .build());
    
    virtual_circuit_resource = netbox.VirtualCircuit("virtualCircuitResource",
        cid="string",
        circuit_provider_network_id=float(0),
        virtual_circuit_type_id=float(0),
        circuit_provider_account_id=float(0),
        comments="string",
        custom_fields={
            "string": "string",
        },
        description="string",
        owner_id=float(0),
        status="string",
        tags=["string"],
        tenant_id=float(0))
    
    const virtualCircuitResource = new netbox.VirtualCircuit("virtualCircuitResource", {
        cid: "string",
        circuitProviderNetworkId: 0,
        virtualCircuitTypeId: 0,
        circuitProviderAccountId: 0,
        comments: "string",
        customFields: {
            string: "string",
        },
        description: "string",
        ownerId: 0,
        status: "string",
        tags: ["string"],
        tenantId: 0,
    });
    
    type: netbox:VirtualCircuit
    properties:
        cid: string
        circuitProviderAccountId: 0
        circuitProviderNetworkId: 0
        comments: string
        customFields:
            string: string
        description: string
        ownerId: 0
        status: string
        tags:
            - string
        tenantId: 0
        virtualCircuitTypeId: 0
    

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

    Cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    CircuitProviderNetworkId double
    Id of the provider network the virtual circuit is delivered over.
    VirtualCircuitTypeId double
    Id of the virtual circuit type.
    CircuitProviderAccountId double
    Id of the provider account the virtual circuit is billed to.
    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
    OwnerId double
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId double
    Id of the tenant the virtual circuit belongs to.
    Cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    CircuitProviderNetworkId float64
    Id of the provider network the virtual circuit is delivered over.
    VirtualCircuitTypeId float64
    Id of the virtual circuit type.
    CircuitProviderAccountId float64
    Id of the provider account the virtual circuit is billed to.
    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
    OwnerId float64
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId float64
    Id of the tenant the virtual circuit belongs to.
    cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuit_provider_network_id number
    Id of the provider network the virtual circuit is delivered over.
    virtual_circuit_type_id number
    Id of the virtual circuit type.
    circuit_provider_account_id number
    Id of the provider account the virtual circuit is billed to.
    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
    owner_id number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tags 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 the virtual circuit belongs to.
    cid String
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderNetworkId Double
    Id of the provider network the virtual circuit is delivered over.
    virtualCircuitTypeId Double
    Id of the virtual circuit type.
    circuitProviderAccountId Double
    Id of the provider account the virtual circuit is billed to.
    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
    ownerId Double
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Double
    Id of the tenant the virtual circuit belongs to.
    cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderNetworkId number
    Id of the provider network the virtual circuit is delivered over.
    virtualCircuitTypeId number
    Id of the virtual circuit type.
    circuitProviderAccountId number
    Id of the provider account the virtual circuit is billed to.
    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
    ownerId number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId number
    Id of the tenant the virtual circuit belongs to.
    cid str
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuit_provider_network_id float
    Id of the provider network the virtual circuit is delivered over.
    virtual_circuit_type_id float
    Id of the virtual circuit type.
    circuit_provider_account_id float
    Id of the provider account the virtual circuit is billed to.
    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
    owner_id float
    Id of the owner the object is assigned to.
    status str
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tags 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 the virtual circuit belongs to.
    cid String
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderNetworkId Number
    Id of the provider network the virtual circuit is delivered over.
    virtualCircuitTypeId Number
    Id of the virtual circuit type.
    circuitProviderAccountId Number
    Id of the provider account the virtual circuit is billed to.
    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
    ownerId Number
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Number
    Id of the tenant the virtual circuit belongs to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualCircuit 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
    VirtualCircuitId 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
    VirtualCircuitId 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_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
    virtualCircuitId 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
    virtualCircuitId 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_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
    virtualCircuitId Number
    NetBox id.

    Look up Existing VirtualCircuit Resource

    Get an existing VirtualCircuit 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?: VirtualCircuitState, opts?: CustomResourceOptions): VirtualCircuit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cid: Optional[str] = None,
            circuit_provider_account_id: Optional[float] = None,
            circuit_provider_network_id: Optional[float] = 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,
            owner_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,
            virtual_circuit_id: Optional[float] = None,
            virtual_circuit_type_id: Optional[float] = None) -> VirtualCircuit
    func GetVirtualCircuit(ctx *Context, name string, id IDInput, state *VirtualCircuitState, opts ...ResourceOption) (*VirtualCircuit, error)
    public static VirtualCircuit Get(string name, Input<string> id, VirtualCircuitState? state, CustomResourceOptions? opts = null)
    public static VirtualCircuit get(String name, Output<String> id, VirtualCircuitState state, CustomResourceOptions options)
    resources:  _:    type: netbox:VirtualCircuit    get:      id: ${id}
    import {
      to = netbox_virtual_circuit.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:
    Cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    CircuitProviderAccountId double
    Id of the provider account the virtual circuit is billed to.
    CircuitProviderNetworkId double
    Id of the provider network the virtual circuit is delivered over.
    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
    OwnerId double
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    TenantId double
    Id of the tenant the virtual circuit belongs to.
    Url string
    VirtualCircuitId double
    NetBox id.
    VirtualCircuitTypeId double
    Id of the virtual circuit type.
    Cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    CircuitProviderAccountId float64
    Id of the provider account the virtual circuit is billed to.
    CircuitProviderNetworkId float64
    Id of the provider network the virtual circuit is delivered over.
    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
    OwnerId float64
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    TenantId float64
    Id of the tenant the virtual circuit belongs to.
    Url string
    VirtualCircuitId float64
    NetBox id.
    VirtualCircuitTypeId float64
    Id of the virtual circuit type.
    cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuit_provider_account_id number
    Id of the provider account the virtual circuit is billed to.
    circuit_provider_network_id number
    Id of the provider network the virtual circuit is delivered over.
    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
    owner_id number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    tenant_id number
    Id of the tenant the virtual circuit belongs to.
    url string
    virtual_circuit_id number
    NetBox id.
    virtual_circuit_type_id number
    Id of the virtual circuit type.
    cid String
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderAccountId Double
    Id of the provider account the virtual circuit is billed to.
    circuitProviderNetworkId Double
    Id of the provider network the virtual circuit is delivered over.
    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
    ownerId Double
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    tenantId Double
    Id of the tenant the virtual circuit belongs to.
    url String
    virtualCircuitId Double
    NetBox id.
    virtualCircuitTypeId Double
    Id of the virtual circuit type.
    cid string
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderAccountId number
    Id of the provider account the virtual circuit is billed to.
    circuitProviderNetworkId number
    Id of the provider network the virtual circuit is delivered over.
    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
    ownerId number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    tenantId number
    Id of the tenant the virtual circuit belongs to.
    url string
    virtualCircuitId number
    NetBox id.
    virtualCircuitTypeId number
    Id of the virtual circuit type.
    cid str
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuit_provider_account_id float
    Id of the provider account the virtual circuit is billed to.
    circuit_provider_network_id float
    Id of the provider network the virtual circuit is delivered over.
    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
    owner_id float
    Id of the owner the object is assigned to.
    status str
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    tenant_id float
    Id of the tenant the virtual circuit belongs to.
    url str
    virtual_circuit_id float
    NetBox id.
    virtual_circuit_type_id float
    Id of the virtual circuit type.
    cid String
    Circuit ID: unique identifier of the virtual circuit with its provider.
    circuitProviderAccountId Number
    Id of the provider account the virtual circuit is billed to.
    circuitProviderNetworkId Number
    Id of the provider network the virtual circuit is delivered over.
    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
    ownerId Number
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    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.
    tenantId Number
    Id of the tenant the virtual circuit belongs to.
    url String
    virtualCircuitId Number
    NetBox id.
    virtualCircuitTypeId Number
    Id of the virtual circuit type.

    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.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/virtualCircuit:VirtualCircuit 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