@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets properties of a DNS resolver.
*
* Uses Azure REST API version 2023-07-01-preview.
*
* Other available API versions: 2020-04-01-preview, 2022-07-01, 2025-05-01, 2025-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dnsresolver [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getDnsResolver(args: GetDnsResolverArgs, opts?: pulumi.InvokeOptions): Promise<GetDnsResolverResult>;
export interface GetDnsResolverArgs {
/**
* The name of the DNS resolver.
*/
dnsResolverName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* Describes a DNS resolver.
*/
export interface GetDnsResolverResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored.
*/
readonly dnsResolverState: string;
/**
* ETag of the DNS resolver.
*/
readonly etag: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored.
*/
readonly provisioningState: string;
/**
* The resourceGuid property of the DNS resolver resource.
*/
readonly resourceGuid: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.dnsresolver.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;
/**
* The reference to the virtual network. This cannot be changed after creation.
*/
readonly virtualNetwork: outputs.dnsresolver.SubResourceResponse;
}
/**
* Gets properties of a DNS resolver.
*
* Uses Azure REST API version 2023-07-01-preview.
*
* Other available API versions: 2020-04-01-preview, 2022-07-01, 2025-05-01, 2025-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dnsresolver [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getDnsResolverOutput(args: GetDnsResolverOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDnsResolverResult>;
export interface GetDnsResolverOutputArgs {
/**
* The name of the DNS resolver.
*/
dnsResolverName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}