1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getCircuit
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 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 dictionary
    data "netbox_get_circuit" "name" {
        # arguments
    }

    The following arguments are supported:

    Cid string
    Circuit id assigned by the provider; unique per provider.
    CircuitProviderId double
    Id of the provider the circuit is leased from.
    CircuitTypeId double
    Id of the circuit type.
    CustomFieldFilters Dictionary<string, string>
    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.
    OwnerId double
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    TagSlug string
    Slug of a tag the object carries.
    Cid string
    Circuit id assigned by the provider; unique per provider.
    CircuitProviderId float64
    Id of the provider the circuit is leased from.
    CircuitTypeId float64
    Id of the circuit type.
    CustomFieldFilters map[string]string
    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.
    OwnerId float64
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    TagSlug string
    Slug of a tag the object carries.
    cid string
    Circuit id assigned by the provider; unique per provider.
    circuit_provider_id number
    Id of the provider the circuit is leased from.
    circuit_type_id number
    Id of the circuit type.
    custom_field_filters map(string)
    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.
    circuitProviderId Double
    Id of the provider the circuit is leased from.
    circuitTypeId Double
    Id of the circuit type.
    customFieldFilters Map<String,String>
    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.
    ownerId Double
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tagSlug String
    Slug of a tag the object carries.
    cid string
    Circuit id assigned by the provider; unique per provider.
    circuitProviderId number
    Id of the provider the circuit is leased from.
    circuitTypeId number
    Id of the circuit type.
    customFieldFilters {[key: string]: string}
    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.
    ownerId number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tagSlug string
    Slug of a tag the object carries.
    cid str
    Circuit id assigned by the provider; unique per provider.
    circuit_provider_id float
    Id of the provider the circuit is leased from.
    circuit_type_id float
    Id of the circuit type.
    custom_field_filters Mapping[str, str]
    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.
    circuitProviderId Number
    Id of the provider the circuit is leased from.
    circuitTypeId Number
    Id of the circuit type.
    customFieldFilters Map<String>
    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.
    ownerId Number
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, provisioning, active, offline, deprovisioning, decommissioned.
    tagSlug 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.
    CircuitProviderAccountId double
    Id of the provider account the circuit is billed to.
    CircuitProviderId double
    Id of the provider the circuit is leased from.
    CircuitTypeId double
    Id of the circuit type.
    Comments string
    CommitRateKbps double
    Committed rate in kbps. Must be a whole number.
    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
    Distance double
    Length of the circuit (requires distance_unit).
    DistanceUnit string
    Unit of distance. One of: km, m, mi, ft.
    Id double
    NetBox id.
    InstallDate string
    Installation date as YYYY-MM-DD.
    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.
    TerminationDate string
    Termination date as YYYY-MM-DD.
    Url string
    CustomFieldFilters Dictionary<string, string>
    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.
    TagSlug string
    Slug of a tag the object carries.
    Cid string
    Circuit id assigned by the provider; unique per provider.
    CircuitProviderAccountId float64
    Id of the provider account the circuit is billed to.
    CircuitProviderId float64
    Id of the provider the circuit is leased from.
    CircuitTypeId float64
    Id of the circuit type.
    Comments string
    CommitRateKbps float64
    Committed rate in kbps. Must be a whole number.
    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
    Distance float64
    Length of the circuit (requires distance_unit).
    DistanceUnit string
    Unit of distance. One of: km, m, mi, ft.
    Id float64
    NetBox id.
    InstallDate string
    Installation date as YYYY-MM-DD.
    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.
    TerminationDate string
    Termination date as YYYY-MM-DD.
    Url string
    CustomFieldFilters map[string]string
    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.
    TagSlug string
    Slug of a tag the object carries.
    cid string
    Circuit id assigned by the provider; unique per provider.
    circuit_provider_account_id number
    Id of the provider account the circuit is billed to.
    circuit_provider_id number
    Id of the provider the circuit is leased from.
    circuit_type_id number
    Id of the circuit type.
    comments string
    commit_rate_kbps number
    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.
    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.
    termination_date string
    Termination date as YYYY-MM-DD.
    url string
    custom_field_filters map(string)
    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.
    circuitProviderAccountId Double
    Id of the provider account the circuit is billed to.
    circuitProviderId Double
    Id of the provider the circuit is leased from.
    circuitTypeId Double
    Id of the circuit type.
    comments String
    commitRateKbps Double
    Committed rate in kbps. Must be a whole number.
    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
    distance Double
    Length of the circuit (requires distance_unit).
    distanceUnit String
    Unit of distance. One of: km, m, mi, ft.
    id Double
    NetBox id.
    installDate String
    Installation date as YYYY-MM-DD.
    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.
    terminationDate String
    Termination date as YYYY-MM-DD.
    url String
    customFieldFilters Map<String,String>
    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.
    tagSlug String
    Slug of a tag the object carries.
    cid string
    Circuit id assigned by the provider; unique per provider.
    circuitProviderAccountId number
    Id of the provider account the circuit is billed to.
    circuitProviderId number
    Id of the provider the circuit is leased from.
    circuitTypeId number
    Id of the circuit type.
    comments string
    commitRateKbps number
    Committed rate in kbps. Must be a whole number.
    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
    distance number
    Length of the circuit (requires distance_unit).
    distanceUnit string
    Unit of distance. One of: km, m, mi, ft.
    id number
    NetBox id.
    installDate string
    Installation date as YYYY-MM-DD.
    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.
    terminationDate string
    Termination date as YYYY-MM-DD.
    url string
    customFieldFilters {[key: string]: string}
    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.
    tagSlug string
    Slug of a tag the object carries.
    cid str
    Circuit id assigned by the provider; unique per provider.
    circuit_provider_account_id float
    Id of the provider account the circuit is billed to.
    circuit_provider_id float
    Id of the provider the circuit is leased from.
    circuit_type_id float
    Id of the circuit type.
    comments str
    commit_rate_kbps float
    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.
    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.
    termination_date str
    Termination date as YYYY-MM-DD.
    url str
    custom_field_filters Mapping[str, str]
    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.
    circuitProviderAccountId Number
    Id of the provider account the circuit is billed to.
    circuitProviderId Number
    Id of the provider the circuit is leased from.
    circuitTypeId Number
    Id of the circuit type.
    comments String
    commitRateKbps Number
    Committed rate in kbps. Must be a whole number.
    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
    distance Number
    Length of the circuit (requires distance_unit).
    distanceUnit String
    Unit of distance. One of: km, m, mi, ft.
    id Number
    NetBox id.
    installDate String
    Installation date as YYYY-MM-DD.
    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.
    terminationDate String
    Termination date as YYYY-MM-DD.
    url String
    customFieldFilters Map<String>
    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.
    tagSlug 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 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