published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A NetBox circuit provider (circuits.provider).
From the official documentation:
A circuit provider is any entity which provides some form of connectivity of among sites or organizations within a site. While this obviously includes carriers which offer Internet and private transit service, it might also include Internet exchange (IX) points and even organizations with whom you peer directly. Each circuit within NetBox must be assigned a provider and a circuit ID which is unique to that provider.
Each provider may be assigned an autonomous system number (ASN), an account number, and contact information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.Rir("test", {name: "test-rir"});
const testAsn = new netbox.Asn("test", {
asn: 65000,
rirId: test.rirId,
});
const testCircuitProvider = new netbox.CircuitProvider("test", {
name: "test-circuit-provider",
slug: "test-circuit-provider",
description: "test-description",
asnIds: [testAsn.asnId],
});
import pulumi
import pulumi_netbox as netbox
test = netbox.Rir("test", name="test-rir")
test_asn = netbox.Asn("test",
asn=65000,
rir_id=test.rir_id)
test_circuit_provider = netbox.CircuitProvider("test",
name="test-circuit-provider",
slug="test-circuit-provider",
description="test-description",
asn_ids=[test_asn.asn_id])
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.NewRir(ctx, "test", &netbox.RirArgs{
Name: pulumi.String("test-rir"),
})
if err != nil {
return err
}
testAsn, err := netbox.NewAsn(ctx, "test", &netbox.AsnArgs{
Asn: pulumi.Float64(65000),
RirId: test.RirId,
})
if err != nil {
return err
}
_, err = netbox.NewCircuitProvider(ctx, "test", &netbox.CircuitProviderArgs{
Name: pulumi.String("test-circuit-provider"),
Slug: pulumi.String("test-circuit-provider"),
Description: pulumi.String("test-description"),
AsnIds: pulumi.Float64Array{
testAsn.AsnId,
},
})
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.Rir("test", new()
{
Name = "test-rir",
});
var testAsn = new Netbox.Asn("test", new()
{
Asn = 65000,
RirId = test.RirId,
});
var testCircuitProvider = new Netbox.CircuitProvider("test", new()
{
Name = "test-circuit-provider",
Slug = "test-circuit-provider",
Description = "test-description",
AsnIds = new[]
{
testAsn.AsnId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.Rir;
import com.pulumi.netbox.RirArgs;
import com.pulumi.netbox.Asn;
import com.pulumi.netbox.AsnArgs;
import com.pulumi.netbox.CircuitProvider;
import com.pulumi.netbox.CircuitProviderArgs;
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 Rir("test", RirArgs.builder()
.name("test-rir")
.build());
var testAsn = new Asn("testAsn", AsnArgs.builder()
.asn(65000.0)
.rirId(test.rirId())
.build());
var testCircuitProvider = new CircuitProvider("testCircuitProvider", CircuitProviderArgs.builder()
.name("test-circuit-provider")
.slug("test-circuit-provider")
.description("test-description")
.asnIds(testAsn.asnId())
.build());
}
}
resources:
test:
type: netbox:Rir
properties:
name: test-rir
testAsn:
type: netbox:Asn
name: test
properties:
asn: 65000
rirId: ${test.rirId}
testCircuitProvider:
type: netbox:CircuitProvider
name: test
properties:
name: test-circuit-provider
slug: test-circuit-provider
description: test-description
asnIds:
- ${testAsn.asnId}
Example coming soon!
Create CircuitProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CircuitProvider(name: string, args?: CircuitProviderArgs, opts?: CustomResourceOptions);@overload
def CircuitProvider(resource_name: str,
args: Optional[CircuitProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CircuitProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
asn_ids: Optional[Sequence[float]] = None,
comments: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
slug: Optional[str] = None,
tags: Optional[Sequence[str]] = None)func NewCircuitProvider(ctx *Context, name string, args *CircuitProviderArgs, opts ...ResourceOption) (*CircuitProvider, error)public CircuitProvider(string name, CircuitProviderArgs? args = null, CustomResourceOptions? opts = null)
public CircuitProvider(String name, CircuitProviderArgs args)
public CircuitProvider(String name, CircuitProviderArgs args, CustomResourceOptions options)
type: netbox:CircuitProvider
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_circuit_provider" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CircuitProviderArgs
- 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 CircuitProviderArgs
- 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 CircuitProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CircuitProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CircuitProviderArgs
- 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 circuitProviderResource = new Netbox.CircuitProvider("circuitProviderResource", new()
{
AsnIds = new[]
{
0.0,
},
Comments = "string",
CustomFields =
{
{ "string", "string" },
},
Description = "string",
Name = "string",
OwnerId = 0.0,
Slug = "string",
Tags = new[]
{
"string",
},
});
example, err := netbox.NewCircuitProvider(ctx, "circuitProviderResource", &netbox.CircuitProviderArgs{
AsnIds: pulumi.Float64Array{
pulumi.Float64(0),
},
Comments: pulumi.String("string"),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OwnerId: pulumi.Float64(0),
Slug: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "netbox_circuit_provider" "circuitProviderResource" {
lifecycle {
create_before_destroy = true
}
asn_ids = [0]
comments = "string"
custom_fields = {
"string" = "string"
}
description = "string"
name = "string"
owner_id = 0
slug = "string"
tags = ["string"]
}
var circuitProviderResource = new CircuitProvider("circuitProviderResource", CircuitProviderArgs.builder()
.asnIds(0.0)
.comments("string")
.customFields(Map.of("string", "string"))
.description("string")
.name("string")
.ownerId(0.0)
.slug("string")
.tags("string")
.build());
circuit_provider_resource = netbox.CircuitProvider("circuitProviderResource",
asn_ids=[float(0)],
comments="string",
custom_fields={
"string": "string",
},
description="string",
name="string",
owner_id=float(0),
slug="string",
tags=["string"])
const circuitProviderResource = new netbox.CircuitProvider("circuitProviderResource", {
asnIds: [0],
comments: "string",
customFields: {
string: "string",
},
description: "string",
name: "string",
ownerId: 0,
slug: "string",
tags: ["string"],
});
type: netbox:CircuitProvider
properties:
asnIds:
- 0
comments: string
customFields:
string: string
description: string
name: string
ownerId: 0
slug: string
tags:
- string
CircuitProvider 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 CircuitProvider resource accepts the following input properties:
- Asn
Ids List<double> - Ids of ASNs assigned to the provider.
- 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
- Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Asn
Ids []float64 - Ids of ASNs assigned to the provider.
- 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
- Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- asn_
ids list(number) - Ids of ASNs assigned to the provider.
- comments string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- name string
- owner_
id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- asn
Ids List<Double> - Ids of ASNs assigned to the provider.
- 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
- name String
- owner
Id Double - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- asn
Ids number[] - Ids of ASNs assigned to the provider.
- 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
- name string
- owner
Id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- asn_
ids Sequence[float] - Ids of ASNs assigned to the provider.
- comments str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- name str
- owner_
id float - Id of the owner the object is assigned to.
- slug str
- URL-friendly unique shorthand; derived from name when not set.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- asn
Ids List<Number> - Ids of ASNs assigned to the provider.
- comments String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- name String
- owner
Id Number - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
Outputs
All input properties are implicitly available as output properties. Additionally, the CircuitProvider resource produces the following output properties:
- Circuit
Count double - Number of circuits of the provider.
- Circuit
Provider doubleId - 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
- Circuit
Count float64 - Number of circuits of the provider.
- Circuit
Provider float64Id - 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
- circuit_
count number - Number of circuits of the provider.
- circuit_
provider_ 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
- circuit
Count Double - Number of circuits of the provider.
- circuit
Provider DoubleId - 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
- circuit
Count number - Number of circuits of the provider.
- circuit
Provider numberId - 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
- circuit_
count float - Number of circuits of the provider.
- circuit_
provider_ floatid - 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
- circuit
Count Number - Number of circuits of the provider.
- circuit
Provider 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
Look up Existing CircuitProvider Resource
Get an existing CircuitProvider 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?: CircuitProviderState, opts?: CustomResourceOptions): CircuitProvider@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asn_ids: Optional[Sequence[float]] = None,
circuit_count: Optional[float] = None,
circuit_provider_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,
name: Optional[str] = None,
owner_id: Optional[float] = None,
slug: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
url: Optional[str] = None) -> CircuitProviderfunc GetCircuitProvider(ctx *Context, name string, id IDInput, state *CircuitProviderState, opts ...ResourceOption) (*CircuitProvider, error)public static CircuitProvider Get(string name, Input<string> id, CircuitProviderState? state, CustomResourceOptions? opts = null)public static CircuitProvider get(String name, Output<String> id, CircuitProviderState state, CustomResourceOptions options)resources: _: type: netbox:CircuitProvider get: id: ${id}import {
to = netbox_circuit_provider.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.
- Asn
Ids List<double> - Ids of ASNs assigned to the provider.
- Circuit
Count double - Number of circuits of the provider.
- Circuit
Provider doubleId - NetBox id.
- 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 - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- Url string
- Asn
Ids []float64 - Ids of ASNs assigned to the provider.
- Circuit
Count float64 - Number of circuits of the provider.
- Circuit
Provider float64Id - NetBox id.
- 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 - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- []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.
- Url string
- asn_
ids list(number) - Ids of ASNs assigned to the provider.
- circuit_
count number - Number of circuits of the provider.
- circuit_
provider_ numberid - NetBox id.
- comments string
- created string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- last_
updated string - name string
- owner_
id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- url string
- asn
Ids List<Double> - Ids of ASNs assigned to the provider.
- circuit
Count Double - Number of circuits of the provider.
- circuit
Provider DoubleId - NetBox id.
- 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 - name String
- owner
Id Double - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- url String
- asn
Ids number[] - Ids of ASNs assigned to the provider.
- circuit
Count number - Number of circuits of the provider.
- circuit
Provider numberId - NetBox id.
- 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 - name string
- owner
Id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- url string
- asn_
ids Sequence[float] - Ids of ASNs assigned to the provider.
- circuit_
count float - Number of circuits of the provider.
- circuit_
provider_ floatid - NetBox id.
- comments str
- created str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- last_
updated str - name str
- owner_
id float - Id of the owner the object is assigned to.
- slug str
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- url str
- asn
Ids List<Number> - Ids of ASNs assigned to the provider.
- circuit
Count Number - Number of circuits of the provider.
- circuit
Provider NumberId - NetBox id.
- comments String
- created String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- last
Updated String - name String
- owner
Id Number - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- 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.
- url String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_circuit_provider.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/circuitProvider:CircuitProvider 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 Wednesday, Nov 4, 2026 by e-breuninger