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.73.0 published on Wednesday, Nov 20, 2024 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.73.0 published on Wednesday, Nov 20, 2024 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: 2015-05-04-preview, 2016-04-01, 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:network:getZone
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- Resource
Group stringName - The name of the resource group.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- resource
Group StringName - The name of the resource group.
- zone
Name String - The name of the DNS zone (without a terminating dot).
- resource
Group stringName - The name of the resource group.
- zone
Name 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).
- resource
Group StringName - The name of the resource group.
- zone
Name 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.
- Max
Number 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.
- Max
Number 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.
- Name
Servers 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.
- Number
Of 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.
- Registration
Virtual 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.
- Resolution
Virtual 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.
- Zone
Type string - The type of this DNS zone (Public or Private).
- Id string
- Resource ID.
- Location string
- Resource location.
- Max
Number 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.
- Max
Number 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.
- Name
Servers []string - 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 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.
- Registration
Virtual []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 []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.
- Zone
Type string - The type of this DNS zone (Public or Private).
- id String
- Resource ID.
- location String
- Resource location.
- max
Number 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.
- max
Number 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.
- name
Servers 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.
- number
Of 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.
- registration
Virtual 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.
- resolution
Virtual 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.
- zone
Type String - The type of this DNS zone (Public or Private).
- id string
- Resource ID.
- location string
- Resource location.
- max
Number 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.
- max
Number 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.
- name
Servers string[] - 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 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.
- registration
Virtual 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 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.
- zone
Type 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.
- max
Number 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.
- max
Number 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.
- name
Servers 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.
- number
Of 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.
- registration
Virtual 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.
- resolution
Virtual 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.
- zone
Type 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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi