@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
64 lines • 2.43 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEntitiesOutput = exports.getEntities = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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);
* ```
*/
function getEntities(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getEntities:getEntities", {
"entitySelector": args.entitySelector,
"from": args.from,
"to": args.to,
"type": args.type,
}, opts);
}
exports.getEntities = getEntities;
/**
* 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);
* ```
*/
function getEntitiesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getEntities:getEntities", {
"entitySelector": args.entitySelector,
"from": args.from,
"to": args.to,
"type": args.type,
}, opts);
}
exports.getEntitiesOutput = getEntitiesOutput;
//# sourceMappingURL=getEntities.js.map