published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A NetBox circuit group (circuits.circuitgroup): an arbitrary grouping of circuits and virtual circuits.
From the official documentation:
Circuits can be arranged into administrative groups for organization. The assignment of a circuit to a group is optional.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.Tenant("test", {name: "test-tenant"});
const testCircuitGroup = new netbox.CircuitGroup("test", {
name: "test-circuit-group",
slug: "test-circuit-group",
tenantId: test.tenantId,
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.Tenant("test", name="test-tenant")
test_circuit_group = netbox.CircuitGroup("test",
name="test-circuit-group",
slug="test-circuit-group",
tenant_id=test.tenant_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.NewTenant(ctx, "test", &netbox.TenantArgs{
Name: pulumi.String("test-tenant"),
})
if err != nil {
return err
}
_, err = netbox.NewCircuitGroup(ctx, "test", &netbox.CircuitGroupArgs{
Name: pulumi.String("test-circuit-group"),
Slug: pulumi.String("test-circuit-group"),
TenantId: test.TenantId,
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.Tenant("test", new()
{
Name = "test-tenant",
});
var testCircuitGroup = new Netbox.CircuitGroup("test", new()
{
Name = "test-circuit-group",
Slug = "test-circuit-group",
TenantId = test.TenantId,
Description = "test-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.Tenant;
import com.pulumi.netbox.TenantArgs;
import com.pulumi.netbox.CircuitGroup;
import com.pulumi.netbox.CircuitGroupArgs;
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 Tenant("test", TenantArgs.builder()
.name("test-tenant")
.build());
var testCircuitGroup = new CircuitGroup("testCircuitGroup", CircuitGroupArgs.builder()
.name("test-circuit-group")
.slug("test-circuit-group")
.tenantId(test.tenantId())
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:Tenant
properties:
name: test-tenant
testCircuitGroup:
type: netbox:CircuitGroup
name: test
properties:
name: test-circuit-group
slug: test-circuit-group
tenantId: ${test.tenantId}
description: test-description
Example coming soon!
Create CircuitGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CircuitGroup(name: string, args?: CircuitGroupArgs, opts?: CustomResourceOptions);@overload
def CircuitGroup(resource_name: str,
args: Optional[CircuitGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CircuitGroup(resource_name: str,
opts: Optional[ResourceOptions] = 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,
tenant_id: Optional[float] = None)func NewCircuitGroup(ctx *Context, name string, args *CircuitGroupArgs, opts ...ResourceOption) (*CircuitGroup, error)public CircuitGroup(string name, CircuitGroupArgs? args = null, CustomResourceOptions? opts = null)
public CircuitGroup(String name, CircuitGroupArgs args)
public CircuitGroup(String name, CircuitGroupArgs args, CustomResourceOptions options)
type: netbox:CircuitGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_circuit_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CircuitGroupArgs
- 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 CircuitGroupArgs
- 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 CircuitGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CircuitGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CircuitGroupArgs
- 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 circuitGroupResource = new Netbox.CircuitGroup("circuitGroupResource", new()
{
Comments = "string",
CustomFields =
{
{ "string", "string" },
},
Description = "string",
Name = "string",
OwnerId = 0.0,
Slug = "string",
Tags = new[]
{
"string",
},
TenantId = 0.0,
});
example, err := netbox.NewCircuitGroup(ctx, "circuitGroupResource", &netbox.CircuitGroupArgs{
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"),
},
TenantId: pulumi.Float64(0),
})
resource "netbox_circuit_group" "circuitGroupResource" {
lifecycle {
create_before_destroy = true
}
comments = "string"
custom_fields = {
"string" = "string"
}
description = "string"
name = "string"
owner_id = 0
slug = "string"
tags = ["string"]
tenant_id = 0
}
var circuitGroupResource = new CircuitGroup("circuitGroupResource", CircuitGroupArgs.builder()
.comments("string")
.customFields(Map.of("string", "string"))
.description("string")
.name("string")
.ownerId(0.0)
.slug("string")
.tags("string")
.tenantId(0.0)
.build());
circuit_group_resource = netbox.CircuitGroup("circuitGroupResource",
comments="string",
custom_fields={
"string": "string",
},
description="string",
name="string",
owner_id=float(0),
slug="string",
tags=["string"],
tenant_id=float(0))
const circuitGroupResource = new netbox.CircuitGroup("circuitGroupResource", {
comments: "string",
customFields: {
string: "string",
},
description: "string",
name: "string",
ownerId: 0,
slug: "string",
tags: ["string"],
tenantId: 0,
});
type: netbox:CircuitGroup
properties:
comments: string
customFields:
string: string
description: string
name: string
ownerId: 0
slug: string
tags:
- string
tenantId: 0
CircuitGroup 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 CircuitGroup resource accepts the following input properties:
- 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).
- Tenant
Id double - Id of the tenant the group belongs to.
- Comments string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- 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).
- Tenant
Id float64 - Id of the tenant the group belongs to.
- comments string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- 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).
- tenant_
id number - Id of the tenant the group belongs to.
- comments String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- 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).
- tenant
Id Double - Id of the tenant the group belongs to.
- comments string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- 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).
- tenant
Id number - Id of the tenant the group belongs to.
- comments str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- 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).
- tenant_
id float - Id of the tenant the group belongs to.
- comments String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- 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).
- tenant
Id Number - Id of the tenant the group belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the CircuitGroup resource produces the following output properties:
- Circuit
Count double - Number of circuits in the group.
- Circuit
Group 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 in the group.
- Circuit
Group 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 in the group.
- circuit_
group_ 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 in the group.
- circuit
Group 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 in the group.
- circuit
Group 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 in the group.
- circuit_
group_ 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 in the group.
- circuit
Group 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 CircuitGroup Resource
Get an existing CircuitGroup 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?: CircuitGroupState, opts?: CustomResourceOptions): CircuitGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
circuit_count: Optional[float] = None,
circuit_group_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,
tenant_id: Optional[float] = None,
url: Optional[str] = None) -> CircuitGroupfunc GetCircuitGroup(ctx *Context, name string, id IDInput, state *CircuitGroupState, opts ...ResourceOption) (*CircuitGroup, error)public static CircuitGroup Get(string name, Input<string> id, CircuitGroupState? state, CustomResourceOptions? opts = null)public static CircuitGroup get(String name, Output<String> id, CircuitGroupState state, CustomResourceOptions options)resources: _: type: netbox:CircuitGroup get: id: ${id}import {
to = netbox_circuit_group.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.
- Circuit
Count double - Number of circuits in the group.
- Circuit
Group 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.
- Tenant
Id double - Id of the tenant the group belongs to.
- Url string
- Circuit
Count float64 - Number of circuits in the group.
- Circuit
Group 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.
- Tenant
Id float64 - Id of the tenant the group belongs to.
- Url string
- circuit_
count number - Number of circuits in the group.
- circuit_
group_ 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.
- tenant_
id number - Id of the tenant the group belongs to.
- url string
- circuit
Count Double - Number of circuits in the group.
- circuit
Group 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.
- tenant
Id Double - Id of the tenant the group belongs to.
- url String
- circuit
Count number - Number of circuits in the group.
- circuit
Group 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.
- tenant
Id number - Id of the tenant the group belongs to.
- url string
- circuit_
count float - Number of circuits in the group.
- circuit_
group_ 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.
- tenant_
id float - Id of the tenant the group belongs to.
- url str
- circuit
Count Number - Number of circuits in the group.
- circuit
Group 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.
- tenant
Id Number - Id of the tenant the group belongs to.
- 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_group.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/circuitGroup:CircuitGroup 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