@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
84 lines • 3.24 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.getProcessOutput = exports.getProcess = 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_INSTANCE` instead.
*
* The process data source allows the process ID to be retrieved by its name and optionally tags / tag-value pairs.
*
* - `name` queries for all processes with the specified name
* - `tags` (optional) refers to the tags that need to be present for the process (inclusive)
*
* If multiple processes 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.getProcess({
* name: "Example",
* tags: [
* "TerraformKeyTest",
* "TerraformKeyValueTest=TestValue",
* ],
* });
* const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{
* enabled: true,
* selector: test.then(test => `type("process_group_instance"),entityId("${test.id}")`),
* }]});
* ```
*/
function getProcess(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getProcess:getProcess", {
"name": args.name,
"tags": args.tags,
}, opts);
}
exports.getProcess = getProcess;
/**
* !> The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type `PROCESS_GROUP_INSTANCE` instead.
*
* The process data source allows the process ID to be retrieved by its name and optionally tags / tag-value pairs.
*
* - `name` queries for all processes with the specified name
* - `tags` (optional) refers to the tags that need to be present for the process (inclusive)
*
* If multiple processes 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.getProcess({
* name: "Example",
* tags: [
* "TerraformKeyTest",
* "TerraformKeyValueTest=TestValue",
* ],
* });
* const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{
* enabled: true,
* selector: test.then(test => `type("process_group_instance"),entityId("${test.id}")`),
* }]});
* ```
*/
function getProcessOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getProcess:getProcess", {
"name": args.name,
"tags": args.tags,
}, opts);
}
exports.getProcessOutput = getProcessOutput;
//# sourceMappingURL=getProcess.js.map