import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing DNS Zone. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.dns.getZone({ * name: "search-eventhubns", * resourceGroupName: "search-service", * }); * export const dnsZoneId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Network` - 2018-05-01 */ export declare function getZone(args: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getZone. */ export interface GetZoneArgs { /** * The name of the DNS Zone. */ name: string; /** * The Name of the Resource Group where the DNS Zone exists. * If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones * in your subscription that matches `name` will be returned. */ resourceGroupName?: string; } /** * A collection of values returned by getZone. */ export interface GetZoneResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Maximum number of Records in the zone. */ readonly maxNumberOfRecordSets: number; readonly name: string; /** * A list of values that make up the NS record for the zone. */ readonly nameServers: string[]; /** * The number of records already in the zone. */ readonly numberOfRecordSets: number; readonly resourceGroupName: string; /** * A mapping of tags assigned to the DNS Zone. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing DNS Zone. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.dns.getZone({ * name: "search-eventhubns", * resourceGroupName: "search-service", * }); * export const dnsZoneId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Network` - 2018-05-01 */ export declare function getZoneOutput(args: GetZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getZone. */ export interface GetZoneOutputArgs { /** * The name of the DNS Zone. */ name: pulumi.Input; /** * The Name of the Resource Group where the DNS Zone exists. * If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones * in your subscription that matches `name` will be returned. */ resourceGroupName?: pulumi.Input; }