published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 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.
- Circuit
Provider doubleNetwork Id - Id of the provider network the virtual circuit is delivered over.
- Virtual
Circuit doubleType Id - Id of the virtual circuit type.
- Circuit
Provider doubleAccount Id - Id of the provider account the virtual circuit is billed to.
- 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
- Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id double - Id of the tenant the virtual circuit belongs to.
- Cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- Circuit
Provider float64Network Id - Id of the provider network the virtual circuit is delivered over.
- Virtual
Circuit float64Type Id - Id of the virtual circuit type.
- Circuit
Provider float64Account Id - Id of the provider account the virtual circuit is billed to.
- 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
- Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id 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_ numbernetwork_ id - Id of the provider network the virtual circuit is delivered over.
- virtual_
circuit_ numbertype_ id - Id of the virtual circuit type.
- circuit_
provider_ numberaccount_ id - 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.
- 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.
- circuit
Provider DoubleNetwork Id - Id of the provider network the virtual circuit is delivered over.
- virtual
Circuit DoubleType Id - Id of the virtual circuit type.
- circuit
Provider DoubleAccount Id - Id of the provider account the virtual circuit is billed to.
- 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
- owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id Double - Id of the tenant the virtual circuit belongs to.
- cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit
Provider numberNetwork Id - Id of the provider network the virtual circuit is delivered over.
- virtual
Circuit numberType Id - Id of the virtual circuit type.
- circuit
Provider numberAccount Id - Id of the provider account the virtual circuit is billed to.
- 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
- owner
Id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- 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 str
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit_
provider_ floatnetwork_ id - Id of the provider network the virtual circuit is delivered over.
- virtual_
circuit_ floattype_ id - Id of the virtual circuit type.
- circuit_
provider_ floataccount_ id - 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.
- 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.
- circuit
Provider NumberNetwork Id - Id of the provider network the virtual circuit is delivered over.
- virtual
Circuit NumberType Id - Id of the virtual circuit type.
- circuit
Provider NumberAccount Id - 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.
- 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.
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.
- Last
Updated string - List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Virtual
Circuit doubleId - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Virtual
Circuit float64Id - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- virtual_
circuit_ numberid - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- virtual
Circuit DoubleId - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- virtual
Circuit numberId - NetBox id.
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- virtual_
circuit_ floatid - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- virtual
Circuit NumberId - 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) -> VirtualCircuitfunc 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: existingVirtualCircuit: type: netbox:VirtualCircuit get: id: ${id}import {
to = netbox_virtual_circuit.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state VirtualCircuitState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state VirtualCircuitState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state VirtualCircuitState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state VirtualCircuitState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- Circuit
Provider doubleAccount Id - Id of the provider account the virtual circuit is billed to.
- Circuit
Provider doubleNetwork Id - Id of the provider network the virtual circuit is delivered over.
- Comments string
- Created 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
- Last
Updated string - Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- 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.
- Tenant
Id double - Id of the tenant the virtual circuit belongs to.
- Url string
- Virtual
Circuit doubleId - NetBox id.
- Virtual
Circuit doubleType Id - Id of the virtual circuit type.
- Cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- Circuit
Provider float64Account Id - Id of the provider account the virtual circuit is billed to.
- Circuit
Provider float64Network Id - Id of the provider network the virtual circuit is delivered over.
- Comments string
- Created 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
- Last
Updated string - Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- []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.
- Tenant
Id float64 - Id of the tenant the virtual circuit belongs to.
- Url string
- Virtual
Circuit float64Id - NetBox id.
- Virtual
Circuit float64Type Id - Id of the virtual circuit type.
- cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit_
provider_ numberaccount_ id - Id of the provider account the virtual circuit is billed to.
- circuit_
provider_ numbernetwork_ id - 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.
- 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.
- tenant_
id number - Id of the tenant the virtual circuit belongs to.
- url string
- virtual_
circuit_ numberid - NetBox id.
- virtual_
circuit_ numbertype_ id - Id of the virtual circuit type.
- cid String
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit
Provider DoubleAccount Id - Id of the provider account the virtual circuit is billed to.
- circuit
Provider DoubleNetwork Id - Id of the provider network the virtual circuit is delivered over.
- comments String
- created 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
- last
Updated String - owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- 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.
- tenant
Id Double - Id of the tenant the virtual circuit belongs to.
- url String
- virtual
Circuit DoubleId - NetBox id.
- virtual
Circuit DoubleType Id - Id of the virtual circuit type.
- cid string
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit
Provider numberAccount Id - Id of the provider account the virtual circuit is billed to.
- circuit
Provider numberNetwork Id - Id of the provider network the virtual circuit is delivered over.
- comments string
- created 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
- 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.
- 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.
- tenant
Id number - Id of the tenant the virtual circuit belongs to.
- url string
- virtual
Circuit numberId - NetBox id.
- virtual
Circuit numberType Id - Id of the virtual circuit type.
- cid str
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit_
provider_ floataccount_ id - Id of the provider account the virtual circuit is billed to.
- circuit_
provider_ floatnetwork_ id - 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.
- 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.
- tenant_
id float - Id of the tenant the virtual circuit belongs to.
- url str
- virtual_
circuit_ floatid - NetBox id.
- virtual_
circuit_ floattype_ id - Id of the virtual circuit type.
- cid String
- Circuit ID: unique identifier of the virtual circuit with its provider.
- circuit
Provider NumberAccount Id - Id of the provider account the virtual circuit is billed to.
- circuit
Provider NumberNetwork Id - 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.
- 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.
- tenant
Id Number - Id of the tenant the virtual circuit belongs to.
- url String
- virtual
Circuit NumberId - NetBox id.
- virtual
Circuit NumberType Id - 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
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger