@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
66 lines • 2.29 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.getDashboardOutput = exports.getDashboard = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `dynatrace.Dashboard` data source allows the dashboard ID to be retrieved by its name and owner.
*
* - `name` (String) - The name of the dashboard
* - `owner` (String) - The owner of the dashboard
*
* 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";
*
* const example = dynatrace.getDashboard({
* name: "Terraform",
* owner: "Hashicorp",
* });
* export const id = example.then(example => example.id);
* ```
*/
function getDashboard(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getDashboard:getDashboard", {
"name": args.name,
"owner": args.owner,
}, opts);
}
exports.getDashboard = getDashboard;
/**
* The `dynatrace.Dashboard` data source allows the dashboard ID to be retrieved by its name and owner.
*
* - `name` (String) - The name of the dashboard
* - `owner` (String) - The owner of the dashboard
*
* 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";
*
* const example = dynatrace.getDashboard({
* name: "Terraform",
* owner: "Hashicorp",
* });
* export const id = example.then(example => example.id);
* ```
*/
function getDashboardOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getDashboard:getDashboard", {
"name": args.name,
"owner": args.owner,
}, opts);
}
exports.getDashboardOutput = getDashboardOutput;
//# sourceMappingURL=getDashboard.js.map