1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getCircuitGroupAssignment
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 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 = netbox.getCircuitGroupAssignment({
        id: 123,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_circuit_group_assignment(id=123)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.LookupCircuitGroupAssignment(ctx, &netbox.LookupCircuitGroupAssignmentArgs{
    			Id: pulumi.Float64Ref(123),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetCircuitGroupAssignment.Invoke(new()
        {
            Id = 123,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetCircuitGroupAssignmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = NetboxFunctions.getCircuitGroupAssignment(GetCircuitGroupAssignmentArgs.builder()
                .id(123)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getCircuitGroupAssignment
          arguments:
            id: 123
    
    Example coming soon!
    

    Using getCircuitGroupAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCircuitGroupAssignment(args: GetCircuitGroupAssignmentArgs, opts?: InvokeOptions): Promise<GetCircuitGroupAssignmentResult>
    function getCircuitGroupAssignmentOutput(args: GetCircuitGroupAssignmentOutputArgs, opts?: InvokeOutputOptions): Output<GetCircuitGroupAssignmentResult>
    def get_circuit_group_assignment(circuit: Optional[str] = None,
                                     circuit_group_id: Optional[float] = None,
                                     circuit_id: Optional[float] = None,
                                     created: Optional[str] = None,
                                     group_slug: Optional[str] = None,
                                     id: Optional[float] = None,
                                     last_updated: Optional[str] = None,
                                     member_id: Optional[float] = None,
                                     member_type: Optional[str] = None,
                                     member_type_id: Optional[float] = None,
                                     priority: Optional[str] = None,
                                     provider_id: Optional[float] = None,
                                     provider_slug: Optional[str] = None,
                                     q: Optional[str] = None,
                                     tag_id: Optional[float] = None,
                                     tag_slug: Optional[str] = None,
                                     virtual_circuit: Optional[str] = None,
                                     virtual_circuit_id: Optional[float] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetCircuitGroupAssignmentResult
    def get_circuit_group_assignment_output(circuit: pulumi.Input[Optional[str]] = None,
                                     circuit_group_id: pulumi.Input[Optional[float]] = None,
                                     circuit_id: pulumi.Input[Optional[float]] = None,
                                     created: pulumi.Input[Optional[str]] = None,
                                     group_slug: pulumi.Input[Optional[str]] = None,
                                     id: pulumi.Input[Optional[float]] = None,
                                     last_updated: pulumi.Input[Optional[str]] = None,
                                     member_id: pulumi.Input[Optional[float]] = None,
                                     member_type: pulumi.Input[Optional[str]] = None,
                                     member_type_id: pulumi.Input[Optional[float]] = None,
                                     priority: pulumi.Input[Optional[str]] = None,
                                     provider_id: pulumi.Input[Optional[float]] = None,
                                     provider_slug: pulumi.Input[Optional[str]] = None,
                                     q: pulumi.Input[Optional[str]] = None,
                                     tag_id: pulumi.Input[Optional[float]] = None,
                                     tag_slug: pulumi.Input[Optional[str]] = None,
                                     virtual_circuit: pulumi.Input[Optional[str]] = None,
                                     virtual_circuit_id: pulumi.Input[Optional[float]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetCircuitGroupAssignmentResult]
    func LookupCircuitGroupAssignment(ctx *Context, args *LookupCircuitGroupAssignmentArgs, opts ...InvokeOption) (*LookupCircuitGroupAssignmentResult, error)
    func LookupCircuitGroupAssignmentOutput(ctx *Context, args *LookupCircuitGroupAssignmentOutputArgs, opts ...InvokeOption) LookupCircuitGroupAssignmentResultOutput

    > Note: This function is named LookupCircuitGroupAssignment in the Go SDK.

    public static class GetCircuitGroupAssignment 
    {
        public static Task<GetCircuitGroupAssignmentResult> InvokeAsync(GetCircuitGroupAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetCircuitGroupAssignmentResult> Invoke(GetCircuitGroupAssignmentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCircuitGroupAssignmentResult> Invoke(GetCircuitGroupAssignmentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCircuitGroupAssignmentResult> getCircuitGroupAssignment(GetCircuitGroupAssignmentArgs args, InvokeOptions options)
    public static Output<GetCircuitGroupAssignmentResult> getCircuitGroupAssignment(GetCircuitGroupAssignmentArgs args, InvokeOptions options)
    public static Output<GetCircuitGroupAssignmentResult> getCircuitGroupAssignment(GetCircuitGroupAssignmentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getCircuitGroupAssignment:getCircuitGroupAssignment
      arguments:
        # arguments dictionary
    data "netbox_get_circuit_group_assignment" "name" {
        # arguments
    }

    The following arguments are supported:

    Circuit string
    Circuit to match.
    CircuitGroupId double
    Id of the circuit group the member is assigned to.
    CircuitId double
    Id of the circuit.
    Created string
    GroupSlug string
    Slug of the circuit group.
    Id double
    NetBox id.
    LastUpdated string
    MemberId double
    Id of the assigned circuit or virtual circuit.
    MemberType string
    Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
    MemberTypeId double
    Id of the member type.
    Priority string
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    ProviderId double
    Id of the provider.
    ProviderSlug string
    Slug of the provider.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualCircuit string
    Virtual circuit to match.
    VirtualCircuitId double
    Id of the virtual circuit.
    Circuit string
    Circuit to match.
    CircuitGroupId float64
    Id of the circuit group the member is assigned to.
    CircuitId float64
    Id of the circuit.
    Created string
    GroupSlug string
    Slug of the circuit group.
    Id float64
    NetBox id.
    LastUpdated string
    MemberId float64
    Id of the assigned circuit or virtual circuit.
    MemberType string
    Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
    MemberTypeId float64
    Id of the member type.
    Priority string
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    ProviderId float64
    Id of the provider.
    ProviderSlug string
    Slug of the provider.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualCircuit string
    Virtual circuit to match.
    VirtualCircuitId float64
    Id of the virtual circuit.
    circuit string
    Circuit to match.
    circuit_group_id number
    Id of the circuit group the member is assigned to.
    circuit_id number
    Id of the circuit.
    created string
    group_slug string
    Slug of the circuit group.
    id number
    NetBox id.
    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.
    member_type_id number
    Id of the member type.
    priority string
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    provider_id number
    Id of the provider.
    provider_slug string
    Slug of the provider.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    virtual_circuit string
    Virtual circuit to match.
    virtual_circuit_id number
    Id of the virtual circuit.
    circuit String
    Circuit to match.
    circuitGroupId Double
    Id of the circuit group the member is assigned to.
    circuitId Double
    Id of the circuit.
    created String
    groupSlug String
    Slug of the circuit group.
    id Double
    NetBox id.
    lastUpdated String
    memberId Double
    Id of the assigned circuit or virtual circuit.
    memberType String
    Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
    memberTypeId Double
    Id of the member type.
    priority String
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    providerId Double
    Id of the provider.
    providerSlug String
    Slug of the provider.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualCircuit String
    Virtual circuit to match.
    virtualCircuitId Double
    Id of the virtual circuit.
    circuit string
    Circuit to match.
    circuitGroupId number
    Id of the circuit group the member is assigned to.
    circuitId number
    Id of the circuit.
    created string
    groupSlug string
    Slug of the circuit group.
    id number
    NetBox id.
    lastUpdated string
    memberId number
    Id of the assigned circuit or virtual circuit.
    memberType string
    Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
    memberTypeId number
    Id of the member type.
    priority string
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    providerId number
    Id of the provider.
    providerSlug string
    Slug of the provider.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    virtualCircuit string
    Virtual circuit to match.
    virtualCircuitId number
    Id of the virtual circuit.
    circuit str
    Circuit to match.
    circuit_group_id float
    Id of the circuit group the member is assigned to.
    circuit_id float
    Id of the circuit.
    created str
    group_slug str
    Slug of the circuit group.
    id float
    NetBox id.
    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.
    member_type_id float
    Id of the member type.
    priority str
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    provider_id float
    Id of the provider.
    provider_slug str
    Slug of the provider.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    virtual_circuit str
    Virtual circuit to match.
    virtual_circuit_id float
    Id of the virtual circuit.
    circuit String
    Circuit to match.
    circuitGroupId Number
    Id of the circuit group the member is assigned to.
    circuitId Number
    Id of the circuit.
    created String
    groupSlug String
    Slug of the circuit group.
    id Number
    NetBox id.
    lastUpdated String
    memberId Number
    Id of the assigned circuit or virtual circuit.
    memberType String
    Content type of the assigned member. One of: circuits.circuit, circuits.virtualcircuit.
    memberTypeId Number
    Id of the member type.
    priority String
    Priority of this member within the group. One of: primary, secondary, tertiary, inactive.
    providerId Number
    Id of the provider.
    providerSlug String
    Slug of the provider.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualCircuit String
    Virtual circuit to match.
    virtualCircuitId Number
    Id of the virtual circuit.

    getCircuitGroupAssignment Result

    The following output properties are available:

    CircuitGroupId double
    Id of the circuit group the member is assigned to.
    Created string
    Id double
    NetBox id.
    LastUpdated string
    MemberId double
    Id of the assigned circuit or virtual circuit.
    MemberType 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.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Circuit string
    Circuit to match.
    CircuitId double
    Id of the circuit.
    GroupSlug string
    Slug of the circuit group.
    MemberTypeId double
    Id of the member type.
    ProviderId double
    Id of the provider.
    ProviderSlug string
    Slug of the provider.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualCircuit string
    Virtual circuit to match.
    VirtualCircuitId double
    Id of the virtual circuit.
    CircuitGroupId float64
    Id of the circuit group the member is assigned to.
    Created string
    Id float64
    NetBox id.
    LastUpdated string
    MemberId float64
    Id of the assigned circuit or virtual circuit.
    MemberType 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.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Circuit string
    Circuit to match.
    CircuitId float64
    Id of the circuit.
    GroupSlug string
    Slug of the circuit group.
    MemberTypeId float64
    Id of the member type.
    ProviderId float64
    Id of the provider.
    ProviderSlug string
    Slug of the provider.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualCircuit string
    Virtual circuit to match.
    VirtualCircuitId float64
    Id of the virtual circuit.
    circuit_group_id number
    Id of the circuit group the member is assigned to.
    created string
    id number
    NetBox id.
    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    circuit string
    Circuit to match.
    circuit_id number
    Id of the circuit.
    group_slug string
    Slug of the circuit group.
    member_type_id number
    Id of the member type.
    provider_id number
    Id of the provider.
    provider_slug string
    Slug of the provider.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    virtual_circuit string
    Virtual circuit to match.
    virtual_circuit_id number
    Id of the virtual circuit.
    circuitGroupId Double
    Id of the circuit group the member is assigned to.
    created String
    id Double
    NetBox id.
    lastUpdated String
    memberId Double
    Id of the assigned circuit or virtual circuit.
    memberType 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.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    circuit String
    Circuit to match.
    circuitId Double
    Id of the circuit.
    groupSlug String
    Slug of the circuit group.
    memberTypeId Double
    Id of the member type.
    providerId Double
    Id of the provider.
    providerSlug String
    Slug of the provider.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualCircuit String
    Virtual circuit to match.
    virtualCircuitId Double
    Id of the virtual circuit.
    circuitGroupId number
    Id of the circuit group the member is assigned to.
    created string
    id number
    NetBox id.
    lastUpdated string
    memberId number
    Id of the assigned circuit or virtual circuit.
    memberType 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.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    circuit string
    Circuit to match.
    circuitId number
    Id of the circuit.
    groupSlug string
    Slug of the circuit group.
    memberTypeId number
    Id of the member type.
    providerId number
    Id of the provider.
    providerSlug string
    Slug of the provider.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    virtualCircuit string
    Virtual circuit to match.
    virtualCircuitId number
    Id of the virtual circuit.
    circuit_group_id float
    Id of the circuit group the member is assigned to.
    created str
    id float
    NetBox id.
    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    circuit str
    Circuit to match.
    circuit_id float
    Id of the circuit.
    group_slug str
    Slug of the circuit group.
    member_type_id float
    Id of the member type.
    provider_id float
    Id of the provider.
    provider_slug str
    Slug of the provider.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    virtual_circuit str
    Virtual circuit to match.
    virtual_circuit_id float
    Id of the virtual circuit.
    circuitGroupId Number
    Id of the circuit group the member is assigned to.
    created String
    id Number
    NetBox id.
    lastUpdated String
    memberId Number
    Id of the assigned circuit or virtual circuit.
    memberType 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.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    circuit String
    Circuit to match.
    circuitId Number
    Id of the circuit.
    groupSlug String
    Slug of the circuit group.
    memberTypeId Number
    Id of the member type.
    providerId Number
    Id of the provider.
    providerSlug String
    Slug of the provider.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualCircuit String
    Virtual circuit to match.
    virtualCircuitId Number
    Id of the virtual circuit.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial