Record Sets - Update
Updates a record set within a DNS zone.
In this article
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}?api-version=2018-05-01
URI Parameters
Name
In
Required
Type
Description
recordType
path
True
RecordType
The type of DNS record in this record set.
relativeRecordSetName
path
True
string
The name of the record set, relative to the name of the zone.
resourceGroupName
path
True
string
The name of the resource group.
subscriptionId
path
True
string
Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
zoneName
path
True
string
The name of the DNS zone (without a terminating dot).
api-version
query
True
string
Specifies the API version.
Name
Required
Type
Description
If-Match
string
The etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwriting concurrent changes.
Request Body
Name
Type
Description
etag
string
The etag of the record set.
properties.AAAARecords
AaaaRecord []
The list of AAAA records in the record set.
properties.ARecords
ARecord []
The list of A records in the record set.
properties.CNAMERecord
CnameRecord
The CNAME record in the record set.
properties.MXRecords
MxRecord []
The list of MX records in the record set.
properties.NSRecords
NsRecord []
The list of NS records in the record set.
properties.PTRRecords
PtrRecord []
The list of PTR records in the record set.
properties.SOARecord
SoaRecord
The SOA record in the record set.
properties.SRVRecords
SrvRecord []
The list of SRV records in the record set.
properties.TTL
integer
The TTL (time-to-live) of the records in the record set.
properties.TXTRecords
TxtRecord []
The list of TXT records in the record set.
properties.caaRecords
CaaRecord []
The list of CAA records in the record set.
properties.metadata
object
The metadata attached to the record set.
properties.targetResource
SubResource
A reference to an azure resource from where the dns resource value is taken.
Responses
Name
Type
Description
200 OK
RecordSet
The record set has been updated.
Other Status Codes
CloudError
Default response. It will be deserialized as per the Error definition.
Examples
Patch A recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchARecordset.json
*/
/**
* Sample code: Patch A recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchARecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.A,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_arecordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="A",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchARecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
package armdns_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchARecordset.json
func ExampleRecordSetsClient_Update() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
client, err := armdns.NewRecordSetsClient("subid", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := client.Update(ctx,
"rg1",
"zone1",
"record1",
armdns.RecordTypeA,
armdns.RecordSet{
Properties: &armdns.RecordSetProperties{
Metadata: map[string]*string{
"key2": to.Ptr("value2"),
},
},
},
&armdns.RecordSetsClientUpdateOptions{IfMatch: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// TODO: use response item
_ = res
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchARecordset.json
*/
async function patchARecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "A";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchARecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/A",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"ARecords": [
{
"ipv4Address": "127.0.0.1"
}
]
}
}
Patch AAAA recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchAAAARecordset.json
*/
/**
* Sample code: Patch AAAA recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchAAAARecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.AAAA,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_aaaa_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="AAAA",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchAAAARecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchAAAARecordset.json
*/
async function patchAaaaRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "AAAA";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchAaaaRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/AAAA",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"AAAARecords": [
{
"ipv6Address": "::1"
}
]
}
}
Patch CAA recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCaaRecordset.json
*/
/**
* Sample code: Patch CAA recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchCAARecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.CAA,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_caa_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="CAA",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCaaRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCaaRecordset.json
*/
async function patchCaaRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "CAA";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchCaaRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/CAA",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"caaRecords": [
{
"flags": 0,
"tag": "issue",
"value": "ca.contoso.com"
}
]
}
}
Patch CNAME recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCNAMERecordset.json
*/
/**
* Sample code: Patch CNAME recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchCNAMERecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.CNAME,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_cname_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="CNAME",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCNAMERecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchCNAMERecordset.json
*/
async function patchCnameRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "CNAME";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchCnameRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/CNAME",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"CNAMERecord": {
"cname": "contoso.com"
}
}
}
Patch MX recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchMXRecordset.json
*/
/**
* Sample code: Patch MX recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchMXRecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.MX,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_mx_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="MX",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchMXRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchMXRecordset.json
*/
async function patchMxRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "MX";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchMxRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/MX",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"MXRecords": [
{
"preference": 0,
"exchange": "mail.contoso.com"
}
]
}
}
Patch NS recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchNSRecordset.json
*/
/**
* Sample code: Patch NS recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchNSRecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.NS,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_ns_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="NS",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchNSRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchNSRecordset.json
*/
async function patchNsRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "NS";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchNsRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/NS",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"NSRecords": [
{
"nsdname": "ns1.contoso.com"
}
]
}
}
Patch PTR recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchPTRRecordset.json
*/
/**
* Sample code: Patch PTR recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchPTRRecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"0.0.127.in-addr.arpa",
"1",
RecordType.PTR,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_ptr_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="0.0.127.in-addr.arpa",
relative_record_set_name="1",
record_type="PTR",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchPTRRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchPTRRecordset.json
*/
async function patchPtrRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "0.0.127.in-addr.arpa";
const relativeRecordSetName = "1";
const recordType = "PTR";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchPtrRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "1",
"type": "Microsoft.Network/dnsZones/PTR",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "1.0.0.127.in-addr.arpa",
"PTRRecords": [
{
"ptrdname": "localhost"
}
]
}
}
Patch SOA recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSOARecordset.json
*/
/**
* Sample code: Patch SOA recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchSOARecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"@",
RecordType.SOA,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_soa_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="@",
record_type="SOA",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSOARecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSOARecordset.json
*/
async function patchSoaRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "@";
const recordType = "SOA";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchSoaRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "@",
"type": "Microsoft.Network/dnsZones/SOA",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "zone1",
"SOARecord": {
"host": "ns1.contoso.com",
"email": "hostmaster.contoso.com",
"serialNumber": 1,
"refreshTime": 3600,
"retryTime": 300,
"expireTime": 2419200,
"minimumTTL": 300
}
}
}
Patch SRV recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSRVRecordset.json
*/
/**
* Sample code: Patch SRV recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchSRVRecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.SRV,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_srv_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="SRV",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSRVRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchSRVRecordset.json
*/
async function patchSrvRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "SRV";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchSrvRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/SRV",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"SRVRecords": [
{
"priority": 0,
"weight": 10,
"port": 80,
"target": "contoso.com"
}
]
}
}
Patch TXT recordset
Sample Request
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1?api-version=2018-05-01
{
"properties": {
"metadata": {
"key2": "value2"
}
}
}
import com.azure.core.util.Context;
import com.azure.resourcemanager.dns.fluent.models.RecordSetInner;
import com.azure.resourcemanager.dns.models.RecordType;
import java.util.HashMap;
import java.util.Map;
/** Samples for RecordSets Update. */
public final class Main {
/*
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchTXTRecordset.json
*/
/**
* Sample code: Patch TXT recordset.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void patchTXTRecordset(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.dnsZones()
.manager()
.serviceClient()
.getRecordSets()
.updateWithResponse(
"rg1",
"zone1",
"record1",
RecordType.TXT,
new RecordSetInner().withMetadata(mapOf("key2", "value2")),
null,
Context.NONE);
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.dns import DnsManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-dns
# USAGE
python patch_txt_recordset.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = DnsManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.record_sets.update(
resource_group_name="rg1",
zone_name="zone1",
relative_record_set_name="record1",
record_type="TXT",
parameters={"properties": {"metadata": {"key2": "value2"}}},
)
print(response)
# x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchTXTRecordset.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { DnsManagementClient } = require("@azure/arm-dns");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a record set within a DNS zone.
*
* @summary Updates a record set within a DNS zone.
* x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchTXTRecordset.json
*/
async function patchTxtRecordset() {
const subscriptionId = "subid";
const resourceGroupName = "rg1";
const zoneName = "zone1";
const relativeRecordSetName = "record1";
const recordType = "TXT";
const parameters = { metadata: { key2: "value2" } };
const credential = new DefaultAzureCredential();
const client = new DnsManagementClient(credential, subscriptionId);
const result = await client.recordSets.update(
resourceGroupName,
zoneName,
relativeRecordSetName,
recordType,
parameters
);
console.log(result);
}
patchTxtRecordset().catch(console.error);
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1",
"etag": "00000000-0000-0000-0000-000000000000",
"name": "record1",
"type": "Microsoft.Network/dnsZones/TXT",
"properties": {
"metadata": {
"key2": "value2"
},
"TTL": 3600,
"fqdn": "record1.zone1",
"TXTRecords": [
{
"value": [
"string1",
"string2"
]
}
]
}
}
Definitions
AaaaRecord
An AAAA record.
Name
Type
Description
ipv6Address
string
The IPv6 address of this AAAA record.
ARecord
An A record.
Name
Type
Description
ipv4Address
string
The IPv4 address of this A record.
CaaRecord
A CAA record.
Name
Type
Description
flags
integer
The flags for this CAA record as an integer between 0 and 255.
tag
string
The tag for this CAA record.
value
string
The value for this CAA record.
CloudError
An error response from the service.
CloudErrorBody
An error response from the service.
Name
Type
Description
code
string
An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
details
CloudErrorBody []
A list of additional details about the error.
message
string
A message describing the error, intended to be suitable for display in a user interface.
target
string
The target of the particular error. For example, the name of the property in error.
CnameRecord
A CNAME record.
Name
Type
Description
cname
string
The canonical name for this CNAME record.
MxRecord
An MX record.
Name
Type
Description
exchange
string
The domain name of the mail host for this MX record.
preference
integer
The preference value for this MX record.
NsRecord
An NS record.
Name
Type
Description
nsdname
string
The name server name for this NS record.
PtrRecord
A PTR record.
Name
Type
Description
ptrdname
string
The PTR target domain name for this PTR record.
RecordSet
Describes a DNS record set (a collection of DNS records with the same name and type).
Name
Type
Description
etag
string
The etag of the record set.
id
string
The ID of the record set.
name
string
The name of the record set.
properties.AAAARecords
AaaaRecord []
The list of AAAA records in the record set.
properties.ARecords
ARecord []
The list of A records in the record set.
properties.CNAMERecord
CnameRecord
The CNAME record in the record set.
properties.MXRecords
MxRecord []
The list of MX records in the record set.
properties.NSRecords
NsRecord []
The list of NS records in the record set.
properties.PTRRecords
PtrRecord []
The list of PTR records in the record set.
properties.SOARecord
SoaRecord
The SOA record in the record set.
properties.SRVRecords
SrvRecord []
The list of SRV records in the record set.
properties.TTL
integer
The TTL (time-to-live) of the records in the record set.
properties.TXTRecords
TxtRecord []
The list of TXT records in the record set.
properties.caaRecords
CaaRecord []
The list of CAA records in the record set.
properties.fqdn
string
Fully qualified domain name of the record set.
properties.metadata
object
The metadata attached to the record set.
properties.provisioningState
string
provisioning State of the record set.
properties.targetResource
SubResource
A reference to an azure resource from where the dns resource value is taken.
type
string
The type of the record set.
RecordType
The type of DNS record in this record set.
Name
Type
Description
A
string
AAAA
string
CAA
string
CNAME
string
MX
string
NS
string
PTR
string
SOA
string
SRV
string
TXT
string
SoaRecord
An SOA record.
Name
Type
Description
email
string
The email contact for this SOA record.
expireTime
integer
The expire time for this SOA record.
host
string
The domain name of the authoritative name server for this SOA record.
minimumTTL
integer
The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
refreshTime
integer
The refresh value for this SOA record.
retryTime
integer
The retry time for this SOA record.
serialNumber
integer
The serial number for this SOA record.
SrvRecord
An SRV record.
Name
Type
Description
port
integer
The port value for this SRV record.
priority
integer
The priority value for this SRV record.
target
string
The target domain name for this SRV record.
weight
integer
The weight value for this SRV record.
SubResource
A reference to a another resource
Name
Type
Description
id
string
Resource Id.
TxtRecord
A TXT record.
Name
Type
Description
value
string[]
The text value of this TXT record.