Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse
dynatrace.getEntities
Explore with Pulumi AI
The entities data source allows all entities to be retrieved by its type.
type
(String) Type of the entity, e.g. SERVICE. All available entity types can be retrieved with /api/v2/entityTypes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumi/dynatrace";
const test = dynatrace.getEntities({
type: "SERVICE",
});
export const serviceList = test.then(test => test.entities);
import pulumi
import pulumi_dynatrace as dynatrace
test = dynatrace.get_entities(type="SERVICE")
pulumi.export("serviceList", test.entities)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := dynatrace.GetEntities(ctx, &dynatrace.GetEntitiesArgs{
Type: pulumi.StringRef("SERVICE"),
}, nil)
if err != nil {
return err
}
ctx.Export("serviceList", test.Entities)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumi.Dynatrace;
return await Deployment.RunAsync(() =>
{
var test = Dynatrace.GetEntities.Invoke(new()
{
Type = "SERVICE",
});
return new Dictionary<string, object?>
{
["serviceList"] = test.Apply(getEntitiesResult => getEntitiesResult.Entities),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DynatraceFunctions;
import com.pulumi.dynatrace.inputs.GetEntitiesArgs;
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 = DynatraceFunctions.getEntities(GetEntitiesArgs.builder()
.type("SERVICE")
.build());
ctx.export("serviceList", test.applyValue(getEntitiesResult -> getEntitiesResult.entities()));
}
}
variables:
test:
fn::invoke:
Function: dynatrace:getEntities
Arguments:
type: SERVICE
outputs:
serviceList: ${test.entities}
Using getEntities
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 getEntities(args: GetEntitiesArgs, opts?: InvokeOptions): Promise<GetEntitiesResult>
function getEntitiesOutput(args: GetEntitiesOutputArgs, opts?: InvokeOptions): Output<GetEntitiesResult>
def get_entities(entity_selector: Optional[str] = None,
from_: Optional[str] = None,
to: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEntitiesResult
def get_entities_output(entity_selector: Optional[pulumi.Input[str]] = None,
from_: Optional[pulumi.Input[str]] = None,
to: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEntitiesResult]
func GetEntities(ctx *Context, args *GetEntitiesArgs, opts ...InvokeOption) (*GetEntitiesResult, error)
func GetEntitiesOutput(ctx *Context, args *GetEntitiesOutputArgs, opts ...InvokeOption) GetEntitiesResultOutput
> Note: This function is named GetEntities
in the Go SDK.
public static class GetEntities
{
public static Task<GetEntitiesResult> InvokeAsync(GetEntitiesArgs args, InvokeOptions? opts = null)
public static Output<GetEntitiesResult> Invoke(GetEntitiesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEntitiesResult> getEntities(GetEntitiesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dynatrace:index/getEntities:getEntities
arguments:
# arguments dictionary
The following arguments are supported:
- Entity
Selector string - From string
- To string
- Type string
- Entity
Selector string - From string
- To string
- Type string
- entity
Selector String - from String
- to String
- type String
- entity
Selector string - from string
- to string
- type string
- entity_
selector str - from_ str
- to str
- type str
- entity
Selector String - from String
- to String
- type String
getEntities Result
The following output properties are available:
- Entities
List<Pulumiverse.
Dynatrace. Outputs. Get Entities Entity> - Id string
- The provider-assigned unique ID for this managed resource.
- Entity
Selector string - From string
- To string
- Type string
- Entities
[]Get
Entities Entity - Id string
- The provider-assigned unique ID for this managed resource.
- Entity
Selector string - From string
- To string
- Type string
- entities
List<Get
Entities Entity> - id String
- The provider-assigned unique ID for this managed resource.
- entity
Selector String - from String
- to String
- type String
- entities
Get
Entities Entity[] - id string
- The provider-assigned unique ID for this managed resource.
- entity
Selector string - from string
- to string
- type string
- entities
Sequence[Get
Entities Entity] - id str
- The provider-assigned unique ID for this managed resource.
- entity_
selector str - from_ str
- to str
- type str
- entities List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- entity
Selector String - from String
- to String
- type String
Supporting Types
GetEntitiesEntity
- Properties Dictionary<string, string>
- Properties defining the entity.
- Display
Name string - The name of the entity, displayed in the UI.
- Entity
Id string - The ID of the entity.
- Last
Seen intTms - The timestamp at which the entity was last seen, in UTC milliseconds.
- List<Pulumiverse.
Dynatrace. Inputs. Get Entities Entity Tag> - A set of tags assigned to the entity.
- Type string
- The type of the entity.
- Properties map[string]string
- Properties defining the entity.
- Display
Name string - The name of the entity, displayed in the UI.
- Entity
Id string - The ID of the entity.
- Last
Seen intTms - The timestamp at which the entity was last seen, in UTC milliseconds.
- []Get
Entities Entity Tag - A set of tags assigned to the entity.
- Type string
- The type of the entity.
- properties Map<String,String>
- Properties defining the entity.
- display
Name String - The name of the entity, displayed in the UI.
- entity
Id String - The ID of the entity.
- last
Seen IntegerTms - The timestamp at which the entity was last seen, in UTC milliseconds.
- List<Get
Entities Entity Tag> - A set of tags assigned to the entity.
- type String
- The type of the entity.
- properties {[key: string]: string}
- Properties defining the entity.
- display
Name string - The name of the entity, displayed in the UI.
- entity
Id string - The ID of the entity.
- last
Seen numberTms - The timestamp at which the entity was last seen, in UTC milliseconds.
- Get
Entities Entity Tag[] - A set of tags assigned to the entity.
- type string
- The type of the entity.
- properties Mapping[str, str]
- Properties defining the entity.
- display_
name str - The name of the entity, displayed in the UI.
- entity_
id str - The ID of the entity.
- last_
seen_ inttms - The timestamp at which the entity was last seen, in UTC milliseconds.
- Sequence[Get
Entities Entity Tag] - A set of tags assigned to the entity.
- type str
- The type of the entity.
- properties Map<String>
- Properties defining the entity.
- display
Name String - The name of the entity, displayed in the UI.
- entity
Id String - The ID of the entity.
- last
Seen NumberTms - The timestamp at which the entity was last seen, in UTC milliseconds.
- List<Property Map>
- A set of tags assigned to the entity.
- type String
- The type of the entity.
GetEntitiesEntityTag
- List<Pulumiverse.
Dynatrace. Inputs. Get Entities Entity Tag Tag> - A tag assigned to the entity
- []Get
Entities Entity Tag Tag - A tag assigned to the entity
- List<Get
Entities Entity Tag Tag> - A tag assigned to the entity
- Get
Entities Entity Tag Tag[] - A tag assigned to the entity
- Sequence[Get
Entities Entity Tag Tag] - A tag assigned to the entity
- List<Property Map>
- A tag assigned to the entity
GetEntitiesEntityTagTag
- Context string
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - Key string
- The key of the tag. Custom tags have the tag value here
- String
Representation string - The string representation of the tag
- Value string
- The value of the tag. Not applicable to custom tags
- Context string
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - Key string
- The key of the tag. Custom tags have the tag value here
- String
Representation string - The string representation of the tag
- Value string
- The value of the tag. Not applicable to custom tags
- context String
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - key String
- The key of the tag. Custom tags have the tag value here
- string
Representation String - The string representation of the tag
- value String
- The value of the tag. Not applicable to custom tags
- context string
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - key string
- The key of the tag. Custom tags have the tag value here
- string
Representation string - The string representation of the tag
- value string
- The value of the tag. Not applicable to custom tags
- context str
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - key str
- The key of the tag. Custom tags have the tag value here
- string_
representation str - The string representation of the tag
- value str
- The value of the tag. Not applicable to custom tags
- context String
- The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
CONTEXTLESS
value - key String
- The key of the tag. Custom tags have the tag value here
- string
Representation String - The string representation of the tag
- value String
- The value of the tag. Not applicable to custom tags
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.