dns

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.dns.ARecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS A Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS A Record.

  • records (pulumi.Input[list]) – List of IPv4 Addresses.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

name = None

The name of the DNS A Record.

records = None

List of IPv4 Addresses.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing ARecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS A Record.

  • records (pulumi.Input[list]) – List of IPv4 Addresses.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.AaaaRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS AAAA Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS AAAA Record.

  • records (pulumi.Input[list]) – List of IPv6 Addresses.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

name = None

The name of the DNS AAAA Record.

records = None

List of IPv6 Addresses.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing AaaaRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS AAAA Record.

  • records (pulumi.Input[list]) – List of IPv6 Addresses.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.AwaitableGetZoneResult(max_number_of_record_sets=None, name=None, name_servers=None, number_of_record_sets=None, registration_virtual_network_ids=None, resolution_virtual_network_ids=None, resource_group_name=None, tags=None, zone_type=None, id=None)
class pulumi_azure.dns.CNameRecord(resource_name, opts=None, name=None, record=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS CNAME Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS CNAME Record.

  • record (pulumi.Input[str]) – The target of the CNAME.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

name = None

The name of the DNS CNAME Record.

record = None

The target of the CNAME.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, record=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing CNameRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS CNAME Record.

  • record (pulumi.Input[str]) – The target of the CNAME.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.CaaRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS CAA Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS CAA Record.

  • records (pulumi.Input[list]) – A list of values that make up the CAA record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • flags (pulumi.Input[float])

  • tag (pulumi.Input[str])

  • value (pulumi.Input[str])

name = None

The name of the DNS CAA Record.

records = None

A list of values that make up the CAA record. Each record block supports fields documented below.

  • flags (float)

  • tag (str)

  • value (str)

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing CaaRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS CAA Record.

  • records (pulumi.Input[list]) – A list of values that make up the CAA record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • flags (pulumi.Input[float])

  • tag (pulumi.Input[str])

  • value (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.GetZoneResult(max_number_of_record_sets=None, name=None, name_servers=None, number_of_record_sets=None, registration_virtual_network_ids=None, resolution_virtual_network_ids=None, resource_group_name=None, tags=None, zone_type=None, id=None)

A collection of values returned by getZone.

max_number_of_record_sets = None

Maximum number of Records in the zone.

name_servers = None

A list of values that make up the NS record for the zone.

number_of_record_sets = None

The number of records already in the zone.

registration_virtual_network_ids = None

A list of Virtual Network ID’s that register hostnames in this DNS zone.

resolution_virtual_network_ids = None

A list of Virtual Network ID’s that resolve records in this DNS zone.

tags = None

A mapping of tags to assign to the EventHub Namespace.

zone_type = None

(Deprecated) The type of this DNS zone, such as Public or Private.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.dns.MxRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS MX Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS MX Record.

  • records (pulumi.Input[list]) – A list of values that make up the MX record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • exchange (pulumi.Input[str])

  • preference (pulumi.Input[str])

name = None

The name of the DNS MX Record.

records = None

A list of values that make up the MX record. Each record block supports fields documented below.

  • exchange (str)

  • preference (str)

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing MxRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS MX Record.

  • records (pulumi.Input[list]) – A list of values that make up the MX record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • exchange (pulumi.Input[str])

  • preference (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.NsRecord(resource_name, opts=None, name=None, record=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS NS Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS NS Record.

  • record (pulumi.Input[list]) – A list of values that make up the NS record. Each record block supports fields documented below. This field has been deprecated and will be removed in a future release.

  • records (pulumi.Input[list]) – A list of values that make up the NS record. WARNING: Either records or record is required.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The record object supports the following:

  • nsdname (pulumi.Input[str])

name = None

The name of the DNS NS Record.

record = None

A list of values that make up the NS record. Each record block supports fields documented below. This field has been deprecated and will be removed in a future release.

  • nsdname (str)

records = None

A list of values that make up the NS record. WARNING: Either records or record is required.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, record=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing NsRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS NS Record.

  • record (pulumi.Input[list]) – A list of values that make up the NS record. Each record block supports fields documented below. This field has been deprecated and will be removed in a future release.

  • records (pulumi.Input[list]) – A list of values that make up the NS record. WARNING: Either records or record is required.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The record object supports the following:

  • nsdname (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.PtrRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS PTR Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS PTR Record.

  • records (pulumi.Input[list]) – List of Fully Qualified Domain Names.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

name = None

The name of the DNS PTR Record.

records = None

List of Fully Qualified Domain Names.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing PtrRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS PTR Record.

  • records (pulumi.Input[list]) – List of Fully Qualified Domain Names.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.SrvRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS SRV Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS SRV Record.

  • records (pulumi.Input[list]) – A list of values that make up the SRV record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • port (pulumi.Input[float])

  • priority (pulumi.Input[float])

  • target (pulumi.Input[str])

  • weight (pulumi.Input[float])

name = None

The name of the DNS SRV Record.

records = None

A list of values that make up the SRV record. Each record block supports fields documented below.

  • port (float)

  • priority (float)

  • target (str)

  • weight (float)

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing SrvRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS SRV Record.

  • records (pulumi.Input[list]) – A list of values that make up the SRV record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • port (pulumi.Input[float])

  • priority (pulumi.Input[float])

  • target (pulumi.Input[str])

  • weight (pulumi.Input[float])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.TxtRecord(resource_name, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS TXT Records within Azure DNS.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS TXT Record.

  • records (pulumi.Input[list]) – A list of values that make up the txt record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • value (pulumi.Input[str])

name = None

The name of the DNS TXT Record.

records = None

A list of values that make up the txt record. Each record block supports fields documented below.

  • value (str)

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

ttl = None

The Time To Live (TTL) of the DNS record in seconds.

zone_name = None

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, name=None, records=None, resource_group_name=None, tags=None, ttl=None, zone_name=None)

Get an existing TxtRecord resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS TXT Record.

  • records (pulumi.Input[list]) – A list of values that make up the txt record. Each record block supports fields documented below.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • ttl (pulumi.Input[float]) – The Time To Live (TTL) of the DNS record in seconds.

  • zone_name (pulumi.Input[str]) – Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

The records object supports the following:

  • value (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.dns.Zone(resource_name, opts=None, name=None, registration_virtual_network_ids=None, resolution_virtual_network_ids=None, resource_group_name=None, tags=None, zone_type=None, __props__=None, __name__=None, __opts__=None)

Enables you to manage DNS zones within Azure DNS. These zones are hosted on Azure’s name servers to which you can delegate the zone from the parent domain.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the DNS Zone. Must be a valid domain name.

  • registration_virtual_network_ids (pulumi.Input[list]) – A list of Virtual Network ID’s that register hostnames in this DNS zone. This field can only be set when zone_type is set to Private.

  • resolution_virtual_network_ids (pulumi.Input[list]) – A list of Virtual Network ID’s that resolve records in this DNS zone. This field can only be set when zone_type is set to Private.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_type (pulumi.Input[str]) – Specifies the type of this DNS zone. Possible values are Public or Private (Defaults to Public).

max_number_of_record_sets = None

(Optional) Maximum number of Records in the zone. Defaults to 1000.

name = None

The name of the DNS Zone. Must be a valid domain name.

name_servers = None

(Optional) A list of values that make up the NS record for the zone.

number_of_record_sets = None

(Optional) The number of records already in the zone.

registration_virtual_network_ids = None

A list of Virtual Network ID’s that register hostnames in this DNS zone. This field can only be set when zone_type is set to Private.

resolution_virtual_network_ids = None

A list of Virtual Network ID’s that resolve records in this DNS zone. This field can only be set when zone_type is set to Private.

resource_group_name = None

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

zone_type = None

Specifies the type of this DNS zone. Possible values are Public or Private (Defaults to Public).

static get(resource_name, id, opts=None, max_number_of_record_sets=None, name=None, name_servers=None, number_of_record_sets=None, registration_virtual_network_ids=None, resolution_virtual_network_ids=None, resource_group_name=None, tags=None, zone_type=None)

Get an existing Zone resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • max_number_of_record_sets (pulumi.Input[float]) – (Optional) Maximum number of Records in the zone. Defaults to 1000.

  • name (pulumi.Input[str]) – The name of the DNS Zone. Must be a valid domain name.

  • name_servers (pulumi.Input[list]) – (Optional) A list of values that make up the NS record for the zone.

  • number_of_record_sets (pulumi.Input[float]) – (Optional) The number of records already in the zone.

  • registration_virtual_network_ids (pulumi.Input[list]) – A list of Virtual Network ID’s that register hostnames in this DNS zone. This field can only be set when zone_type is set to Private.

  • resolution_virtual_network_ids (pulumi.Input[list]) – A list of Virtual Network ID’s that resolve records in this DNS zone. This field can only be set when zone_type is set to Private.

  • resource_group_name (pulumi.Input[str]) – Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • zone_type (pulumi.Input[str]) – Specifies the type of this DNS zone. Possible values are Public or Private (Defaults to Public).

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.dns.get_zone(name=None, resource_group_name=None, opts=None)

Use this data source to access information about an existing DNS Zone.

Parameters
  • name (str) – The name of the DNS Zone.

  • resource_group_name (str) – 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.