-
Notifications
You must be signed in to change notification settings - Fork 50
/
getZone.ts
98 lines (92 loc) · 2.9 KB
/
getZone.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilities from "../utilities";
/**
* 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 test = azure.dns.getZone({
* name: "search-eventhubns",
* resourceGroupName: "search-service",
* });
*
* export const dnsZoneId = test.id;
* ```
*
* > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/dns_zone.html.markdown.
*/
export function getZone(args: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneResult> & GetZoneResult {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
const promise: Promise<GetZoneResult> = pulumi.runtime.invoke("azure:dns/getZone:getZone", {
"name": args.name,
"resourceGroupName": args.resourceGroupName,
}, opts);
return pulumi.utils.liftProperties(promise, opts);
}
/**
* A collection of arguments for invoking getZone.
*/
export interface GetZoneArgs {
/**
* The name of the DNS Zone.
*/
readonly 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.
*/
readonly resourceGroupName?: string;
}
/**
* A collection of values returned by getZone.
*/
export interface GetZoneResult {
/**
* 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;
/**
* A list of Virtual Network ID's that register hostnames in this DNS zone.
*/
readonly registrationVirtualNetworkIds: string[];
/**
* A list of Virtual Network ID's that resolve records in this DNS zone.
*/
readonly resolutionVirtualNetworkIds: string[];
readonly resourceGroupName: string;
/**
* A mapping of tags to assign to the EventHub Namespace.
*/
readonly tags: {[key: string]: any};
/**
* (**Deprecated**) The type of this DNS zone, such as `Public` or `Private`.
*/
readonly zoneType: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}