UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

84 lines 3.33 kB
"use strict"; // *** 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.getProcessGroupOutput = exports.getProcessGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * !> The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type `PROCESS_GROUP` instead. * * The process group data source allows the process group ID to be retrieved by its name and optionally tags / tag-value pairs. * * - `name` queries for all process groups with the specified name * - `tags` (optional) refers to the tags that need to be present for the process group (inclusive) * * If multiple process groups match the given criteria, the first result will be retrieved. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getProcessGroup({ * name: "Example", * tags: [ * "TerraformKeyTest", * "TerraformKeyValueTest=TestValue", * ], * }); * const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{ * enabled: true, * selector: test.then(test => `type("process_group"),entityId("${test.id}")`), * }]}); * ``` */ function getProcessGroup(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getProcessGroup:getProcessGroup", { "name": args.name, "tags": args.tags, }, opts); } exports.getProcessGroup = getProcessGroup; /** * !> The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type `PROCESS_GROUP` instead. * * The process group data source allows the process group ID to be retrieved by its name and optionally tags / tag-value pairs. * * - `name` queries for all process groups with the specified name * - `tags` (optional) refers to the tags that need to be present for the process group (inclusive) * * If multiple process groups match the given criteria, the first result will be retrieved. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getProcessGroup({ * name: "Example", * tags: [ * "TerraformKeyTest", * "TerraformKeyValueTest=TestValue", * ], * }); * const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{ * enabled: true, * selector: test.then(test => `type("process_group"),entityId("${test.id}")`), * }]}); * ``` */ function getProcessGroupOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getProcessGroup:getProcessGroup", { "name": args.name, "tags": args.tags, }, opts); } exports.getProcessGroupOutput = getProcessGroupOutput; //# sourceMappingURL=getProcessGroup.js.map