published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
Membership of a circuit or virtual circuit in a circuit group (circuits.circuitgroupassignment).
From the official documentation:
Circuits can be assigned to circuit groups for correlation purposes. For instance, three circuits, each belonging to a different provider, may each be assigned to the same circuit group. Each assignment may optionally include a priority designation.
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 testCircuitType = new netbox.CircuitType("test", {name: "test-circuit-type"});
const testCircuit = new netbox.Circuit("test", {
cid: "test-cid",
circuitProviderId: test.circuitProviderId,
circuitTypeId: testCircuitType.circuitTypeId,
});
const testCircuitGroup = new netbox.CircuitGroup("test", {name: "test-circuit-group"});
const testCircuitGroupAssignment = new netbox.CircuitGroupAssignment("test", {
circuitGroupId: testCircuitGroup.circuitGroupId,
memberType: "circuits.circuit",
memberId: testCircuit.circuitId,
priority: "primary",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.CircuitProvider("test", name="test-circuit-provider")
test_circuit_type = netbox.CircuitType("test", name="test-circuit-type")
test_circuit = netbox.Circuit("test",
cid="test-cid",
circuit_provider_id=test.circuit_provider_id,
circuit_type_id=test_circuit_type.circuit_type_id)
test_circuit_group = netbox.CircuitGroup("test", name="test-circuit-group")
test_circuit_group_assignment = netbox.CircuitGroupAssignment("test",
circuit_group_id=test_circuit_group.circuit_group_id,
member_type="circuits.circuit",
member_id=test_circuit.circuit_id,
priority="primary")
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
}
testCircuitType, err := netbox.NewCircuitType(ctx, "test", &netbox.CircuitTypeArgs{
Name: pulumi.String("test-circuit-type"),
})
if err != nil {
return err
}
testCircuit, err := netbox.NewCircuit(ctx, "test", &netbox.CircuitArgs{
Cid: pulumi.String("test-cid"),
CircuitProviderId: test.CircuitProviderId,
CircuitTypeId: testCircuitType.CircuitTypeId,
})
if err != nil {
return err
}
testCircuitGroup, err := netbox.NewCircuitGroup(ctx, "test", &netbox.CircuitGroupArgs{
Name: pulumi.String("test-circuit-group"),
})
if err != nil {
return err
}
_, err = netbox.NewCircuitGroupAssignment(ctx, "test", &netbox.CircuitGroupAssignmentArgs{
CircuitGroupId: testCircuitGroup.CircuitGroupId,
MemberType: pulumi.String("circuits.circuit"),
MemberId: testCircuit.CircuitId,
Priority: pulumi.String("primary"),
})
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 testCircuitType = new Netbox.CircuitType("test", new()
{
Name = "test-circuit-type",
});
var testCircuit = new Netbox.Circuit("test", new()
{
Cid = "test-cid",
CircuitProviderId = test.CircuitProviderId,
CircuitTypeId = testCircuitType.CircuitTypeId,
});
var testCircuitGroup = new Netbox.CircuitGroup("test", new()
{
Name = "test-circuit-group",
});
var testCircuitGroupAssignment = new Netbox.CircuitGroupAssignment("test", new()
{
CircuitGroupId = testCircuitGroup.CircuitGroupId,
MemberType = "circuits.circuit",
MemberId = testCircuit.CircuitId,
Priority = "primary",
});
});
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.CircuitType;
import com.pulumi.netbox.CircuitTypeArgs;
import com.pulumi.netbox.Circuit;
import com.pulumi.netbox.CircuitArgs;
import com.pulumi.netbox.CircuitGroup;
import com.pulumi.netbox.CircuitGroupArgs;
import com.pulumi.netbox.CircuitGroupAssignment;
import com.pulumi.netbox.CircuitGroupAssignmentArgs;
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 testCircuitType = new CircuitType("testCircuitType", CircuitTypeArgs.builder()
.name("test-circuit-type")
.build());
var testCircuit = new Circuit("testCircuit", CircuitArgs.builder()
.cid("test-cid")
.circuitProviderId(test.circuitProviderId())
.circuitTypeId(testCircuitType.circuitTypeId())
.build());
var testCircuitGroup = new CircuitGroup("testCircuitGroup", CircuitGroupArgs.builder()
.name("test-circuit-group")
.build());
var testCircuitGroupAssignment = new CircuitGroupAssignment("testCircuitGroupAssignment", CircuitGroupAssignmentArgs.builder()
.circuitGroupId(testCircuitGroup.circuitGroupId())
.memberType("circuits.circuit")
.memberId(testCircuit.circuitId())
.priority("primary")
.build());
}
}
resources:
test:
type: netbox:CircuitProvider
properties:
name: test-circuit-provider
testCircuitType:
type: netbox:CircuitType
name: test
properties:
name: test-circuit-type
testCircuit:
type: netbox:Circuit
name: test
properties:
cid: test-cid
circuitProviderId: ${test.circuitProviderId}
circuitTypeId: ${testCircuitType.circuitTypeId}
testCircuitGroup:
type: netbox:CircuitGroup
name: test
properties:
name: test-circuit-group
testCircuitGroupAssignment:
type: netbox:CircuitGroupAssignment
name: test
properties:
circuitGroupId: ${testCircuitGroup.circuitGroupId}
memberType: circuits.circuit
memberId: ${testCircuit.circuitId}
priority: primary
Example coming soon!
Create CircuitGroupAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CircuitGroupAssignment(name: string, args: CircuitGroupAssignmentArgs, opts?: CustomResourceOptions);@overload
def CircuitGroupAssignment(resource_name: str,
args: CircuitGroupAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CircuitGroupAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
circuit_group_id: Optional[float] = None,
member_id: Optional[float] = None,
member_type: Optional[str] = None,
priority: Optional[str] = None,
tags: Optional[Sequence[str]] = None)func NewCircuitGroupAssignment(ctx *Context, name string, args CircuitGroupAssignmentArgs, opts ...ResourceOption) (*CircuitGroupAssignment, error)public CircuitGroupAssignment(string name, CircuitGroupAssignmentArgs args, CustomResourceOptions? opts = null)
public CircuitGroupAssignment(String name, CircuitGroupAssignmentArgs args)
public CircuitGroupAssignment(String name, CircuitGroupAssignmentArgs args, CustomResourceOptions options)
type: netbox:CircuitGroupAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_circuit_group_assignment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CircuitGroupAssignmentArgs
- 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 CircuitGroupAssignmentArgs
- 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 CircuitGroupAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CircuitGroupAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CircuitGroupAssignmentArgs
- 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 circuitGroupAssignmentResource = new Netbox.CircuitGroupAssignment("circuitGroupAssignmentResource", new()
{
CircuitGroupId = 0.0,
MemberId = 0.0,
MemberType = "string",
Priority = "string",
Tags = new[]
{
"string",
},
});
example, err := netbox.NewCircuitGroupAssignment(ctx, "circuitGroupAssignmentResource", &netbox.CircuitGroupAssignmentArgs{
CircuitGroupId: pulumi.Float64(0),
MemberId: pulumi.Float64(0),
MemberType: pulumi.String("string"),
Priority: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "netbox_circuit_group_assignment" "circuitGroupAssignmentResource" {
lifecycle {
create_before_destroy = true
}
circuit_group_id = 0
member_id = 0
member_type = "string"
priority = "string"
tags = ["string"]
}
var circuitGroupAssignmentResource = new CircuitGroupAssignment("circuitGroupAssignmentResource", CircuitGroupAssignmentArgs.builder()
.circuitGroupId(0.0)
.memberId(0.0)
.memberType("string")
.priority("string")
.tags("string")
.build());
circuit_group_assignment_resource = netbox.CircuitGroupAssignment("circuitGroupAssignmentResource",
circuit_group_id=float(0),
member_id=float(0),
member_type="string",
priority="string",
tags=["string"])
const circuitGroupAssignmentResource = new netbox.CircuitGroupAssignment("circuitGroupAssignmentResource", {
circuitGroupId: 0,
memberId: 0,
memberType: "string",
priority: "string",
tags: ["string"],
});
type: netbox:CircuitGroupAssignment
properties:
circuitGroupId: 0
memberId: 0
memberType: string
priority: string
tags:
- string
CircuitGroupAssignment 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 CircuitGroupAssignment resource accepts the following input properties:
- Circuit
Group doubleId - Id of the circuit group the member is assigned to.
- Member
Id double - Id of the assigned circuit or virtual circuit.
- Member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- Priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Circuit
Group float64Id - Id of the circuit group the member is assigned to.
- Member
Id float64 - Id of the assigned circuit or virtual circuit.
- Member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- Priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- circuit_
group_ numberid - Id of the circuit group the member is assigned to.
- member_
id number - Id of the assigned circuit or virtual circuit.
- member_
type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- circuit
Group DoubleId - Id of the circuit group the member is assigned to.
- member
Id Double - Id of the assigned circuit or virtual circuit.
- member
Type String - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority String
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- circuit
Group numberId - Id of the circuit group the member is assigned to.
- member
Id number - Id of the assigned circuit or virtual circuit.
- member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- circuit_
group_ floatid - Id of the circuit group the member is assigned to.
- member_
id float - Id of the assigned circuit or virtual circuit.
- member_
type str - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority str
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- circuit
Group NumberId - Id of the circuit group the member is assigned to.
- member
Id Number - Id of the assigned circuit or virtual circuit.
- member
Type String - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority String
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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 CircuitGroupAssignment resource produces the following output properties:
- Circuit
Group doubleAssignment 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
Group float64Assignment 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_
group_ numberassignment_ 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
Group DoubleAssignment 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
Group numberAssignment 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_
group_ floatassignment_ 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
Group NumberAssignment 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 CircuitGroupAssignment Resource
Get an existing CircuitGroupAssignment 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?: CircuitGroupAssignmentState, opts?: CustomResourceOptions): CircuitGroupAssignment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
circuit_group_assignment_id: Optional[float] = None,
circuit_group_id: Optional[float] = None,
created: Optional[str] = None,
last_updated: Optional[str] = None,
member_id: Optional[float] = None,
member_type: Optional[str] = None,
priority: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
url: Optional[str] = None) -> CircuitGroupAssignmentfunc GetCircuitGroupAssignment(ctx *Context, name string, id IDInput, state *CircuitGroupAssignmentState, opts ...ResourceOption) (*CircuitGroupAssignment, error)public static CircuitGroupAssignment Get(string name, Input<string> id, CircuitGroupAssignmentState? state, CustomResourceOptions? opts = null)public static CircuitGroupAssignment get(String name, Output<String> id, CircuitGroupAssignmentState state, CustomResourceOptions options)resources: _: type: netbox:CircuitGroupAssignment get: id: ${id}import {
to = netbox_circuit_group_assignment.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
Group doubleAssignment Id - NetBox id.
- Circuit
Group doubleId - Id of the circuit group the member is assigned to.
- Created string
- Last
Updated string - Member
Id double - Id of the assigned circuit or virtual circuit.
- Member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- Priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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
- Circuit
Group float64Assignment Id - NetBox id.
- Circuit
Group float64Id - Id of the circuit group the member is assigned to.
- Created string
- Last
Updated string - Member
Id float64 - Id of the assigned circuit or virtual circuit.
- Member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- Priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- []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
- circuit_
group_ numberassignment_ id - NetBox id.
- circuit_
group_ numberid - Id of the circuit group the member is assigned to.
- created string
- last_
updated string - member_
id number - Id of the assigned circuit or virtual circuit.
- member_
type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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
- circuit
Group DoubleAssignment Id - NetBox id.
- circuit
Group DoubleId - Id of the circuit group the member is assigned to.
- created String
- last
Updated String - member
Id Double - Id of the assigned circuit or virtual circuit.
- member
Type String - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority String
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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
- circuit
Group numberAssignment Id - NetBox id.
- circuit
Group numberId - Id of the circuit group the member is assigned to.
- created string
- last
Updated string - member
Id number - Id of the assigned circuit or virtual circuit.
- member
Type string - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority string
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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
- circuit_
group_ floatassignment_ id - NetBox id.
- circuit_
group_ floatid - Id of the circuit group the member is assigned to.
- created str
- last_
updated str - member_
id float - Id of the assigned circuit or virtual circuit.
- member_
type str - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority str
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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
- circuit
Group NumberAssignment Id - NetBox id.
- circuit
Group NumberId - Id of the circuit group the member is assigned to.
- created String
- last
Updated String - member
Id Number - Id of the assigned circuit or virtual circuit.
- member
Type String - Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
- priority String
- Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
- 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_group_assignment.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/circuitGroupAssignment:CircuitGroupAssignment 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