Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
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
published on Wednesday, Nov 4, 2026 by e-breuninger
Lists event_rule objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getEventRules({
filters: [{
name: "name",
value: "test-event_rule",
}],
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_event_rules(filters=[{
"name": "name",
"value": "test-event_rule",
}])
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.GetEventRules(ctx, &netbox.GetEventRulesArgs{
Filters: []netbox.GetEventRulesFilter{
{
Name: "name",
Value: "test-event_rule",
},
},
}, 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.GetEventRules.Invoke(new()
{
Filters = new[]
{
new Netbox.Inputs.GetEventRulesFilterInputArgs
{
Name = "name",
Value = "test-event_rule",
},
},
});
});
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.GetEventRulesArgs;
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.getEventRules(GetEventRulesArgs.builder()
.filters(GetEventRulesFilterArgs.builder()
.name("name")
.value("test-event_rule")
.build())
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getEventRules
arguments:
filters:
- name: name
value: test-event_rule
Example coming soon!
Using getEventRules
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 getEventRules(args: GetEventRulesArgs, opts?: InvokeOptions): Promise<GetEventRulesResult>
function getEventRulesOutput(args: GetEventRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetEventRulesResult>def get_event_rules(filters: Optional[Sequence[GetEventRulesFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetEventRulesResult
def get_event_rules_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetEventRulesFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetEventRulesResult]func GetEventRules(ctx *Context, args *GetEventRulesArgs, opts ...InvokeOption) (*GetEventRulesResult, error)
func GetEventRulesOutput(ctx *Context, args *GetEventRulesOutputArgs, opts ...InvokeOption) GetEventRulesResultOutput> Note: This function is named GetEventRules in the Go SDK.
public static class GetEventRules
{
public static Task<GetEventRulesResult> InvokeAsync(GetEventRulesArgs args, InvokeOptions? opts = null)
public static Output<GetEventRulesResult> Invoke(GetEventRulesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetEventRulesResult> Invoke(GetEventRulesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetEventRulesResult> getEventRules(GetEventRulesArgs args, InvokeOptions options)
public static Output<GetEventRulesResult> getEventRules(GetEventRulesArgs args, InvokeOptions options)
public static Output<GetEventRulesResult> getEventRules(GetEventRulesArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getEventRules:getEventRules
arguments:
# arguments dictionarydata "netbox_get_event_rules" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Event Rules Filter> - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Filters
[]Get
Event Rules Filter - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
List<Get
Event Rules Filter> - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Get
Event Rules Filter[] - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Sequence[Get
Event Rules Filter] - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
getEventRules Result
The following output properties are available:
- Event
Rules List<GetEvent Rules Event Rule> - The matching event*rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Event Rules Filter> - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Event
Rules []GetEvent Rules Event Rule - The matching event*rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Event Rules Filter - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- event_
rules list(object) - The matching event*rules.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- event
Rules List<GetEvent Rules Event Rule> - The matching event*rules.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Event Rules Filter> - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- event
Rules GetEvent Rules Event Rule[] - The matching event*rules.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Event Rules Filter[] - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- event_
rules Sequence[GetEvent Rules Event Rule] - The matching event*rules.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Event Rules Filter] - Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- event
Rules List<Property Map> - The matching event*rules.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: actiontype, actiontypeempty, action_typeic, action_typeie, action_typeiew, action_typeiregex, action_typeisw, action_typen, action_typenic, action_typenie, action_typeniew, action_typenisw, action_typeregex, enabled, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tag_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
Supporting Types
GetEventRulesEventRule
- Action
Object doubleId - Id of the webhook or script to run.
- Action
Object stringType - Content type of the action object: extras.webhook or extras.script.
- Action
Type string - What the rule runs. One of: webhook, script, notification.
- Conditions string
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- Created string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Enabled bool
- Whether the rule fires.
- Event
Types List<string> - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- Id double
- NetBox id.
- Last
Updated string - Name string
- Object
Types List<string> - Object types the rule watches, as app-labelled content types (dcim.device).
- Owner
Id double - Id of the owner the object is assigned to.
- 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
- Action
Object float64Id - Id of the webhook or script to run.
- Action
Object stringType - Content type of the action object: extras.webhook or extras.script.
- Action
Type string - What the rule runs. One of: webhook, script, notification.
- Conditions string
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- Created string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Enabled bool
- Whether the rule fires.
- Event
Types []string - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- Id float64
- NetBox id.
- Last
Updated string - Name string
- Object
Types []string - Object types the rule watches, as app-labelled content types (dcim.device).
- Owner
Id float64 - Id of the owner the object is assigned to.
- []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
- action_
object_ numberid - Id of the webhook or script to run.
- action_
object_ stringtype - Content type of the action object: extras.webhook or extras.script.
- action_
type string - What the rule runs. One of: webhook, script, notification.
- conditions string
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- created string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- enabled bool
- Whether the rule fires.
- event_
types list(string) - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- id number
- NetBox id.
- last_
updated string - name string
- object_
types list(string) - Object types the rule watches, as app-labelled content types (dcim.device).
- owner_
id number - Id of the owner the object is assigned to.
- 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
- action
Object DoubleId - Id of the webhook or script to run.
- action
Object StringType - Content type of the action object: extras.webhook or extras.script.
- action
Type String - What the rule runs. One of: webhook, script, notification.
- conditions String
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- created String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- enabled Boolean
- Whether the rule fires.
- event
Types List<String> - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- id Double
- NetBox id.
- last
Updated String - name String
- object
Types List<String> - Object types the rule watches, as app-labelled content types (dcim.device).
- owner
Id Double - Id of the owner the object is assigned to.
- 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
- action
Object numberId - Id of the webhook or script to run.
- action
Object stringType - Content type of the action object: extras.webhook or extras.script.
- action
Type string - What the rule runs. One of: webhook, script, notification.
- conditions string
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- created string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- enabled boolean
- Whether the rule fires.
- event
Types string[] - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- id number
- NetBox id.
- last
Updated string - name string
- object
Types string[] - Object types the rule watches, as app-labelled content types (dcim.device).
- owner
Id number - Id of the owner the object is assigned to.
- 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
- action_
object_ floatid - Id of the webhook or script to run.
- action_
object_ strtype - Content type of the action object: extras.webhook or extras.script.
- action_
type str - What the rule runs. One of: webhook, script, notification.
- conditions str
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- created str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- enabled bool
- Whether the rule fires.
- event_
types Sequence[str] - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- id float
- NetBox id.
- last_
updated str - name str
- object_
types Sequence[str] - Object types the rule watches, as app-labelled content types (dcim.device).
- owner_
id float - Id of the owner the object is assigned to.
- 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
- action
Object NumberId - Id of the webhook or script to run.
- action
Object StringType - Content type of the action object: extras.webhook or extras.script.
- action
Type String - What the rule runs. One of: webhook, script, notification.
- conditions String
- Conditions the changed object must satisfy, as JSON text (use jsonencode()).
- created String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- enabled Boolean
- Whether the rule fires.
- event
Types List<String> - Events that trigger the rule: objectcreated, objectupdated, objectdeleted, jobstarted, jobcompleted, jobfailed or job_errored.
- id Number
- NetBox id.
- last
Updated String - name String
- object
Types List<String> - Object types the rule watches, as app-labelled content types (dcim.device).
- owner
Id Number - Id of the owner the object is assigned to.
- 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
GetEventRulesFilter
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger