Zone Class

Describes a DNS zone.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.dns.v2016_04_01.models._models_py3.TrackedResource
Zone

Constructor

Zone(*, location: str, tags: Optional[Dict[str, str]] = None, etag: Optional[str] = None, max_number_of_record_sets: Optional[int] = None, number_of_record_sets: Optional[int] = None, zone_type: Optional[Union[str, azure.mgmt.dns.v2016_04_01.models._dns_management_client_enums.ZoneType]] = 'Public', **kwargs)

Parameters

tags
dict[str, str]
Required

A set of tags. Resource tags.

location
str
Required

Required. The geo-location where the resource lives.

etag
str
Required

The etag of the zone.

max_number_of_record_sets
<xref:long>
Required

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.

number_of_record_sets
<xref:long>
Required

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.

zone_type
str or ZoneType
Required

The type of this DNS zone (Public or Private). Possible values include: "Public", "Private". Default value: "Public".

Variables

id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

max_number_of_records_per_record_set
<xref:long>

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_servers
list[str]

The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.