@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
81 lines (80 loc) • 2.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* > **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",
* });
* ```
*/
export declare function getDocuments(args?: GetDocumentsArgs, opts?: pulumi.InvokeOptions): Promise<GetDocumentsResult>;
/**
* A collection of arguments for invoking getDocuments.
*/
export interface GetDocumentsArgs {
/**
* The type of documents to query for. Leave empty if you want to query for all kinds of documents. Possible values are `dashboard` or `notebook`
*/
type?: string;
}
/**
* A collection of values returned by getDocuments.
*/
export interface GetDocumentsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The type of documents to query for. Leave empty if you want to query for all kinds of documents. Possible values are `dashboard` or `notebook`
*/
readonly type?: string;
readonly values: outputs.GetDocumentsValue[];
}
/**
* > **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",
* });
* ```
*/
export declare function getDocumentsOutput(args?: GetDocumentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDocumentsResult>;
/**
* A collection of arguments for invoking getDocuments.
*/
export interface GetDocumentsOutputArgs {
/**
* The type of documents to query for. Leave empty if you want to query for all kinds of documents. Possible values are `dashboard` or `notebook`
*/
type?: pulumi.Input<string>;
}