1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getCircuitGroupAssignment
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
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 = 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_group_id: Optional[float] = None,
                                     id: Optional[float] = None,
                                     member_id: Optional[float] = None,
                                     member_type: Optional[str] = None,
                                     priority: Optional[str] = None,
                                     tag_slug: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetCircuitGroupAssignmentResult
    def get_circuit_group_assignment_output(circuit_group_id: pulumi.Input[Optional[float]] = None,
                                     id: pulumi.Input[Optional[float]] = None,
                                     member_id: pulumi.Input[Optional[float]] = None,
                                     member_type: pulumi.Input[Optional[str]] = None,
                                     priority: pulumi.Input[Optional[str]] = None,
                                     tag_slug: pulumi.Input[Optional[str]] = 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:

    CircuitGroupId double
    Id of the circuit group the member is assigned to.
    Id double
    NetBox id.
    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.
    TagSlug string
    Slug of a tag the object carries.
    CircuitGroupId float64
    Id of the circuit group the member is assigned to.
    Id float64
    NetBox id.
    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.
    TagSlug string
    Slug of a tag the object carries.
    circuit_group_id number
    Id of the circuit group the member is assigned to.
    id number
    NetBox id.
    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.
    tag_slug string
    Slug of a tag the object carries.
    circuitGroupId Double
    Id of the circuit group the member is assigned to.
    id Double
    NetBox id.
    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.
    tagSlug String
    Slug of a tag the object carries.
    circuitGroupId number
    Id of the circuit group the member is assigned to.
    id number
    NetBox id.
    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.
    tagSlug string
    Slug of a tag the object carries.
    circuit_group_id float
    Id of the circuit group the member is assigned to.
    id float
    NetBox id.
    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.
    tag_slug str
    Slug of a tag the object carries.
    circuitGroupId Number
    Id of the circuit group the member is assigned to.
    id Number
    NetBox id.
    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.
    tagSlug String
    Slug of a tag the object carries.

    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
    TagSlug string
    Slug of a tag the object carries.
    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
    TagSlug string
    Slug of a tag the object carries.
    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
    tag_slug string
    Slug of a tag the object carries.
    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
    tagSlug String
    Slug of a tag the object carries.
    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
    tagSlug string
    Slug of a tag the object carries.
    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
    tag_slug str
    Slug of a tag the object carries.
    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
    tagSlug String
    Slug of a tag the object carries.

    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.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial