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