UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

68 lines 2.59 kB
"use strict"; // *** 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.getDocumentsOutput = exports.getDocuments = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **View documents** (`document:documents:read`). * * - `type` (String) The type of documents to query for. Leave empty if you want to query for all kinds of documents. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const all_dashboard_and_notebooks = dynatrace.getDocuments({}); * const all_dashboards = dynatrace.getDocuments({ * type: "dashboard", * }); * const all_notebooks = dynatrace.getDocuments({ * type: "notebook", * }); * ``` */ function getDocuments(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getDocuments:getDocuments", { "type": args.type, }, opts); } exports.getDocuments = getDocuments; /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **View documents** (`document:documents:read`). * * - `type` (String) The type of documents to query for. Leave empty if you want to query for all kinds of documents. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const all_dashboard_and_notebooks = dynatrace.getDocuments({}); * const all_dashboards = dynatrace.getDocuments({ * type: "dashboard", * }); * const all_notebooks = dynatrace.getDocuments({ * type: "notebook", * }); * ``` */ function getDocumentsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getDocuments:getDocuments", { "type": args.type, }, opts); } exports.getDocumentsOutput = getDocumentsOutput; //# sourceMappingURL=getDocuments.js.map