@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
120 lines (119 loc) • 3.8 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The management zone data source allows the management zone ID to be retrieved by its name.
*
* > This data source requires the API token scope **Read configuration** (`ReadConfig`)
*
* !> This data source is utilizing an older API endpoint, please use dynatrace.ManagementZoneV2 instead.
*
* - `name` queries for all management zones with the specified name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const test = dynatrace.getManagementZone({
* name: "Example",
* });
* const _name_ = new dynatrace.CalculatedServiceMetric("#name#", {
* conditions: [{
* conditions: [{
* attribute: "HTTP_REQUEST_METHOD",
* comparison: {
* httpMethod: {
* operator: "EQUALS_ANY_OF",
* values: [
* "POST",
* "GET",
* ],
* },
* negate: false,
* },
* }],
* }],
* enabled: true,
* managementZones: [test.then(test => test.id)],
* metricDefinition: {
* metric: "REQUEST_ATTRIBUTE",
* requestAttribute: "foo",
* },
* metricKey: "calc:service.#name#",
* unit: "MILLI_SECOND_PER_MINUTE",
* });
* ```
*/
export declare function getManagementZone(args: GetManagementZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetManagementZoneResult>;
/**
* A collection of arguments for invoking getManagementZone.
*/
export interface GetManagementZoneArgs {
name: string;
}
/**
* A collection of values returned by getManagementZone.
*/
export interface GetManagementZoneResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly legacyId: string;
readonly name: string;
readonly settings20Id: string;
}
/**
* The management zone data source allows the management zone ID to be retrieved by its name.
*
* > This data source requires the API token scope **Read configuration** (`ReadConfig`)
*
* !> This data source is utilizing an older API endpoint, please use dynatrace.ManagementZoneV2 instead.
*
* - `name` queries for all management zones with the specified name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const test = dynatrace.getManagementZone({
* name: "Example",
* });
* const _name_ = new dynatrace.CalculatedServiceMetric("#name#", {
* conditions: [{
* conditions: [{
* attribute: "HTTP_REQUEST_METHOD",
* comparison: {
* httpMethod: {
* operator: "EQUALS_ANY_OF",
* values: [
* "POST",
* "GET",
* ],
* },
* negate: false,
* },
* }],
* }],
* enabled: true,
* managementZones: [test.then(test => test.id)],
* metricDefinition: {
* metric: "REQUEST_ATTRIBUTE",
* requestAttribute: "foo",
* },
* metricKey: "calc:service.#name#",
* unit: "MILLI_SECOND_PER_MINUTE",
* });
* ```
*/
export declare function getManagementZoneOutput(args: GetManagementZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagementZoneResult>;
/**
* A collection of arguments for invoking getManagementZone.
*/
export interface GetManagementZoneOutputArgs {
name: pulumi.Input<string>;
}