1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getMonitorAlertDefinitionEntities
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Retrieves the entities associated with a specific Monitor Alert Definition. For more information, see the Linode APIv4 docs. (Note: v4beta only.)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const test = linode.getMonitorAlertDefinitionEntities({
        serviceType: "dbaas",
        alertId: 123,
    });
    
    import pulumi
    import pulumi_linode as linode
    
    test = linode.get_monitor_alert_definition_entities(service_type="dbaas",
        alert_id=123)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetMonitorAlertDefinitionEntities(ctx, &linode.LookupMonitorAlertDefinitionEntitiesArgs{
    			ServiceType: "dbaas",
    			AlertId:     123,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Linode.GetMonitorAlertDefinitionEntities.Invoke(new()
        {
            ServiceType = "dbaas",
            AlertId = 123,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetMonitorAlertDefinitionEntitiesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = LinodeFunctions.getMonitorAlertDefinitionEntities(GetMonitorAlertDefinitionEntitiesArgs.builder()
                .serviceType("dbaas")
                .alertId(123)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: linode:getMonitorAlertDefinitionEntities
          arguments:
            serviceType: dbaas
            alertId: 123
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getmonitoralertdefinitionentities" "test" {
      service_type = "dbaas"
      alert_id     = 123
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const test = linode.getMonitorAlertDefinitionEntities({
        serviceType: "dbaas",
        alertId: 123,
        filters: [{
            name: "type",
            values: ["dbaas"],
        }],
    });
    
    import pulumi
    import pulumi_linode as linode
    
    test = linode.get_monitor_alert_definition_entities(service_type="dbaas",
        alert_id=123,
        filters=[{
            "name": "type",
            "values": ["dbaas"],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetMonitorAlertDefinitionEntities(ctx, &linode.LookupMonitorAlertDefinitionEntitiesArgs{
    			ServiceType: "dbaas",
    			AlertId:     123,
    			Filters: []linode.GetMonitorAlertDefinitionEntitiesFilter{
    				{
    					Name: "type",
    					Values: []string{
    						"dbaas",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Linode.GetMonitorAlertDefinitionEntities.Invoke(new()
        {
            ServiceType = "dbaas",
            AlertId = 123,
            Filters = new[]
            {
                new Linode.Inputs.GetMonitorAlertDefinitionEntitiesFilterInputArgs
                {
                    Name = "type",
                    Values = new[]
                    {
                        "dbaas",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetMonitorAlertDefinitionEntitiesArgs;
    import com.pulumi.linode.inputs.GetMonitorAlertDefinitionEntitiesFilterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = LinodeFunctions.getMonitorAlertDefinitionEntities(GetMonitorAlertDefinitionEntitiesArgs.builder()
                .serviceType("dbaas")
                .alertId(123)
                .filters(GetMonitorAlertDefinitionEntitiesFilterArgs.builder()
                    .name("type")
                    .values("dbaas")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: linode:getMonitorAlertDefinitionEntities
          arguments:
            serviceType: dbaas
            alertId: 123
            filters:
              - name: type
                values:
                  - dbaas
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getmonitoralertdefinitionentities" "test" {
      service_type = "dbaas"
      alert_id     = 123
      filters {
        name   = "type"
        values = ["dbaas"]
      }
    }
    

    Filterable Fields

    • id

    • label

    • type

    • url

    Using getMonitorAlertDefinitionEntities

    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 getMonitorAlertDefinitionEntities(args: GetMonitorAlertDefinitionEntitiesArgs, opts?: InvokeOptions): Promise<GetMonitorAlertDefinitionEntitiesResult>
    function getMonitorAlertDefinitionEntitiesOutput(args: GetMonitorAlertDefinitionEntitiesOutputArgs, opts?: InvokeOutputOptions): Output<GetMonitorAlertDefinitionEntitiesResult>
    def get_monitor_alert_definition_entities(alert_id: Optional[int] = None,
                                              filters: Optional[Sequence[GetMonitorAlertDefinitionEntitiesFilter]] = None,
                                              service_type: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetMonitorAlertDefinitionEntitiesResult
    def get_monitor_alert_definition_entities_output(alert_id: pulumi.Input[Optional[int]] = None,
                                              filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetMonitorAlertDefinitionEntitiesFilterArgs]]]] = None,
                                              service_type: pulumi.Input[Optional[str]] = None,
                                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetMonitorAlertDefinitionEntitiesResult]
    func LookupMonitorAlertDefinitionEntities(ctx *Context, args *LookupMonitorAlertDefinitionEntitiesArgs, opts ...InvokeOption) (*LookupMonitorAlertDefinitionEntitiesResult, error)
    func LookupMonitorAlertDefinitionEntitiesOutput(ctx *Context, args *LookupMonitorAlertDefinitionEntitiesOutputArgs, opts ...InvokeOption) LookupMonitorAlertDefinitionEntitiesResultOutput

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

    public static class GetMonitorAlertDefinitionEntities 
    {
        public static Task<GetMonitorAlertDefinitionEntitiesResult> InvokeAsync(GetMonitorAlertDefinitionEntitiesArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorAlertDefinitionEntitiesResult> Invoke(GetMonitorAlertDefinitionEntitiesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorAlertDefinitionEntitiesResult> Invoke(GetMonitorAlertDefinitionEntitiesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMonitorAlertDefinitionEntitiesResult> getMonitorAlertDefinitionEntities(GetMonitorAlertDefinitionEntitiesArgs args, InvokeOptions options)
    public static Output<GetMonitorAlertDefinitionEntitiesResult> getMonitorAlertDefinitionEntities(GetMonitorAlertDefinitionEntitiesArgs args, InvokeOptions options)
    public static Output<GetMonitorAlertDefinitionEntitiesResult> getMonitorAlertDefinitionEntities(GetMonitorAlertDefinitionEntitiesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getMonitorAlertDefinitionEntities:getMonitorAlertDefinitionEntities
      arguments:
        # arguments dictionary
    data "linode_get_monitor_alert_definition_entities" "name" {
        # arguments
    }

    The following arguments are supported:

    AlertId int
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    ServiceType string
    The service type for the alert definition (e.g., dbaas).
    Filters List<GetMonitorAlertDefinitionEntitiesFilter>
    AlertId int
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    ServiceType string
    The service type for the alert definition (e.g., dbaas).
    Filters []GetMonitorAlertDefinitionEntitiesFilter
    alert_id number
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    service_type string
    The service type for the alert definition (e.g., dbaas).
    filters list(object)
    alertId Integer
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    serviceType String
    The service type for the alert definition (e.g., dbaas).
    filters List<GetMonitorAlertDefinitionEntitiesFilter>
    alertId number
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    serviceType string
    The service type for the alert definition (e.g., dbaas).
    filters GetMonitorAlertDefinitionEntitiesFilter[]
    alert_id int
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    service_type str
    The service type for the alert definition (e.g., dbaas).
    filters Sequence[GetMonitorAlertDefinitionEntitiesFilter]
    alertId Number
    The unique identifier for the alert definition.

    • filter - (Optional, Block Set) A set of filters used to select entities that meet certain requirements.
    serviceType String
    The service type for the alert definition (e.g., dbaas).
    filters List<Property Map>

    getMonitorAlertDefinitionEntities Result

    The following output properties are available:

    AlertId int
    Entities List<GetMonitorAlertDefinitionEntitiesEntity>
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    Id string
    The unique identifier for this entity.
    ServiceType string
    Filters List<GetMonitorAlertDefinitionEntitiesFilter>
    AlertId int
    Entities []GetMonitorAlertDefinitionEntitiesEntity
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    Id string
    The unique identifier for this entity.
    ServiceType string
    Filters []GetMonitorAlertDefinitionEntitiesFilter
    alert_id number
    entities list(object)
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    id string
    The unique identifier for this entity.
    service_type string
    filters list(object)
    alertId Integer
    entities List<GetMonitorAlertDefinitionEntitiesEntity>
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    id String
    The unique identifier for this entity.
    serviceType String
    filters List<GetMonitorAlertDefinitionEntitiesFilter>
    alertId number
    entities GetMonitorAlertDefinitionEntitiesEntity[]
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    id string
    The unique identifier for this entity.
    serviceType string
    filters GetMonitorAlertDefinitionEntitiesFilter[]
    alert_id int
    entities Sequence[GetMonitorAlertDefinitionEntitiesEntity]
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    id str
    The unique identifier for this entity.
    service_type str
    filters Sequence[GetMonitorAlertDefinitionEntitiesFilter]
    alertId Number
    entities List<Property Map>
    (Nested Attribute List) The returned list of entities associated with the alert definition. Referenced by index (e.g. entities[0].id).
    id String
    The unique identifier for this entity.
    serviceType String
    filters List<Property Map>

    Supporting Types

    GetMonitorAlertDefinitionEntitiesEntity

    Id string
    The unique identifier for this entity.
    Label string
    The label of this entity.
    Type string
    The type of this entity.
    Url string
    The URL for this entity.
    Id string
    The unique identifier for this entity.
    Label string
    The label of this entity.
    Type string
    The type of this entity.
    Url string
    The URL for this entity.
    id string
    The unique identifier for this entity.
    label string
    The label of this entity.
    type string
    The type of this entity.
    url string
    The URL for this entity.
    id String
    The unique identifier for this entity.
    label String
    The label of this entity.
    type String
    The type of this entity.
    url String
    The URL for this entity.
    id string
    The unique identifier for this entity.
    label string
    The label of this entity.
    type string
    The type of this entity.
    url string
    The URL for this entity.
    id str
    The unique identifier for this entity.
    label str
    The label of this entity.
    type str
    The type of this entity.
    url str
    The URL for this entity.
    id String
    The unique identifier for this entity.
    label String
    The label of this entity.
    type String
    The type of this entity.
    url String
    The URL for this entity.

    GetMonitorAlertDefinitionEntitiesFilter

    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values List<string>
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    Name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    Values []string
    A list of values for the filter to allow. These values should all be in string form.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values list(string)
    A list of values for the filter to allow. These values should all be in string form.
    match_by string
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)
    name string
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values string[]
    A list of values for the filter to allow. These values should all be in string form.
    matchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    name str
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values Sequence[str]
    A list of values for the filter to allow. These values should all be in string form.
    match_by str
    The method to match the field by. (exact, regex, substring; default exact)
    name String
    The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
    values List<String>
    A list of values for the filter to allow. These values should all be in string form.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo linode logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial