1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getFhrpGroupAssignment
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

    Assignment of an FHRP group to an interface (ipam.fhrpgroupassignment).

    From the official documentation:

    Member device and VM interfaces can be assigned to FHRP groups to indicate their participation in maintaining a common virtual IP address (VIP). For instance, three interfaces, each belonging to a different router, may each be assigned to the same FHRP group to serve a shared VIP. Each of these assignments would typically receive a different priority.

    Interfaces are assigned to FHRP groups under the interface detail view.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getFhrpGroupAssignment({
        id: 123,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_fhrp_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.LookupFhrpGroupAssignment(ctx, &netbox.LookupFhrpGroupAssignmentArgs{
    			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.GetFhrpGroupAssignment.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.GetFhrpGroupAssignmentArgs;
    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.getFhrpGroupAssignment(GetFhrpGroupAssignmentArgs.builder()
                .id(123)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getFhrpGroupAssignment
          arguments:
            id: 123
    
    Example coming soon!
    

    Using getFhrpGroupAssignment

    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 getFhrpGroupAssignment(args: GetFhrpGroupAssignmentArgs, opts?: InvokeOptions): Promise<GetFhrpGroupAssignmentResult>
    function getFhrpGroupAssignmentOutput(args: GetFhrpGroupAssignmentOutputArgs, opts?: InvokeOutputOptions): Output<GetFhrpGroupAssignmentResult>
    def get_fhrp_group_assignment(created: Optional[str] = None,
                                  device_id: Optional[float] = None,
                                  device_name: Optional[str] = None,
                                  group_id: Optional[float] = None,
                                  id: Optional[float] = None,
                                  interface_id: Optional[float] = None,
                                  interface_type: Optional[str] = None,
                                  last_updated: Optional[str] = None,
                                  priority: Optional[float] = None,
                                  virtual_machine_id: Optional[float] = None,
                                  virtual_machine_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetFhrpGroupAssignmentResult
    def get_fhrp_group_assignment_output(created: pulumi.Input[Optional[str]] = None,
                                  device_id: pulumi.Input[Optional[float]] = None,
                                  device_name: pulumi.Input[Optional[str]] = None,
                                  group_id: pulumi.Input[Optional[float]] = None,
                                  id: pulumi.Input[Optional[float]] = None,
                                  interface_id: pulumi.Input[Optional[float]] = None,
                                  interface_type: pulumi.Input[Optional[str]] = None,
                                  last_updated: pulumi.Input[Optional[str]] = None,
                                  priority: pulumi.Input[Optional[float]] = None,
                                  virtual_machine_id: pulumi.Input[Optional[float]] = None,
                                  virtual_machine_name: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetFhrpGroupAssignmentResult]
    func LookupFhrpGroupAssignment(ctx *Context, args *LookupFhrpGroupAssignmentArgs, opts ...InvokeOption) (*LookupFhrpGroupAssignmentResult, error)
    func LookupFhrpGroupAssignmentOutput(ctx *Context, args *LookupFhrpGroupAssignmentOutputArgs, opts ...InvokeOption) LookupFhrpGroupAssignmentResultOutput

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

    public static class GetFhrpGroupAssignment 
    {
        public static Task<GetFhrpGroupAssignmentResult> InvokeAsync(GetFhrpGroupAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetFhrpGroupAssignmentResult> Invoke(GetFhrpGroupAssignmentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetFhrpGroupAssignmentResult> Invoke(GetFhrpGroupAssignmentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetFhrpGroupAssignmentResult> getFhrpGroupAssignment(GetFhrpGroupAssignmentArgs args, InvokeOptions options)
    public static Output<GetFhrpGroupAssignmentResult> getFhrpGroupAssignment(GetFhrpGroupAssignmentArgs args, InvokeOptions options)
    public static Output<GetFhrpGroupAssignmentResult> getFhrpGroupAssignment(GetFhrpGroupAssignmentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getFhrpGroupAssignment:getFhrpGroupAssignment
      arguments:
        # arguments dictionary
    data "netbox_get_fhrp_group_assignment" "name" {
        # arguments
    }

    The following arguments are supported:

    Created string
    DeviceId double
    Id of the device.
    DeviceName string
    Name of the device.
    GroupId double
    Id of the FHRP group.
    Id double
    NetBox id.
    InterfaceId double
    Id of the interface named by interface_type.
    InterfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    LastUpdated string
    Priority double
    Priority of this interface within the group (0-255). Must be a whole number.
    VirtualMachineId double
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    Created string
    DeviceId float64
    Id of the device.
    DeviceName string
    Name of the device.
    GroupId float64
    Id of the FHRP group.
    Id float64
    NetBox id.
    InterfaceId float64
    Id of the interface named by interface_type.
    InterfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    LastUpdated string
    Priority float64
    Priority of this interface within the group (0-255). Must be a whole number.
    VirtualMachineId float64
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    created string
    device_id number
    Id of the device.
    device_name string
    Name of the device.
    group_id number
    Id of the FHRP group.
    id number
    NetBox id.
    interface_id number
    Id of the interface named by interface_type.
    interface_type string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    last_updated string
    priority number
    Priority of this interface within the group (0-255). Must be a whole number.
    virtual_machine_id number
    Id of the virtual machine.
    virtual_machine_name string
    Name of the virtual machine.
    created String
    deviceId Double
    Id of the device.
    deviceName String
    Name of the device.
    groupId Double
    Id of the FHRP group.
    id Double
    NetBox id.
    interfaceId Double
    Id of the interface named by interface_type.
    interfaceType String
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated String
    priority Double
    Priority of this interface within the group (0-255). Must be a whole number.
    virtualMachineId Double
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.
    created string
    deviceId number
    Id of the device.
    deviceName string
    Name of the device.
    groupId number
    Id of the FHRP group.
    id number
    NetBox id.
    interfaceId number
    Id of the interface named by interface_type.
    interfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated string
    priority number
    Priority of this interface within the group (0-255). Must be a whole number.
    virtualMachineId number
    Id of the virtual machine.
    virtualMachineName string
    Name of the virtual machine.
    created str
    device_id float
    Id of the device.
    device_name str
    Name of the device.
    group_id float
    Id of the FHRP group.
    id float
    NetBox id.
    interface_id float
    Id of the interface named by interface_type.
    interface_type str
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    last_updated str
    priority float
    Priority of this interface within the group (0-255). Must be a whole number.
    virtual_machine_id float
    Id of the virtual machine.
    virtual_machine_name str
    Name of the virtual machine.
    created String
    deviceId Number
    Id of the device.
    deviceName String
    Name of the device.
    groupId Number
    Id of the FHRP group.
    id Number
    NetBox id.
    interfaceId Number
    Id of the interface named by interface_type.
    interfaceType String
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated String
    priority Number
    Priority of this interface within the group (0-255). Must be a whole number.
    virtualMachineId Number
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.

    getFhrpGroupAssignment Result

    The following output properties are available:

    Created string
    GroupId double
    Id of the FHRP group.
    Id double
    NetBox id.
    InterfaceId double
    Id of the interface named by interface_type.
    InterfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    LastUpdated string
    Priority double
    Priority of this interface within the group (0-255). Must be a whole number.
    Url string
    DeviceId double
    Id of the device.
    DeviceName string
    Name of the device.
    VirtualMachineId double
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    Created string
    GroupId float64
    Id of the FHRP group.
    Id float64
    NetBox id.
    InterfaceId float64
    Id of the interface named by interface_type.
    InterfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    LastUpdated string
    Priority float64
    Priority of this interface within the group (0-255). Must be a whole number.
    Url string
    DeviceId float64
    Id of the device.
    DeviceName string
    Name of the device.
    VirtualMachineId float64
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    created string
    group_id number
    Id of the FHRP group.
    id number
    NetBox id.
    interface_id number
    Id of the interface named by interface_type.
    interface_type string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    last_updated string
    priority number
    Priority of this interface within the group (0-255). Must be a whole number.
    url string
    device_id number
    Id of the device.
    device_name string
    Name of the device.
    virtual_machine_id number
    Id of the virtual machine.
    virtual_machine_name string
    Name of the virtual machine.
    created String
    groupId Double
    Id of the FHRP group.
    id Double
    NetBox id.
    interfaceId Double
    Id of the interface named by interface_type.
    interfaceType String
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated String
    priority Double
    Priority of this interface within the group (0-255). Must be a whole number.
    url String
    deviceId Double
    Id of the device.
    deviceName String
    Name of the device.
    virtualMachineId Double
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.
    created string
    groupId number
    Id of the FHRP group.
    id number
    NetBox id.
    interfaceId number
    Id of the interface named by interface_type.
    interfaceType string
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated string
    priority number
    Priority of this interface within the group (0-255). Must be a whole number.
    url string
    deviceId number
    Id of the device.
    deviceName string
    Name of the device.
    virtualMachineId number
    Id of the virtual machine.
    virtualMachineName string
    Name of the virtual machine.
    created str
    group_id float
    Id of the FHRP group.
    id float
    NetBox id.
    interface_id float
    Id of the interface named by interface_type.
    interface_type str
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    last_updated str
    priority float
    Priority of this interface within the group (0-255). Must be a whole number.
    url str
    device_id float
    Id of the device.
    device_name str
    Name of the device.
    virtual_machine_id float
    Id of the virtual machine.
    virtual_machine_name str
    Name of the virtual machine.
    created String
    groupId Number
    Id of the FHRP group.
    id Number
    NetBox id.
    interfaceId Number
    Id of the interface named by interface_type.
    interfaceType String
    Type of the interface the group is assigned to, e.g. dcim.interface or virtualization.vminterface.
    lastUpdated String
    priority Number
    Priority of this interface within the group (0-255). Must be a whole number.
    url String
    deviceId Number
    Id of the device.
    deviceName String
    Name of the device.
    virtualMachineId Number
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.

    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