UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

110 lines (109 loc) 4.75 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the record sets within the zone. * * Uses Azure REST API version 2024-06-01. * * Other available API versions: 2018-09-01, 2020-01-01, 2020-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native privatedns [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getPrivateZone(args: GetPrivateZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivateZoneResult>; export interface GetPrivateZoneArgs { /** * The name of the Private DNS zone (without a terminating dot). */ privateZoneName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * Describes a Private DNS zone. */ export interface GetPrivateZoneResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The ETag of the zone. */ readonly etag?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * Private zone internal Id */ readonly internalId: string; /** * The Azure Region where the resource lives */ readonly location?: string; /** * The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. */ readonly maxNumberOfRecordSets: number; /** * The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. */ readonly maxNumberOfVirtualNetworkLinks: number; /** * The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. */ readonly maxNumberOfVirtualNetworkLinksWithRegistration: number; /** * The name of the resource */ readonly name: string; /** * The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. */ readonly numberOfRecordSets: number; /** * The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored. */ readonly numberOfVirtualNetworkLinks: number; /** * The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored. */ readonly numberOfVirtualNetworkLinksWithRegistration: number; /** * The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored. */ readonly provisioningState: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.privatedns.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the record sets within the zone. * * Uses Azure REST API version 2024-06-01. * * Other available API versions: 2018-09-01, 2020-01-01, 2020-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native privatedns [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getPrivateZoneOutput(args: GetPrivateZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPrivateZoneResult>; export interface GetPrivateZoneOutputArgs { /** * The name of the Private DNS zone (without a terminating dot). */ privateZoneName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }