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

    A group of users and groups that event rules can notify (extras.notificationgroup).

    From the official documentation:

    A set of NetBox users and/or groups of users identified as recipients for certain notifications.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Group("test", {name: "test-group"});
    const testUser = new netbox.User("test", {
        username: "test-user",
        password: "test-password",
    });
    const testNotificationGroup = new netbox.NotificationGroup("test", {
        name: "test-notification-group",
        description: "test-description",
        groupIds: [test.groupId],
        userIds: [testUser.userId],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Group("test", name="test-group")
    test_user = netbox.User("test",
        username="test-user",
        password="test-password")
    test_notification_group = netbox.NotificationGroup("test",
        name="test-notification-group",
        description="test-description",
        group_ids=[test.group_id],
        user_ids=[test_user.user_id])
    
    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.NewGroup(ctx, "test", &netbox.GroupArgs{
    			Name: pulumi.String("test-group"),
    		})
    		if err != nil {
    			return err
    		}
    		testUser, err := netbox.NewUser(ctx, "test", &netbox.UserArgs{
    			Username: pulumi.String("test-user"),
    			Password: pulumi.String("test-password"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewNotificationGroup(ctx, "test", &netbox.NotificationGroupArgs{
    			Name:        pulumi.String("test-notification-group"),
    			Description: pulumi.String("test-description"),
    			GroupIds: pulumi.Float64Array{
    				test.GroupId,
    			},
    			UserIds: pulumi.Float64Array{
    				testUser.UserId,
    			},
    		})
    		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.Group("test", new()
        {
            Name = "test-group",
        });
    
        var testUser = new Netbox.User("test", new()
        {
            Username = "test-user",
            Password = "test-password",
        });
    
        var testNotificationGroup = new Netbox.NotificationGroup("test", new()
        {
            Name = "test-notification-group",
            Description = "test-description",
            GroupIds = new[]
            {
                test.GroupId,
            },
            UserIds = new[]
            {
                testUser.UserId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Group;
    import com.pulumi.netbox.GroupArgs;
    import com.pulumi.netbox.User;
    import com.pulumi.netbox.UserArgs;
    import com.pulumi.netbox.NotificationGroup;
    import com.pulumi.netbox.NotificationGroupArgs;
    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 Group("test", GroupArgs.builder()
                .name("test-group")
                .build());
    
            var testUser = new User("testUser", UserArgs.builder()
                .username("test-user")
                .password("test-password")
                .build());
    
            var testNotificationGroup = new NotificationGroup("testNotificationGroup", NotificationGroupArgs.builder()
                .name("test-notification-group")
                .description("test-description")
                .groupIds(test.groupId())
                .userIds(testUser.userId())
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Group
        properties:
          name: test-group
      testUser:
        type: netbox:User
        name: test
        properties:
          username: test-user
          password: test-password
      testNotificationGroup:
        type: netbox:NotificationGroup
        name: test
        properties:
          name: test-notification-group
          description: test-description
          groupIds:
            - ${test.groupId}
          userIds:
            - ${testUser.userId}
    
    Example coming soon!
    

    Create NotificationGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NotificationGroup(name: string, args?: NotificationGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationGroup(resource_name: str,
                          args: Optional[NotificationGroupArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationGroup(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          group_ids: Optional[Sequence[float]] = None,
                          name: Optional[str] = None,
                          user_ids: Optional[Sequence[float]] = None)
    func NewNotificationGroup(ctx *Context, name string, args *NotificationGroupArgs, opts ...ResourceOption) (*NotificationGroup, error)
    public NotificationGroup(string name, NotificationGroupArgs? args = null, CustomResourceOptions? opts = null)
    public NotificationGroup(String name, NotificationGroupArgs args)
    public NotificationGroup(String name, NotificationGroupArgs args, CustomResourceOptions options)
    
    type: netbox:NotificationGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_notification_group" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NotificationGroupArgs
    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 NotificationGroupArgs
    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 NotificationGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationGroupArgs
    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 notificationGroupResource = new Netbox.NotificationGroup("notificationGroupResource", new()
    {
        Description = "string",
        GroupIds = new[]
        {
            0.0,
        },
        Name = "string",
        UserIds = new[]
        {
            0.0,
        },
    });
    
    example, err := netbox.NewNotificationGroup(ctx, "notificationGroupResource", &netbox.NotificationGroupArgs{
    	Description: pulumi.String("string"),
    	GroupIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	Name: pulumi.String("string"),
    	UserIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    })
    
    resource "netbox_notification_group" "notificationGroupResource" {
      lifecycle {
        create_before_destroy = true
      }
      description = "string"
      group_ids   = [0]
      name        = "string"
      user_ids    = [0]
    }
    
    var notificationGroupResource = new NotificationGroup("notificationGroupResource", NotificationGroupArgs.builder()
        .description("string")
        .groupIds(0.0)
        .name("string")
        .userIds(0.0)
        .build());
    
    notification_group_resource = netbox.NotificationGroup("notificationGroupResource",
        description="string",
        group_ids=[float(0)],
        name="string",
        user_ids=[float(0)])
    
    const notificationGroupResource = new netbox.NotificationGroup("notificationGroupResource", {
        description: "string",
        groupIds: [0],
        name: "string",
        userIds: [0],
    });
    
    type: netbox:NotificationGroup
    properties:
        description: string
        groupIds:
            - 0
        name: string
        userIds:
            - 0
    

    NotificationGroup 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 NotificationGroup resource accepts the following input properties:

    Description string
    GroupIds List<double>
    Ids of the user groups notified.
    Name string
    UserIds List<double>
    Ids of the users notified.
    Description string
    GroupIds []float64
    Ids of the user groups notified.
    Name string
    UserIds []float64
    Ids of the users notified.
    description string
    group_ids list(number)
    Ids of the user groups notified.
    name string
    user_ids list(number)
    Ids of the users notified.
    description String
    groupIds List<Double>
    Ids of the user groups notified.
    name String
    userIds List<Double>
    Ids of the users notified.
    description string
    groupIds number[]
    Ids of the user groups notified.
    name string
    userIds number[]
    Ids of the users notified.
    description str
    group_ids Sequence[float]
    Ids of the user groups notified.
    name str
    user_ids Sequence[float]
    Ids of the users notified.
    description String
    groupIds List<Number>
    Ids of the user groups notified.
    name String
    userIds List<Number>
    Ids of the users notified.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotificationGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    NotificationGroupId double
    NetBox id.
    Url string
    Id string
    The provider-assigned unique ID for this managed resource.
    NotificationGroupId float64
    NetBox id.
    Url string
    id string
    The provider-assigned unique ID for this managed resource.
    notification_group_id number
    NetBox id.
    url string
    id String
    The provider-assigned unique ID for this managed resource.
    notificationGroupId Double
    NetBox id.
    url String
    id string
    The provider-assigned unique ID for this managed resource.
    notificationGroupId number
    NetBox id.
    url string
    id str
    The provider-assigned unique ID for this managed resource.
    notification_group_id float
    NetBox id.
    url str
    id String
    The provider-assigned unique ID for this managed resource.
    notificationGroupId Number
    NetBox id.
    url String

    Look up Existing NotificationGroup Resource

    Get an existing NotificationGroup 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?: NotificationGroupState, opts?: CustomResourceOptions): NotificationGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            group_ids: Optional[Sequence[float]] = None,
            name: Optional[str] = None,
            notification_group_id: Optional[float] = None,
            url: Optional[str] = None,
            user_ids: Optional[Sequence[float]] = None) -> NotificationGroup
    func GetNotificationGroup(ctx *Context, name string, id IDInput, state *NotificationGroupState, opts ...ResourceOption) (*NotificationGroup, error)
    public static NotificationGroup Get(string name, Input<string> id, NotificationGroupState? state, CustomResourceOptions? opts = null)
    public static NotificationGroup get(String name, Output<String> id, NotificationGroupState state, CustomResourceOptions options)
    resources:  _:    type: netbox:NotificationGroup    get:      id: ${id}
    import {
      to = netbox_notification_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.
    The following state arguments are supported:
    Description string
    GroupIds List<double>
    Ids of the user groups notified.
    Name string
    NotificationGroupId double
    NetBox id.
    Url string
    UserIds List<double>
    Ids of the users notified.
    Description string
    GroupIds []float64
    Ids of the user groups notified.
    Name string
    NotificationGroupId float64
    NetBox id.
    Url string
    UserIds []float64
    Ids of the users notified.
    description string
    group_ids list(number)
    Ids of the user groups notified.
    name string
    notification_group_id number
    NetBox id.
    url string
    user_ids list(number)
    Ids of the users notified.
    description String
    groupIds List<Double>
    Ids of the user groups notified.
    name String
    notificationGroupId Double
    NetBox id.
    url String
    userIds List<Double>
    Ids of the users notified.
    description string
    groupIds number[]
    Ids of the user groups notified.
    name string
    notificationGroupId number
    NetBox id.
    url string
    userIds number[]
    Ids of the users notified.
    description str
    group_ids Sequence[float]
    Ids of the user groups notified.
    name str
    notification_group_id float
    NetBox id.
    url str
    user_ids Sequence[float]
    Ids of the users notified.
    description String
    groupIds List<Number>
    Ids of the user groups notified.
    name String
    notificationGroupId Number
    NetBox id.
    url String
    userIds List<Number>
    Ids of the users notified.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = netbox_notification_group.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/notificationGroup:NotificationGroup 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 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