import * as pulumi from "@pulumi/pulumi"; /** * !> The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type `HOST` instead. * * The host data source allows the host ID to be retrieved by its name and optionally tags / tag-value pairs. * * - `name` queries for all hosts with the specified name * - `tags` (optional) refers to the tags that need to be present for the host (inclusive) * * If multiple hosts match the given criteria, the first result will be retrieved. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getHost({ * name: "Example", * tags: [ * "TerraformKeyTest", * "TerraformKeyValueTest=TestValue", * ], * }); * const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{ * enabled: true, * selector: test.then(test => `type("host"),entityId("${test.id}")`), * }]}); * ``` */ export declare function getHost(args: GetHostArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getHost. */ export interface GetHostArgs { name: string; /** * Required tags of the host to find */ tags?: string[]; } /** * A collection of values returned by getHost. */ export interface GetHostResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * Required tags of the host to find */ readonly tags?: string[]; } /** * !> The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type `HOST` instead. * * The host data source allows the host ID to be retrieved by its name and optionally tags / tag-value pairs. * * - `name` queries for all hosts with the specified name * - `tags` (optional) refers to the tags that need to be present for the host (inclusive) * * If multiple hosts match the given criteria, the first result will be retrieved. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getHost({ * name: "Example", * tags: [ * "TerraformKeyTest", * "TerraformKeyValueTest=TestValue", * ], * }); * const _name_ = new dynatrace.ManagementZone("#name#", {entitySelectorBasedRules: [{ * enabled: true, * selector: test.then(test => `type("host"),entityId("${test.id}")`), * }]}); * ``` */ export declare function getHostOutput(args: GetHostOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getHost. */ export interface GetHostOutputArgs { name: pulumi.Input; /** * Required tags of the host to find */ tags?: pulumi.Input[]>; }