Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
published on Tuesday, Sep 15, 2026 by Pulumi
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
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
idlabeltypeurl
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 dictionarydata "linode_get_monitor_alert_definition_entities" "name" {
# arguments
}The following arguments are supported:
- 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 string - The service type for the alert definition (e.g.,
dbaas). - Filters
List<Get
Monitor Alert Definition Entities Filter>
- 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 string - The service type for the alert definition (e.g.,
dbaas). - Filters
[]Get
Monitor Alert Definition Entities Filter
- 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)
- alert
Id Integer - 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<Get
Monitor Alert Definition Entities Filter>
- 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
Get
Monitor Alert Definition Entities Filter[]
- 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[Get
Monitor Alert Definition Entities Filter]
- 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<Property Map>
getMonitorAlertDefinitionEntities Result
The following output properties are available:
- Alert
Id int - Entities
List<Get
Monitor Alert Definition Entities Entity> - (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<Get
Monitor Alert Definition Entities Filter>
- Alert
Id int - Entities
[]Get
Monitor Alert Definition Entities Entity - (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
[]Get
Monitor Alert Definition Entities Filter
- 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)
- alert
Id Integer - entities
List<Get
Monitor Alert Definition Entities Entity> - (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<Get
Monitor Alert Definition Entities Filter>
- alert
Id number - entities
Get
Monitor Alert Definition Entities Entity[] - (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
Get
Monitor Alert Definition Entities Filter[]
- alert_
id int - entities
Sequence[Get
Monitor Alert Definition Entities Entity] - (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[Get
Monitor Alert Definition Entities Filter]
- alert
Id 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.
- service
Type String - filters List<Property Map>
Supporting Types
GetMonitorAlertDefinitionEntitiesEntity
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.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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; defaultexact)
- 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; defaultexact)
- 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.
- match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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; defaultexact)
- 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; defaultexact)
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
published on Tuesday, Sep 15, 2026 by Pulumi