This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.network.getZone
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone. Azure REST API version: 2018-05-01.
Other available API versions: 2023-07-01-preview.
Using getZone
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getZone(args: GetZoneArgs, opts?: InvokeOptions): Promise<GetZoneResult>
function getZoneOutput(args: GetZoneOutputArgs, opts?: InvokeOptions): Output<GetZoneResult>def get_zone(resource_group_name: Optional[str] = None,
             zone_name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetZoneResult
def get_zone_output(resource_group_name: Optional[pulumi.Input[str]] = None,
             zone_name: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetZoneResult]func LookupZone(ctx *Context, args *LookupZoneArgs, opts ...InvokeOption) (*LookupZoneResult, error)
func LookupZoneOutput(ctx *Context, args *LookupZoneOutputArgs, opts ...InvokeOption) LookupZoneResultOutput> Note: This function is named LookupZone in the Go SDK.
public static class GetZone 
{
    public static Task<GetZoneResult> InvokeAsync(GetZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetZoneResult> Invoke(GetZoneInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
public static Output<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getZone
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group.
- ZoneName string
- The name of the DNS zone (without a terminating dot).
- ResourceGroup stringName 
- The name of the resource group.
- ZoneName string
- The name of the DNS zone (without a terminating dot).
- resourceGroup StringName 
- The name of the resource group.
- zoneName String
- The name of the DNS zone (without a terminating dot).
- resourceGroup stringName 
- The name of the resource group.
- zoneName string
- The name of the DNS zone (without a terminating dot).
- resource_group_ strname 
- The name of the resource group.
- zone_name str
- The name of the DNS zone (without a terminating dot).
- resourceGroup StringName 
- The name of the resource group.
- zoneName String
- The name of the DNS zone (without a terminating dot).
getZone Result
The following output properties are available:
- Id string
- Resource ID.
- Location string
- Resource location.
- MaxNumber doubleOf Record Sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- MaxNumber doubleOf Records Per Record Set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Name string
- Resource name.
- NameServers List<string>
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- NumberOf doubleRecord Sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Type string
- Resource type.
- Etag string
- The etag of the zone.
- RegistrationVirtual List<Pulumi.Networks Azure Native. Network. Outputs. Sub Resource Response> 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- ResolutionVirtual List<Pulumi.Networks Azure Native. Network. Outputs. Sub Resource Response> 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- Dictionary<string, string>
- Resource tags.
- ZoneType string
- The type of this DNS zone (Public or Private).
- Id string
- Resource ID.
- Location string
- Resource location.
- MaxNumber float64Of Record Sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- MaxNumber float64Of Records Per Record Set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Name string
- Resource name.
- NameServers []string
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- NumberOf float64Record Sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- Type string
- Resource type.
- Etag string
- The etag of the zone.
- RegistrationVirtual []SubNetworks Resource Response 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- ResolutionVirtual []SubNetworks Resource Response 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- map[string]string
- Resource tags.
- ZoneType string
- The type of this DNS zone (Public or Private).
- id String
- Resource ID.
- location String
- Resource location.
- maxNumber DoubleOf Record Sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- maxNumber DoubleOf Records Per Record Set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- name String
- Resource name.
- nameServers List<String>
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- numberOf DoubleRecord Sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- type String
- Resource type.
- etag String
- The etag of the zone.
- registrationVirtual List<SubNetworks Resource Response> 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- resolutionVirtual List<SubNetworks Resource Response> 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- Map<String,String>
- Resource tags.
- zoneType String
- The type of this DNS zone (Public or Private).
- id string
- Resource ID.
- location string
- Resource location.
- maxNumber numberOf Record Sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- maxNumber numberOf Records Per Record Set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- name string
- Resource name.
- nameServers string[]
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- numberOf numberRecord Sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- type string
- Resource type.
- etag string
- The etag of the zone.
- registrationVirtual SubNetworks Resource Response[] 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- resolutionVirtual SubNetworks Resource Response[] 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- {[key: string]: string}
- Resource tags.
- zoneType string
- The type of this DNS zone (Public or Private).
- id str
- Resource ID.
- location str
- Resource location.
- max_number_ floatof_ record_ sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- max_number_ floatof_ records_ per_ record_ set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- name str
- Resource name.
- name_servers Sequence[str]
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- number_of_ floatrecord_ sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- type str
- Resource type.
- etag str
- The etag of the zone.
- registration_virtual_ Sequence[Subnetworks Resource Response] 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- resolution_virtual_ Sequence[Subnetworks Resource Response] 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- Mapping[str, str]
- Resource tags.
- zone_type str
- The type of this DNS zone (Public or Private).
- id String
- Resource ID.
- location String
- Resource location.
- maxNumber NumberOf Record Sets 
- The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- maxNumber NumberOf Records Per Record Set 
- The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- name String
- Resource name.
- nameServers List<String>
- The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- numberOf NumberRecord Sets 
- The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
- type String
- Resource type.
- etag String
- The etag of the zone.
- registrationVirtual List<Property Map>Networks 
- A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
- resolutionVirtual List<Property Map>Networks 
- A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
- Map<String>
- Resource tags.
- zoneType String
- The type of this DNS zone (Public or Private).
Supporting Types
SubResourceResponse  
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi