@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
45 lines (44 loc) • 1.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* > To utilize this data source, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View SLOs** (`slo:slos:read`) and **View SLO objective templates** (`slo:objective-templates:read`).
*
* The SLO objective templates data source allows to retrieve a list of all templates.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const testPlatformSloTemplates = dynatrace.getPlatformSloTemplates({});
* export const test = testPlatformSloTemplates;
* ```
*/
export declare function getPlatformSloTemplates(opts?: pulumi.InvokeOptions): Promise<GetPlatformSloTemplatesResult>;
/**
* A collection of values returned by getPlatformSloTemplates.
*/
export interface GetPlatformSloTemplatesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly templates: outputs.GetPlatformSloTemplatesTemplate[];
}
/**
* > To utilize this data source, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View SLOs** (`slo:slos:read`) and **View SLO objective templates** (`slo:objective-templates:read`).
*
* The SLO objective templates data source allows to retrieve a list of all templates.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const testPlatformSloTemplates = dynatrace.getPlatformSloTemplates({});
* export const test = testPlatformSloTemplates;
* ```
*/
export declare function getPlatformSloTemplatesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPlatformSloTemplatesResult>;