published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A circuit leased from a provider (circuits.circuit).
From the official documentation:
A communications circuit represents a single physical link connecting exactly two endpoints, commonly referred to as its A and Z terminations. A circuit in NetBox may have zero, one, or two terminations defined. It is common to have only one termination defined when you don’t necessarily care about the details of the provider side of the circuit, e.g. for Internet access circuits. Both terminations would likely be modeled for circuits which connect one customer site to another.
Each circuit is associated with a provider and a user-defined type. For example, you might have Internet access circuits delivered to each site by one provider, and private MPLS circuits delivered by another. Each circuit must be assigned a circuit ID, each of which must be unique per provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getCircuit({
id: 123,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_circuit(id=123)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netbox.LookupCircuit(ctx, &netbox.LookupCircuitArgs{
Id: pulumi.Float64Ref(123),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var test = Netbox.GetCircuit.Invoke(new()
{
Id = 123,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.NetboxFunctions;
import com.pulumi.netbox.inputs.GetCircuitArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = NetboxFunctions.getCircuit(GetCircuitArgs.builder()
.id(123)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getCircuit
arguments:
id: 123
Example coming soon!
Using getCircuit
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCircuit(args: GetCircuitArgs, opts?: InvokeOptions): Promise<GetCircuitResult>
function getCircuitOutput(args: GetCircuitOutputArgs, opts?: InvokeOutputOptions): Output<GetCircuitResult>def get_circuit(cid: Optional[str] = None,
circuit_provider_id: Optional[float] = None,
circuit_type_id: Optional[float] = None,
custom_field_filters: Optional[Mapping[str, str]] = None,
id: Optional[float] = None,
owner_id: Optional[float] = None,
status: Optional[str] = None,
tag_slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCircuitResult
def get_circuit_output(cid: pulumi.Input[Optional[str]] = None,
circuit_provider_id: pulumi.Input[Optional[float]] = None,
circuit_type_id: pulumi.Input[Optional[float]] = None,
custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
id: pulumi.Input[Optional[float]] = None,
owner_id: pulumi.Input[Optional[float]] = None,
status: pulumi.Input[Optional[str]] = None,
tag_slug: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCircuitResult]func LookupCircuit(ctx *Context, args *LookupCircuitArgs, opts ...InvokeOption) (*LookupCircuitResult, error)
func LookupCircuitOutput(ctx *Context, args *LookupCircuitOutputArgs, opts ...InvokeOption) LookupCircuitResultOutput> Note: This function is named LookupCircuit in the Go SDK.
public static class GetCircuit
{
public static Task<GetCircuitResult> InvokeAsync(GetCircuitArgs args, InvokeOptions? opts = null)
public static Output<GetCircuitResult> Invoke(GetCircuitInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCircuitResult> Invoke(GetCircuitInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCircuitResult> getCircuit(GetCircuitArgs args, InvokeOptions options)
public static Output<GetCircuitResult> getCircuit(GetCircuitArgs args, InvokeOptions options)
public static Output<GetCircuitResult> getCircuit(GetCircuitArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getCircuit:getCircuit
arguments:
# arguments dictionarydata "netbox_get_circuit" "name" {
# arguments
}The following arguments are supported:
- Cid string
- Circuit id assigned by the provider; unique per provider.
- Circuit
Provider doubleId - Id of the provider the circuit is leased from.
- Circuit
Type doubleId - Id of the circuit type.
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Id double
- NetBox id.
- Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- string
- Slug of a tag the object carries.
- Cid string
- Circuit id assigned by the provider; unique per provider.
- Circuit
Provider float64Id - Id of the provider the circuit is leased from.
- Circuit
Type float64Id - Id of the circuit type.
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Id float64
- NetBox id.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- string
- Slug of a tag the object carries.
- cid string
- Circuit id assigned by the provider; unique per provider.
- circuit_
provider_ numberid - Id of the provider the circuit is leased from.
- circuit_
type_ numberid - Id of the circuit type.
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id number
- NetBox id.
- owner_
id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- tag_
slug string - Slug of a tag the object carries.
- cid String
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider DoubleId - Id of the provider the circuit is leased from.
- circuit
Type DoubleId - Id of the circuit type.
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id Double
- NetBox id.
- owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- String
- Slug of a tag the object carries.
- cid string
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider numberId - Id of the provider the circuit is leased from.
- circuit
Type numberId - Id of the circuit type.
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id number
- NetBox id.
- owner
Id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- string
- Slug of a tag the object carries.
- cid str
- Circuit id assigned by the provider; unique per provider.
- circuit_
provider_ floatid - Id of the provider the circuit is leased from.
- circuit_
type_ floatid - Id of the circuit type.
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id float
- NetBox id.
- owner_
id float - Id of the owner the object is assigned to.
- status str
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- tag_
slug str - Slug of a tag the object carries.
- cid String
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider NumberId - Id of the provider the circuit is leased from.
- circuit
Type NumberId - Id of the circuit type.
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- id Number
- NetBox id.
- owner
Id Number - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
- String
- Slug of a tag the object carries.
getCircuit Result
The following output properties are available:
- Cid string
- Circuit id assigned by the provider; unique per provider.
- Circuit
Provider doubleAccount Id - Id of the provider account the circuit is billed to.
- Circuit
Provider doubleId - Id of the provider the circuit is leased from.
- Circuit
Type doubleId - Id of the circuit type.
- Comments string
- Commit
Rate doubleKbps - Committed rate in kbps. Must be a whole number.
- 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
- Distance double
- Length of the circuit (requires distance_unit).
- Distance
Unit string - Unit of distance. One of: km, m, mi, ft.
- Id double
- NetBox id.
- Install
Date string - Installation date as YYYY-MM-DD.
- 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.
- Termination
Date string - Termination date as YYYY-MM-DD.
- Url string
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- Cid string
- Circuit id assigned by the provider; unique per provider.
- Circuit
Provider float64Account Id - Id of the provider account the circuit is billed to.
- Circuit
Provider float64Id - Id of the provider the circuit is leased from.
- Circuit
Type float64Id - Id of the circuit type.
- Comments string
- Commit
Rate float64Kbps - Committed rate in kbps. Must be a whole number.
- 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
- Distance float64
- Length of the circuit (requires distance_unit).
- Distance
Unit string - Unit of distance. One of: km, m, mi, ft.
- Id float64
- NetBox id.
- Install
Date string - Installation date as YYYY-MM-DD.
- 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.
- Termination
Date string - Termination date as YYYY-MM-DD.
- Url string
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- cid string
- Circuit id assigned by the provider; unique per provider.
- circuit_
provider_ numberaccount_ id - Id of the provider account the circuit is billed to.
- circuit_
provider_ numberid - Id of the provider the circuit is leased from.
- circuit_
type_ numberid - Id of the circuit type.
- comments string
- commit_
rate_ numberkbps - Committed rate in kbps. Must be a whole number.
- 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
- distance number
- Length of the circuit (requires distance_unit).
- distance_
unit string - Unit of distance. One of: km, m, mi, ft.
- id number
- NetBox id.
- install_
date string - Installation date as YYYY-MM-DD.
- 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.
- termination_
date string - Termination date as YYYY-MM-DD.
- url string
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug string - Slug of a tag the object carries.
- cid String
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider DoubleAccount Id - Id of the provider account the circuit is billed to.
- circuit
Provider DoubleId - Id of the provider the circuit is leased from.
- circuit
Type DoubleId - Id of the circuit type.
- comments String
- commit
Rate DoubleKbps - Committed rate in kbps. Must be a whole number.
- 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
- distance Double
- Length of the circuit (requires distance_unit).
- distance
Unit String - Unit of distance. One of: km, m, mi, ft.
- id Double
- NetBox id.
- install
Date String - Installation date as YYYY-MM-DD.
- 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.
- termination
Date String - Termination date as YYYY-MM-DD.
- url String
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
- cid string
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider numberAccount Id - Id of the provider account the circuit is billed to.
- circuit
Provider numberId - Id of the provider the circuit is leased from.
- circuit
Type numberId - Id of the circuit type.
- comments string
- commit
Rate numberKbps - Committed rate in kbps. Must be a whole number.
- 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
- distance number
- Length of the circuit (requires distance_unit).
- distance
Unit string - Unit of distance. One of: km, m, mi, ft.
- id number
- NetBox id.
- install
Date string - Installation date as YYYY-MM-DD.
- 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.
- termination
Date string - Termination date as YYYY-MM-DD.
- url string
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- cid str
- Circuit id assigned by the provider; unique per provider.
- circuit_
provider_ floataccount_ id - Id of the provider account the circuit is billed to.
- circuit_
provider_ floatid - Id of the provider the circuit is leased from.
- circuit_
type_ floatid - Id of the circuit type.
- comments str
- commit_
rate_ floatkbps - Committed rate in kbps. Must be a whole number.
- 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
- distance float
- Length of the circuit (requires distance_unit).
- distance_
unit str - Unit of distance. One of: km, m, mi, ft.
- id float
- NetBox id.
- install_
date str - Installation date as YYYY-MM-DD.
- 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.
- termination_
date str - Termination date as YYYY-MM-DD.
- url str
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug str - Slug of a tag the object carries.
- cid String
- Circuit id assigned by the provider; unique per provider.
- circuit
Provider NumberAccount Id - Id of the provider account the circuit is billed to.
- circuit
Provider NumberId - Id of the provider the circuit is leased from.
- circuit
Type NumberId - Id of the circuit type.
- comments String
- commit
Rate NumberKbps - Committed rate in kbps. Must be a whole number.
- 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
- distance Number
- Length of the circuit (requires distance_unit).
- distance
Unit String - Unit of distance. One of: km, m, mi, ft.
- id Number
- NetBox id.
- install
Date String - Installation date as YYYY-MM-DD.
- 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.
- termination
Date String - Termination date as YYYY-MM-DD.
- url String
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger