@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
71 lines (70 loc) • 2.35 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* 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](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-all-entity-types).
*
* ## Example Usage
*
* ```typescript
* 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);
* ```
*/
export declare function getEntities(args?: GetEntitiesArgs, opts?: pulumi.InvokeOptions): Promise<GetEntitiesResult>;
/**
* A collection of arguments for invoking getEntities.
*/
export interface GetEntitiesArgs {
entitySelector?: string;
from?: string;
to?: string;
type?: string;
}
/**
* A collection of values returned by getEntities.
*/
export interface GetEntitiesResult {
readonly entities: outputs.GetEntitiesEntity[];
readonly entitySelector?: string;
readonly from?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly to?: string;
readonly type?: string;
}
/**
* 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](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-all-entity-types).
*
* ## Example Usage
*
* ```typescript
* 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);
* ```
*/
export declare function getEntitiesOutput(args?: GetEntitiesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEntitiesResult>;
/**
* A collection of arguments for invoking getEntities.
*/
export interface GetEntitiesOutputArgs {
entitySelector?: pulumi.Input<string>;
from?: pulumi.Input<string>;
to?: pulumi.Input<string>;
type?: pulumi.Input<string>;
}