@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
48 lines • 2.38 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPlatformSloTemplatesOutput = exports.getPlatformSloTemplates = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > 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;
* ```
*/
function getPlatformSloTemplates(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getPlatformSloTemplates:getPlatformSloTemplates", {}, opts);
}
exports.getPlatformSloTemplates = getPlatformSloTemplates;
/**
* > 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;
* ```
*/
function getPlatformSloTemplatesOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getPlatformSloTemplates:getPlatformSloTemplates", {}, opts);
}
exports.getPlatformSloTemplatesOutput = getPlatformSloTemplatesOutput;
//# sourceMappingURL=getPlatformSloTemplates.js.map