published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
An account a NetBox circuit provider holds (circuits.provideraccount).
From the official documentation:
This model can be used to represent individual accounts associated with a provider.
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 testCircuitProviderAccount = new netbox.CircuitProviderAccount("test", {
account: "test-account",
name: "test-circuit-provider-account",
circuitProviderId: test.circuitProviderId,
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.CircuitProvider("test", name="test-circuit-provider")
test_circuit_provider_account = netbox.CircuitProviderAccount("test",
account="test-account",
name="test-circuit-provider-account",
circuit_provider_id=test.circuit_provider_id,
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
}
_, err = netbox.NewCircuitProviderAccount(ctx, "test", &netbox.CircuitProviderAccountArgs{
Account: pulumi.String("test-account"),
Name: pulumi.String("test-circuit-provider-account"),
CircuitProviderId: test.CircuitProviderId,
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 testCircuitProviderAccount = new Netbox.CircuitProviderAccount("test", new()
{
Account = "test-account",
Name = "test-circuit-provider-account",
CircuitProviderId = test.CircuitProviderId,
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.CircuitProviderAccount;
import com.pulumi.netbox.CircuitProviderAccountArgs;
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 testCircuitProviderAccount = new CircuitProviderAccount("testCircuitProviderAccount", CircuitProviderAccountArgs.builder()
.account("test-account")
.name("test-circuit-provider-account")
.circuitProviderId(test.circuitProviderId())
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:CircuitProvider
properties:
name: test-circuit-provider
testCircuitProviderAccount:
type: netbox:CircuitProviderAccount
name: test
properties:
account: test-account
name: test-circuit-provider-account
circuitProviderId: ${test.circuitProviderId}
description: test-description
Example coming soon!
Create CircuitProviderAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CircuitProviderAccount(name: string, args: CircuitProviderAccountArgs, opts?: CustomResourceOptions);@overload
def CircuitProviderAccount(resource_name: str,
args: CircuitProviderAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CircuitProviderAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
circuit_provider_id: Optional[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,
tags: Optional[Sequence[str]] = None)func NewCircuitProviderAccount(ctx *Context, name string, args CircuitProviderAccountArgs, opts ...ResourceOption) (*CircuitProviderAccount, error)public CircuitProviderAccount(string name, CircuitProviderAccountArgs args, CustomResourceOptions? opts = null)
public CircuitProviderAccount(String name, CircuitProviderAccountArgs args)
public CircuitProviderAccount(String name, CircuitProviderAccountArgs args, CustomResourceOptions options)
type: netbox:CircuitProviderAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_circuit_provider_account" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CircuitProviderAccountArgs
- 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 CircuitProviderAccountArgs
- 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 CircuitProviderAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CircuitProviderAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CircuitProviderAccountArgs
- 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 circuitProviderAccountResource = new Netbox.CircuitProviderAccount("circuitProviderAccountResource", new()
{
Account = "string",
CircuitProviderId = 0.0,
Comments = "string",
CustomFields =
{
{ "string", "string" },
},
Description = "string",
Name = "string",
OwnerId = 0.0,
Tags = new[]
{
"string",
},
});
example, err := netbox.NewCircuitProviderAccount(ctx, "circuitProviderAccountResource", &netbox.CircuitProviderAccountArgs{
Account: pulumi.String("string"),
CircuitProviderId: 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),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "netbox_circuit_provider_account" "circuitProviderAccountResource" {
lifecycle {
create_before_destroy = true
}
account = "string"
circuit_provider_id = 0
comments = "string"
custom_fields = {
"string" = "string"
}
description = "string"
name = "string"
owner_id = 0
tags = ["string"]
}
var circuitProviderAccountResource = new CircuitProviderAccount("circuitProviderAccountResource", CircuitProviderAccountArgs.builder()
.account("string")
.circuitProviderId(0.0)
.comments("string")
.customFields(Map.of("string", "string"))
.description("string")
.name("string")
.ownerId(0.0)
.tags("string")
.build());
circuit_provider_account_resource = netbox.CircuitProviderAccount("circuitProviderAccountResource",
account="string",
circuit_provider_id=float(0),
comments="string",
custom_fields={
"string": "string",
},
description="string",
name="string",
owner_id=float(0),
tags=["string"])
const circuitProviderAccountResource = new netbox.CircuitProviderAccount("circuitProviderAccountResource", {
account: "string",
circuitProviderId: 0,
comments: "string",
customFields: {
string: "string",
},
description: "string",
name: "string",
ownerId: 0,
tags: ["string"],
});
type: netbox:CircuitProviderAccount
properties:
account: string
circuitProviderId: 0
comments: string
customFields:
string: string
description: string
name: string
ownerId: 0
tags:
- string
CircuitProviderAccount 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 CircuitProviderAccount resource accepts the following input properties:
- Account string
- Account number with the provider.
- Circuit
Provider doubleId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- Owner
Id double - Id of the owner the object is assigned to.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Account string
- Account number with the provider.
- Circuit
Provider float64Id - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- Owner
Id float64 - Id of the owner the object is assigned to.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- account string
- Account number with the provider.
- circuit_
provider_ numberid - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner_
id number - Id of the owner the object is assigned to.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- account String
- Account number with the provider.
- circuit
Provider DoubleId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id Double - Id of the owner the object is assigned to.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- account string
- Account number with the provider.
- circuit
Provider numberId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id number - Id of the owner the object is assigned to.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- account str
- Account number with the provider.
- circuit_
provider_ floatid - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner_
id float - Id of the owner the object is assigned to.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- account String
- Account number with the provider.
- circuit
Provider NumberId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id Number - Id of the owner the object is assigned to.
- 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 CircuitProviderAccount resource produces the following output properties:
- Circuit
Provider doubleAccount Id - 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
Provider float64Account Id - 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_
provider_ numberaccount_ id - 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
Provider DoubleAccount Id - 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
Provider numberAccount Id - 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_
provider_ floataccount_ id - 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
Provider NumberAccount Id - 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 CircuitProviderAccount Resource
Get an existing CircuitProviderAccount 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?: CircuitProviderAccountState, opts?: CustomResourceOptions): CircuitProviderAccount@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
circuit_provider_account_id: 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,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
url: Optional[str] = None) -> CircuitProviderAccountfunc GetCircuitProviderAccount(ctx *Context, name string, id IDInput, state *CircuitProviderAccountState, opts ...ResourceOption) (*CircuitProviderAccount, error)public static CircuitProviderAccount Get(string name, Input<string> id, CircuitProviderAccountState? state, CustomResourceOptions? opts = null)public static CircuitProviderAccount get(String name, Output<String> id, CircuitProviderAccountState state, CustomResourceOptions options)resources: _: type: netbox:CircuitProviderAccount get: id: ${id}import {
to = netbox_circuit_provider_account.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.
- Account string
- Account number with the provider.
- Circuit
Provider doubleAccount Id - NetBox id.
- Circuit
Provider doubleId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- Owner
Id double - Id of the owner the object is assigned to.
- 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
- Account string
- Account number with the provider.
- Circuit
Provider float64Account Id - NetBox id.
- Circuit
Provider float64Id - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- Owner
Id float64 - Id of the owner the object is assigned to.
- []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
- account string
- Account number with the provider.
- circuit_
provider_ numberaccount_ id - NetBox id.
- circuit_
provider_ numberid - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner_
id number - Id of the owner the object is assigned to.
- 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
- account String
- Account number with the provider.
- circuit
Provider DoubleAccount Id - NetBox id.
- circuit
Provider DoubleId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id Double - Id of the owner the object is assigned to.
- 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
- account string
- Account number with the provider.
- circuit
Provider numberAccount Id - NetBox id.
- circuit
Provider numberId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id number - Id of the owner the object is assigned to.
- 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
- account str
- Account number with the provider.
- circuit_
provider_ floataccount_ id - NetBox id.
- circuit_
provider_ floatid - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner_
id float - Id of the owner the object is assigned to.
- 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
- account String
- Account number with the provider.
- circuit
Provider NumberAccount Id - NetBox id.
- circuit
Provider NumberId - Id of the provider the account is held with.
- 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
- Human-readable name of the account.
- owner
Id Number - Id of the owner the object is assigned to.
- 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_account.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/circuitProviderAccount:CircuitProviderAccount 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