azure-native.dns.getZone
Explore with Pulumi AI
Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.
Uses Azure REST API version 2023-07-01-preview.
Other available API versions: 2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-10-01, 2018-03-01-preview, 2018-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native dns [ApiVersion]
. See the version guide for details.
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:dns:getZone
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- zone
Name String - The name of the DNS zone (without a terminating dot).
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- zone
Name string - The name of the DNS zone (without a terminating dot).
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- zone_
name str - The name of the DNS zone (without a terminating dot).
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- zone
Name String - The name of the DNS zone (without a terminating dot).
getZone Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- Signing
Keys List<Pulumi.Azure Native. Dns. Outputs. Signing Key Response> - The list of signing keys.
- System
Data Pulumi.Azure Native. Dns. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type.
- Etag string
- The etag of the zone.
- Registration
Virtual List<Pulumi.Networks Azure Native. Dns. 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. Dns. 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).
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- Signing
Keys []SigningKey Response - The list of signing keys.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- 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).
- azure
Api StringVersion - The Azure API version of the resource.
- 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.
- signing
Keys List<SigningKey Response> - The list of signing keys.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- 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).
- azure
Api stringVersion - The Azure API version of the resource.
- 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.
- signing
Keys SigningKey Response[] - The list of signing keys.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- 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).
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- signing_
keys Sequence[SigningKey Response] - The list of signing keys.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- 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).
- azure
Api StringVersion - The Azure API version of the resource.
- 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.
- signing
Keys List<Property Map> - The list of signing keys.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- 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
DelegationSignerInfoResponse
- Digest
Algorithm intType - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- Digest
Value string - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- Record string
- The record represents a delegation signer (DS) record.
- Digest
Algorithm intType - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- Digest
Value string - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- Record string
- The record represents a delegation signer (DS) record.
- digest
Algorithm IntegerType - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- digest
Value String - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- record String
- The record represents a delegation signer (DS) record.
- digest
Algorithm numberType - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- digest
Value string - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- record string
- The record represents a delegation signer (DS) record.
- digest_
algorithm_ inttype - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- digest_
value str - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- record str
- The record represents a delegation signer (DS) record.
- digest
Algorithm NumberType - The digest algorithm type represents the standard digest algorithm number used to construct the digest. See: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
- digest
Value String - The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.
- record String
- The record represents a delegation signer (DS) record.
SigningKeyResponse
- Delegation
Signer List<Pulumi.Info Azure Native. Dns. Inputs. Delegation Signer Info Response> - The delegation signer information.
- Flags int
- The flags specifies how the key is used.
- Key
Tag int - The key tag value of the DNSKEY Resource Record.
- Protocol int
- The protocol value. The value is always 3.
- Public
Key string - The public key, represented as a Base64 encoding.
- Security
Algorithm intType - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
- Delegation
Signer []DelegationInfo Signer Info Response - The delegation signer information.
- Flags int
- The flags specifies how the key is used.
- Key
Tag int - The key tag value of the DNSKEY Resource Record.
- Protocol int
- The protocol value. The value is always 3.
- Public
Key string - The public key, represented as a Base64 encoding.
- Security
Algorithm intType - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
- delegation
Signer List<DelegationInfo Signer Info Response> - The delegation signer information.
- flags Integer
- The flags specifies how the key is used.
- key
Tag Integer - The key tag value of the DNSKEY Resource Record.
- protocol Integer
- The protocol value. The value is always 3.
- public
Key String - The public key, represented as a Base64 encoding.
- security
Algorithm IntegerType - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
- delegation
Signer DelegationInfo Signer Info Response[] - The delegation signer information.
- flags number
- The flags specifies how the key is used.
- key
Tag number - The key tag value of the DNSKEY Resource Record.
- protocol number
- The protocol value. The value is always 3.
- public
Key string - The public key, represented as a Base64 encoding.
- security
Algorithm numberType - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
- delegation_
signer_ Sequence[Delegationinfo Signer Info Response] - The delegation signer information.
- flags int
- The flags specifies how the key is used.
- key_
tag int - The key tag value of the DNSKEY Resource Record.
- protocol int
- The protocol value. The value is always 3.
- public_
key str - The public key, represented as a Base64 encoding.
- security_
algorithm_ inttype - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
- delegation
Signer List<Property Map>Info - The delegation signer information.
- flags Number
- The flags specifies how the key is used.
- key
Tag Number - The key tag value of the DNSKEY Resource Record.
- protocol Number
- The protocol value. The value is always 3.
- public
Key String - The public key, represented as a Base64 encoding.
- security
Algorithm NumberType - The security algorithm type represents the standard security algorithm number of the DNSKEY Resource Record. See: https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
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.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0