@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
71 lines (70 loc) • 2.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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);
* ```
*/
export declare function getDashboard(args: GetDashboardArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardResult>;
/**
* A collection of arguments for invoking getDashboard.
*/
export interface GetDashboardArgs {
name: string;
owner: string;
}
/**
* A collection of values returned by getDashboard.
*/
export interface GetDashboardResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly owner: string;
}
/**
* 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);
* ```
*/
export declare function getDashboardOutput(args: GetDashboardOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDashboardResult>;
/**
* A collection of arguments for invoking getDashboard.
*/
export interface GetDashboardOutputArgs {
name: pulumi.Input<string>;
owner: pulumi.Input<string>;
}