diff --git a/specification/dns/Dns.Management/DnssecConfig.tsp b/specification/dns/Dns.Management/DnssecConfig.tsp new file mode 100644 index 000000000000..044e9eaa5785 --- /dev/null +++ b/specification/dns/Dns.Management/DnssecConfig.tsp @@ -0,0 +1,86 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Zone.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Represents the DNSSEC configuration. + */ +@singleton("default") +@parentResource(Zone) +model DnssecConfig is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = DnssecConfig, + KeyName = "dnssecConfig", + SegmentName = "dnssecConfigs", + NamePattern = "" + >; + + /** + * The etag of the DNSSEC configuration. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + etag?: string; +} + +@armResourceOperations +interface DnssecConfigs { + /** + * Gets the DNSSEC configuration. + */ + get is ArmResourceRead; + + // FIXME: (ArmResourceCreateOrReplace): ArmResourceCreateOrReplaceAsync/ArmResourceCreateOrReplaceSync should have a body parameter. + /** + * Creates or updates the DNSSEC configuration on a DNS zone. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync< + DnssecConfig, + Parameters = { + /** + * The etag of the DNSSEC configuration. Omit this value to always overwrite the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes. + */ + @header + IfMatch?: string; + + /** + * Set to '*' to allow this DNSSEC configuration to be created, but to prevent updating existing DNSSEC configuration. Other values will be ignored. + */ + @header + IfNoneMatch?: string; + }, + LroHeaders = ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + DnssecConfig, + Parameters = { + /** + * The etag of this DNSSEC configuration. Omit this value to always delete the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. + */ + @header + IfMatch?: string; + }, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * Lists the DNSSEC configurations in a DNS zone. + */ + listByDnsZone is ArmResourceListByParent; +} + +@@doc(DnssecConfig.name, ""); +@@doc(DnssecConfig.properties, "The DNSSEC properties."); diff --git a/specification/dns/Dns.Management/RecordSet.tsp b/specification/dns/Dns.Management/RecordSet.tsp new file mode 100644 index 000000000000..4b9a8ad60317 --- /dev/null +++ b/specification/dns/Dns.Management/RecordSet.tsp @@ -0,0 +1,153 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Zone.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Describes a DNS record set (a collection of DNS records with the same name and type). + */ +@parentResource(Zone) +model RecordSet is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = RecordSet, + KeyName = "relativeRecordSetName", + SegmentName = "{recordType}", + NamePattern = "" + >; + + /** + * The etag of the record set. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + etag?: string; +} + +@armResourceOperations +interface RecordSets { + /** + * Gets a record set. + */ + get is ArmResourceRead< + RecordSet, + Parameters = { + /** + * The type of DNS record in this record set. + */ + @path + recordType: RecordType; + } + >; + + /** + * Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created). + */ + createOrUpdate is ArmResourceCreateOrReplaceSync< + RecordSet, + Parameters = { + /** + * The type of DNS record in this record set. + */ + @path + recordType: RecordType; + + /** + * 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 any concurrent changes. + */ + @header + IfMatch?: string; + + /** + * Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored. + */ + @header + IfNoneMatch?: string; + } + >; + + /** + * Updates a record set within a DNS zone. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + RecordSet, + PatchModel = RecordSet, + Parameters = { + /** + * The type of DNS record in this record set. + */ + @path + recordType: RecordType; + + /** + * 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. + */ + @header + IfMatch?: string; + } + >; + + /** + * Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted). + */ + delete is ArmResourceDeleteSync< + RecordSet, + Parameters = { + /** + * The type of DNS record in this record set. + */ + @path + recordType: RecordType; + + /** + * The etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. + */ + @header + IfMatch?: string; + } + >; + + /** + * Lists the record sets of a specified type in a DNS zone. + */ + listByType is ArmResourceListByParent< + RecordSet, + Parameters = { + /** + * The type of DNS record in this record set. + */ + @path + recordType: RecordType; + + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + @query("$top") + $top?: int32; + + /** + * The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with . + */ + @query("$recordsetnamesuffix") + $recordsetnamesuffix?: string; + } + >; +} + +@@doc(RecordSet.name, + "The name of the record set, relative to the name of the zone." +); +@@doc(RecordSet.properties, "The properties of the record set."); +@@doc(RecordSets.createOrUpdate::parameters.resource, + "Parameters supplied to the CreateOrUpdate operation." +); +@@doc(RecordSets.update::parameters.properties, + "Parameters supplied to the Update operation." +); diff --git a/specification/dns/Dns.Management/Zone.tsp b/specification/dns/Dns.Management/Zone.tsp new file mode 100644 index 000000000000..557d614a6560 --- /dev/null +++ b/specification/dns/Dns.Management/Zone.tsp @@ -0,0 +1,178 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Describes a DNS zone. + */ +model Zone is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Zone, + KeyName = "zoneName", + SegmentName = "dnsZones", + NamePattern = "" + >; + + /** + * The etag of the zone. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + etag?: string; +} + +@armResourceOperations +interface Zones { + /** + * Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone. + */ + get is ArmResourceRead; + + /** + * Creates or updates a DNS zone. Does not modify DNS records within the zone. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync< + Zone, + Parameters = { + /** + * The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes. + */ + @header + IfMatch?: string; + + /** + * Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored. + */ + @header + IfNoneMatch?: string; + } + >; + + /** + * Updates a DNS zone. Does not modify DNS records within the zone. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + Zone, + PatchModel = ZoneUpdate, + Parameters = { + /** + * The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes. + */ + @header + IfMatch?: string; + } + >; + + /** + * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + Zone, + Parameters = { + /** + * The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. + */ + @header + IfMatch?: string; + }, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * Lists the DNS zones within a resource group. + */ + listByResourceGroup is ArmResourceListByParent< + Zone, + Parameters = { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + @query("$top") + $top?: int32; + } + >; + + /** + * Lists the DNS zones in all resource groups in a subscription. + */ + list is ArmListBySubscription< + Zone, + Parameters = { + /** + * The maximum number of DNS zones to return. If not specified, returns up to 100 zones. + */ + @query("$top") + $top?: int32; + } + >; + + /** + * Lists all record sets in a DNS zone. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @get + @action("recordsets") + @operationId("RecordSets_ListByDnsZone") + listByDnsZone is ArmResourceActionSync< + Zone, + void, + ArmResponse>, + Parameters = { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + @query("$top") + $top?: int32; + + /** + * The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with . + */ + @query("$recordsetnamesuffix") + $recordsetnamesuffix?: string; + } + >; + + /** + * Lists all record sets in a DNS zone. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @get + @action("all") + @operationId("RecordSets_ListAllByDnsZone") + listAllByDnsZone is ArmResourceActionSync< + Zone, + void, + ArmResponse>, + Parameters = { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + @query("$top") + $top?: int32; + + /** + * The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with . + */ + @query("$recordsetnamesuffix") + recordSetNameSuffix?: string; + } + >; +} + +@@doc(Zone.name, "The name of the DNS zone (without a terminating dot)."); +@@doc(Zone.properties, "The properties of the zone."); +@@doc(Zones.createOrUpdate::parameters.resource, + "Parameters supplied to the CreateOrUpdate operation." +); +@@doc(Zones.update::parameters.properties, + "Parameters supplied to the Update operation." +); diff --git a/specification/dns/Dns.Management/back-compatible.tsp b/specification/dns/Dns.Management/back-compatible.tsp new file mode 100644 index 000000000000..d1d7ab87caf7 --- /dev/null +++ b/specification/dns/Dns.Management/back-compatible.tsp @@ -0,0 +1,40 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.Network; + +@@clientName(RecordSetProperties.ARecords, "aRecords"); +@@clientName(RecordSetProperties.AAAARecords, "aaaaRecords"); +@@clientName(RecordSetProperties.MXRecords, "mxRecords"); +@@clientName(RecordSetProperties.NSRecords, "NsRecords"); +@@clientName(RecordSetProperties.PTRRecords, "ptrRecords"); +@@clientName(RecordSetProperties.SRVRecords, "srvRecords"); +@@clientName(RecordSetProperties.TXTRecords, "txtRecords"); +@@clientName(RecordSetProperties.CNAMERecord, "cnameRecord"); +@@clientName(RecordSetProperties.SOARecord, "soaRecord"); +@@clientName(RecordSetProperties.DSRecords, "DsRecords"); +@@clientName(RecordSetProperties.TLSARecords, "tlsaRecords"); +@@clientName(RecordSetProperties.NAPTRRecords, "naptrRecords"); + +@@clientName(SoaRecord.minimumTTL, "minimumTtl"); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DnsResourceReferenceRequest.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DnsResourceReferenceResult.properties); + +@@clientName(RecordSetUpdateParameters.RecordSet, "recordSet"); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DnssecConfig.properties); + +@@clientName(RecordSets.createOrUpdate::parameters.resource, "parameters"); +@@clientName(RecordSets.update::parameters.properties, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(RecordSet.properties); + +@@clientName(Zones.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Zones.update::parameters.properties, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Zone.properties); diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateAAAARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateAAAARecordset.json new file mode 100644 index 000000000000..418367edc480 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateAAAARecordset.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordSetTrafficManagementProfile.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordSetTrafficManagementProfile.json new file mode 100644 index 000000000000..8c72de4d1f2d --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordSetTrafficManagementProfile.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "TTL": 3600, + "metadata": { + "key1": "value1" + }, + "trafficManagementProfile": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + }, + "provisioningState": "Succeeded", + "trafficManagementProfile": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + }, + "provisioningState": "Succeeded", + "trafficManagementProfile": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset with traffic management profile" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordset.json new file mode 100644 index 000000000000..a28e17908101 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordset.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordsetAlias.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordsetAlias.json new file mode 100644 index 000000000000..5b9f4e6af76f --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateARecordsetAlias.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "TTL": 3600, + "metadata": { + "key1": "value1" + }, + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + }, + "provisioningState": "Succeeded", + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + }, + "provisioningState": "Succeeded", + "targetResource": { + "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset with alias target resource" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCNAMERecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCNAMERecordset.json new file mode 100644 index 000000000000..434677ef3e29 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCNAMERecordset.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCaaRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCaaRecordset.json new file mode 100644 index 000000000000..4effc8b25b1a --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateCaaRecordset.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDSRecordset.json new file mode 100644 index 000000000000..a53cd98badcd --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDSRecordset.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnszones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnszones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create DS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDnssecConfig.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDnssecConfig.json new file mode 100644 index 000000000000..5f8f26c86429 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateDnssecConfig.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "properties": { + "provisioningState": "Creating", + "signingKeys": [] + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "properties": { + "provisioningState": "Creating", + "signingKeys": [] + } + }, + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + } + } + }, + "operationId": "DnssecConfigs_CreateOrUpdate", + "title": "Create DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateMXRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateMXRecordset.json new file mode 100644 index 000000000000..88f9f6c95721 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateMXRecordset.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create MX recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNAPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNAPTRRecordset.json new file mode 100644 index 000000000000..2983204133a7 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNAPTRRecordset.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "NAPTRRecords": [ + { + "flags": "U", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "properties": { + "NAPTRRecords": [ + { + "flags": "U", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "properties": { + "NAPTRRecords": [ + { + "flags": "U", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNSRecordset.json new file mode 100644 index 000000000000..7c63012fa27f --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateNSRecordset.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create NS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdatePTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdatePTRRecordset.json new file mode 100644 index 000000000000..66f1cacb3666 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdatePTRRecordset.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" + }, + "responses": { + "200": { + "body": { + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSOARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSOARecordset.json new file mode 100644 index 000000000000..7920c5d482aa --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSOARecordset.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "SOA", + "relativeRecordSetName": "@", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSRVRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSRVRecordset.json new file mode 100644 index 000000000000..d81986894426 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateSRVRecordset.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTLSARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTLSARecordset.json new file mode 100644 index 000000000000..b3f4ededfa16 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTLSARecordset.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTXTRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTXTRecordset.json new file mode 100644 index 000000000000..101e988cbd47 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateTXTRecordset.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "metadata": { + "key1": "value1" + } + } + }, + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + }, + "201": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateZone.json new file mode 100644 index 000000000000..16f205209ce5 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/CreateOrUpdateZone.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + }, + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2, + "zoneType": "Public" + }, + "tags": { + "key1": "value1" + } + } + }, + "201": { + "body": { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2, + "zoneType": "Public" + }, + "tags": { + "key1": "value1" + } + } + } + }, + "operationId": "Zones_CreateOrUpdate", + "title": "Create zone" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteAAAARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteAAAARecordset.json new file mode 100644 index 000000000000..ec5350d57bc2 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteAAAARecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteARecordset.json new file mode 100644 index 000000000000..69a5c6007640 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteARecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete A recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCNAMERecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCNAMERecordset.json new file mode 100644 index 000000000000..a64cbcc207ff --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCNAMERecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCaaRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCaaRecordset.json new file mode 100644 index 000000000000..7033c837a038 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteCaaRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDSRecordset.json new file mode 100644 index 000000000000..aab66b568f77 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDSRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete DS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDnssecConfig.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDnssecConfig.json new file mode 100644 index 000000000000..1ef0d526f4b8 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteDnssecConfig.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationStatuses/asyncOperationId?api-version=2023-07-01-preview", + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "DnssecConfigs_Delete", + "title": "Delete DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteMXRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteMXRecordset.json new file mode 100644 index 000000000000..314216436aa6 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteMXRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete MX recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNAPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNAPTRRecordset.json new file mode 100644 index 000000000000..6e012a041fdb --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNAPTRRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNSRecordset.json new file mode 100644 index 000000000000..c895d29b2b3b --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteNSRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete NS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeletePTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeletePTRRecordset.json new file mode 100644 index 000000000000..3457ef1c3b0e --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeletePTRRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteSRVRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteSRVRecordset.json new file mode 100644 index 000000000000..2b46f26875c7 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteSRVRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTLSARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTLSARecordset.json new file mode 100644 index 000000000000..e4763a76b26c --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTLSARecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTXTRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTXTRecordset.json new file mode 100644 index 000000000000..2e7c7b25befd --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteTXTRecordset.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "RecordSets_Delete", + "title": "Delete TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteZone.json new file mode 100644 index 000000000000..fc829e279f1a --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/DeleteZone.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + } + }, + "204": {} + }, + "operationId": "Zones_Delete", + "title": "Delete zone" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetAAAARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetAAAARecordset.json new file mode 100644 index 000000000000..54f2e85f7a17 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetAAAARecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetARecordset.json new file mode 100644 index 000000000000..d5b286f98280 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetARecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get A recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCNAMERecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCNAMERecordset.json new file mode 100644 index 000000000000..6fcd719f59d4 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCNAMERecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCaaRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCaaRecordset.json new file mode 100644 index 000000000000..6dcc13ede527 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetCaaRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDSRecordset.json new file mode 100644 index 000000000000..0fcfe9e6ad7a --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDSRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get DS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnsResourceReference.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnsResourceReference.json new file mode 100644 index 000000000000..ca1ab68e4ebb --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnsResourceReference.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "targetResources": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + ] + } + }, + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "properties": { + "dnsResourceReferences": [ + { + "dnsResources": [ + { + "id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.network/dnszones/hydratest.dnszone.com5989/a/hydratestdnsrec9310" + } + ], + "targetResource": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/trafficManagerProfiles/testpp2" + } + } + ] + } + } + } + }, + "operationId": "DnsResourceReference_GetByTargetResources", + "title": "Get DNS resource reference" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnssecConfig.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnssecConfig.json new file mode 100644 index 000000000000..4794a7f55d10 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetDnssecConfig.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "properties": { + "provisioningState": "Succeeded", + "signingKeys": [ + { + "delegationSignerInfo": [], + "flags": 256, + "keyTag": 37721, + "publicKey": "publicKey1", + "securityAlgorithmType": 13, + "protocol": 3 + }, + { + "delegationSignerInfo": [ + { + "digestAlgorithmType": 2, + "digestValue": "digestValue1", + "record": "11920 13 2 digestValue1" + } + ], + "flags": 257, + "keyTag": 11920, + "publicKey": "publicKey2", + "securityAlgorithmType": 13, + "protocol": 3 + } + ] + } + } + } + }, + "operationId": "DnssecConfigs_Get", + "title": "Get DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetMXRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetMXRecordset.json new file mode 100644 index 000000000000..de57fe156593 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetMXRecordset.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get MX recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNAPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNAPTRRecordset.json new file mode 100644 index 000000000000..ed63a12e7670 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNAPTRRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "properties": { + "NAPTRRecords": [ + { + "flags": "U", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNSRecordset.json new file mode 100644 index 000000000000..385056add510 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetNSRecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get NS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetPTRRecordset.json new file mode 100644 index 000000000000..27abfb98de33 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetPTRRecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" + }, + "responses": { + "200": { + "body": { + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSOARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSOARecordset.json new file mode 100644 index 000000000000..311df10eb88a --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSOARecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "SOA", + "relativeRecordSetName": "@", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSRVRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSRVRecordset.json new file mode 100644 index 000000000000..8357f4f4da62 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetSRVRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTLSARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTLSARecordset.json new file mode 100644 index 000000000000..96ffbf2d1c7e --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTLSARecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTXTRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTXTRecordset.json new file mode 100644 index 000000000000..6213cf77ee60 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetTXTRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + } + }, + "operationId": "RecordSets_Get", + "title": "Get TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/GetZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetZone.json new file mode 100644 index 000000000000..664bb5057d8d --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/GetZone.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2 + }, + "tags": { + "key1": "value1" + } + } + } + }, + "operationId": "Zones_Get", + "title": "Get zone" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListAAAARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListAAAARecordset.json new file mode 100644 index 000000000000..a3841c4ce747 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListAAAARecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "AAAA", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List AAAA recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListARecordset.json new file mode 100644 index 000000000000..1c263798dfda --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListARecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "A", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List A recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCNAMERecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCNAMERecordset.json new file mode 100644 index 000000000000..fd9dbdb6bbcc --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCNAMERecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CNAME", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List CNAME recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCaaRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCaaRecordset.json new file mode 100644 index 000000000000..b6cd2873b119 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListCaaRecordset.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "CAA", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List CAA recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDSRecordset.json new file mode 100644 index 000000000000..85cadf1e7bf7 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDSRecordset.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "DS", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List DS recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDnssecConfigsByZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDnssecConfigsByZone.json new file mode 100644 index 000000000000..4e4562ed604c --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListDnssecConfigsByZone.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Network/dnszones/dnssecConfigs", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", + "properties": { + "provisioningState": "Succeeded", + "signingKeys": [ + { + "delegationSignerInfo": [], + "flags": 256, + "keyTag": 37721, + "publicKey": "publicKey1", + "securityAlgorithmType": 13, + "protocol": 3 + }, + { + "delegationSignerInfo": [ + { + "digestAlgorithmType": 2, + "digestValue": "digestValue1", + "record": "11920 13 2 digestValue1" + } + ], + "flags": 257, + "keyTag": 11920, + "publicKey": "publicKey2", + "securityAlgorithmType": 13, + "protocol": 3 + } + ] + } + } + ] + } + } + }, + "operationId": "DnssecConfigs_ListByDnsZone", + "title": "List DnssecConfigs" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListMXRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListMXRecordset.json new file mode 100644 index 000000000000..06785835e18c --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListMXRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "MX", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List MX recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNAPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNAPTRRecordset.json new file mode 100644 index 000000000000..0328d7051634 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNAPTRRecordset.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NAPTR", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "properties": { + "NAPTRRecords": [ + { + "flags": "u", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List NAPTR recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNSRecordset.json new file mode 100644 index 000000000000..1c583932d582 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListNSRecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "NS", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List NS recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListPTRRecordset.json new file mode 100644 index 000000000000..57fd970d6301 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListPTRRecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "PTR", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List PTR recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListRecordSetsByZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListRecordSetsByZone.json new file mode 100644 index 000000000000..c3408d789e28 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListRecordSetsByZone.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + }, + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + }, + { + "name": "record2", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record2", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record2.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListAllByDnsZone", + "title": "List all recordsets by zone" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSOARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSOARecordset.json new file mode 100644 index 000000000000..ace9a288fe6b --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSOARecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "SOA", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List SOA recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSRVRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSRVRecordset.json new file mode 100644 index 000000000000..ef641437b9b7 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListSRVRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "SRV", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List SRV recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTLSARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTLSARecordset.json new file mode 100644 index 000000000000..3f918801a1c0 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTLSARecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TLSA", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List TLSA recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTXTRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTXTRecordset.json new file mode 100644 index 000000000000..2886b44d266c --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListTXTRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "recordType": "TXT", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } + } + } + ] + } + } + }, + "operationId": "RecordSets_ListByType", + "title": "List TXT recordsets" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesByResourceGroup.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesByResourceGroup.json new file mode 100644 index 000000000000..12fb52fbe84a --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesByResourceGroup.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2 + }, + "tags": { + "key1": "value1" + } + }, + { + "name": "zone2", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone2", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-02.azure-dns.com", + "ns2-02.azure-dns.net", + "ns3-02.azure-dns.org", + "ns4-02.azure-dns.info" + ], + "numberOfRecordSets": 300 + } + } + ] + } + } + }, + "operationId": "Zones_ListByResourceGroup", + "title": "List zones by resource group" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesBySubscription.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesBySubscription.json new file mode 100644 index 000000000000..b70fb3d4470d --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/ListZonesBySubscription.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", + "value": [ + { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2 + }, + "tags": { + "key1": "value1" + } + }, + { + "name": "zone2", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/dnsZones/zone2", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-02.azure-dns.com", + "ns2-02.azure-dns.net", + "ns3-02.azure-dns.org", + "ns4-02.azure-dns.info" + ], + "numberOfRecordSets": 300 + } + } + ] + } + } + }, + "operationId": "Zones_List", + "title": "List zones by subscription" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchAAAARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchAAAARecordset.json new file mode 100644 index 000000000000..cc38a0b8874b --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchAAAARecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/AAAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", + "properties": { + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchARecordset.json new file mode 100644 index 000000000000..2b0494378fe3 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchARecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "properties": { + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch A recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCNAMERecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCNAMERecordset.json new file mode 100644 index 000000000000..3b8969339c95 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCNAMERecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", + "properties": { + "CNAMERecord": { + "cname": "contoso.com" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCaaRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCaaRecordset.json new file mode 100644 index 000000000000..d12e201a5821 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchCaaRecordset.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/CAA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", + "properties": { + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchDSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchDSRecordset.json new file mode 100644 index 000000000000..3b4c579dd917 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchDSRecordset.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", + "properties": { + "DSRecords": [ + { + "algorithm": 5, + "digest": { + "algorithmType": 1, + "value": "2BB183AF5F22588179A53B0A98631FAD1A292118" + }, + "keyTag": 60485 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch DS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchMXRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchMXRecordset.json new file mode 100644 index 000000000000..437464a33597 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchMXRecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/MX", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", + "properties": { + "MXRecords": [ + { + "exchange": "mail.contoso.com", + "preference": 0 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch MX recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNAPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNAPTRRecordset.json new file mode 100644 index 000000000000..5aa6d31e98e3 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNAPTRRecordset.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", + "properties": { + "NAPTRRecords": [ + { + "flags": "U", + "order": 100, + "preference": 10, + "regexp": "!^.*$!sip:user@example.com!", + "replacement": "", + "services": "E2U+sip" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNSRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNSRecordset.json new file mode 100644 index 000000000000..91fe9d114a89 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchNSRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/NS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", + "properties": { + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch NS recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchPTRRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchPTRRecordset.json new file mode 100644 index 000000000000..4cdfe8f7c851 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchPTRRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" + }, + "responses": { + "200": { + "body": { + "name": "1", + "type": "Microsoft.Network/dnsZones/PTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", + "properties": { + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSOARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSOARecordset.json new file mode 100644 index 000000000000..cf2a12a21647 --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSOARecordset.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "SOA", + "relativeRecordSetName": "@", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "@", + "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", + "properties": { + "SOARecord": { + "email": "hostmaster.contoso.com", + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, + "refreshTime": 3600, + "retryTime": 300, + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSRVRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSRVRecordset.json new file mode 100644 index 000000000000..e882cde5325c --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchSRVRecordset.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/SRV", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", + "properties": { + "SRVRecords": [ + { + "port": 80, + "priority": 0, + "target": "contoso.com", + "weight": 10 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTLSARecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTLSARecordset.json new file mode 100644 index 000000000000..189f85bdcfff --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTLSARecordset.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", + "properties": { + "TLSARecords": [ + { + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", + "matchingType": 1, + "selector": 1, + "usage": 3 + } + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTXTRecordset.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTXTRecordset.json new file mode 100644 index 000000000000..4b17001a971d --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchTXTRecordset.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + }, + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "record1", + "type": "Microsoft.Network/dnsZones/TXT", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", + "properties": { + "TTL": 3600, + "TXTRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ], + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } + } + } + } + }, + "operationId": "RecordSets_Update", + "title": "Patch TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchZone.json b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchZone.json new file mode 100644 index 000000000000..dd0b53ee3bfe --- /dev/null +++ b/specification/dns/Dns.Management/examples/2023-07-01-preview/PatchZone.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-07-01-preview", + "parameters": { + "tags": { + "key2": "value2" + } + }, + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" + }, + "responses": { + "200": { + "body": { + "name": "zone1", + "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", + "properties": { + "maxNumberOfRecordSets": 5000, + "nameServers": [ + "ns1-01.azure-dns.com", + "ns2-01.azure-dns.net", + "ns3-01.azure-dns.org", + "ns4-01.azure-dns.info" + ], + "numberOfRecordSets": 2 + }, + "tags": { + "key2": "value2" + } + } + } + }, + "operationId": "Zones_Update", + "title": "Patch zone" +} \ No newline at end of file diff --git a/specification/dns/Dns.Management/main.tsp b/specification/dns/Dns.Management/main.tsp new file mode 100644 index 000000000000..0a32dd6c5d82 --- /dev/null +++ b/specification/dns/Dns.Management/main.tsp @@ -0,0 +1,47 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.0 + * Date: 2025-04-29T15:46:38.058Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./DnssecConfig.tsp"; +import "./RecordSet.tsp"; +import "./Zone.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * The DNS Management Client. + */ +@armProviderNamespace +@service(#{ title: "DnsManagementClient" }) +@versioned(Versions) +// FIXME: Common type version v2 is not supported for now. Set to v3. +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Network; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2023-07-01-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2023_07_01_preview: "2023-07-01-preview", +} diff --git a/specification/dns/Dns.Management/models.tsp b/specification/dns/Dns.Management/models.tsp new file mode 100644 index 000000000000..9d4cfc9f46f8 --- /dev/null +++ b/specification/dns/Dns.Management/models.tsp @@ -0,0 +1,710 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.Network; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-enum" "For backward compatibility" +enum RecordType { + A, + AAAA, + CAA, + CNAME, + MX, + NS, + PTR, + SOA, + SRV, + TXT, + TLSA, + DS, + NAPTR, +} + +/** + * The type of this DNS zone (Public or Private). + */ +#suppress "@azure-tools/typespec-azure-core/no-enum" "For backward compatibility" +enum ZoneType { + Public, + Private, +} + +/** + * Represents the DNSSEC properties. + */ +model DnssecProperties { + /** + * Provisioning State of the DNSSEC configuration. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * The list of signing keys. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + signingKeys?: SigningKey[]; +} + +/** + * Represents the signing key. + */ +model SigningKey { + /** + * The delegation signer information. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + delegationSignerInfo?: DelegationSignerInfo[]; + + /** + * The flags specifies how the key is used. + */ + @visibility(Lifecycle.Read) + flags?: int32; + + /** + * The key tag value of the DNSKEY Resource Record. + */ + @visibility(Lifecycle.Read) + keyTag?: int32; + + /** + * The protocol value. The value is always 3. + */ + @visibility(Lifecycle.Read) + protocol?: int32; + + /** + * The public key, represented as a Base64 encoding. + */ + @visibility(Lifecycle.Read) + publicKey?: string; + + /** + * 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 + */ + @visibility(Lifecycle.Read) + securityAlgorithmType?: int32; +} + +/** + * The delegation signer information. + */ +model DelegationSignerInfo { + /** + * 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 + */ + @visibility(Lifecycle.Read) + digestAlgorithmType?: int32; + + /** + * The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record. + */ + @visibility(Lifecycle.Read) + digestValue?: string; + + /** + * The record represents a delegation signer (DS) record. + */ + @visibility(Lifecycle.Read) + record?: string; +} + +/** + * An error response from the service. + */ +@error +model CloudError { + /** + * Cloud error body. + */ + error?: CloudErrorBody; +} + +/** + * An error response from the service. + */ +model CloudErrorBody { + /** + * An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + */ + code?: string; + + /** + * A message describing the error, intended to be suitable for display in a user interface. + */ + message?: string; + + /** + * The target of the particular error. For example, the name of the property in error. + */ + target?: string; + + /** + * A list of additional details about the error. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + details?: CloudErrorBody[]; +} + +/** + * Represents the properties of the records in the record set. + */ +model RecordSetProperties { + /** + * The metadata attached to the record set. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + metadata?: Record; + + /** + * The TTL (time-to-live) of the records in the record set. + */ + TTL?: int64; + + /** + * Fully qualified domain name of the record set. + */ + @visibility(Lifecycle.Read) + fqdn?: string; + + /** + * provisioning State of the record set. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: string; + + /** + * A reference to an azure resource from where the dns resource value is taken. + */ + targetResource?: SubResource; + + /** + * A reference to an azure traffic manager profile resource from where the dns resource value is taken. + */ + trafficManagementProfile?: SubResource; + + /** + * The list of A records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + ARecords?: ARecord[]; + + /** + * The list of AAAA records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + AAAARecords?: AaaaRecord[]; + + /** + * The list of MX records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + MXRecords?: MxRecord[]; + + /** + * The list of NS records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + NSRecords?: NsRecord[]; + + /** + * The list of PTR records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + PTRRecords?: PtrRecord[]; + + /** + * The list of SRV records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + SRVRecords?: SrvRecord[]; + + /** + * The list of TXT records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + TXTRecords?: TxtRecord[]; + + /** + * The CNAME record in the record set. + */ + CNAMERecord?: CnameRecord; + + /** + * The SOA record in the record set. + */ + SOARecord?: SoaRecord; + + /** + * The list of CAA records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + caaRecords?: CaaRecord[]; + + /** + * The list of DS records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + DSRecords?: DsRecord[]; + + /** + * The list of TLSA records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + TLSARecords?: TlsaRecord[]; + + /** + * The list of NAPTR records in the record set. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + NAPTRRecords?: NaptrRecord[]; +} + +/** + * A reference to a another resource + */ +model SubResource { + /** + * Resource Id. + */ + id?: string; +} + +/** + * An A record. + */ +model ARecord { + /** + * The IPv4 address of this A record. + */ + ipv4Address?: string; +} + +/** + * An AAAA record. + */ +model AaaaRecord { + /** + * The IPv6 address of this AAAA record. + */ + ipv6Address?: string; +} + +/** + * An MX record. + */ +model MxRecord { + /** + * The preference value for this MX record. + */ + preference?: int32; + + /** + * The domain name of the mail host for this MX record. + */ + exchange?: string; +} + +/** + * An NS record. + */ +model NsRecord { + /** + * The name server name for this NS record. + */ + nsdname?: string; +} + +/** + * A PTR record. + */ +model PtrRecord { + /** + * The PTR target domain name for this PTR record. + */ + ptrdname?: string; +} + +/** + * An SRV record. + */ +model SrvRecord { + /** + * The priority value for this SRV record. + */ + priority?: int32; + + /** + * The weight value for this SRV record. + */ + weight?: int32; + + /** + * The port value for this SRV record. + */ + port?: int32; + + /** + * The target domain name for this SRV record. + */ + target?: string; +} + +/** + * A TXT record. + */ +model TxtRecord { + /** + * The text value of this TXT record. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + value?: string[]; +} + +/** + * A CNAME record. + */ +model CnameRecord { + /** + * The canonical name for this CNAME record. + */ + cname?: string; +} + +/** + * An SOA record. + */ +model SoaRecord { + /** + * The domain name of the authoritative name server for this SOA record. + */ + host?: string; + + /** + * The email contact for this SOA record. + */ + email?: string; + + /** + * The serial number for this SOA record. + */ + serialNumber?: int64; + + /** + * The refresh value for this SOA record. + */ + refreshTime?: int64; + + /** + * The retry time for this SOA record. + */ + retryTime?: int64; + + /** + * The expire time for this SOA record. + */ + expireTime?: int64; + + /** + * The minimum value for this SOA record. By convention this is used to determine the negative caching duration. + */ + minimumTTL?: int64; +} + +/** + * A CAA record. + */ +model CaaRecord { + /** + * The flags for this CAA record as an integer between 0 and 255. + */ + flags?: int32; + + /** + * The tag for this CAA record. + */ + tag?: string; + + /** + * The value for this CAA record. + */ + value?: string; +} + +/** + * A DS record. For more information about the DS record format, see RFC 4034: https://www.rfc-editor.org/rfc/rfc4034 + */ +model DsRecord { + /** + * The key tag value is used to determine which DNSKEY Resource Record is used for signature verification. + */ + keyTag?: int32; + + /** + * 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 + */ + algorithm?: int32; + + /** + * The digest entity. + */ + digest?: Digest; +} + +/** + * A digest. + */ +model Digest { + /** + * 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 + */ + algorithmType?: int32; + + /** + * The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record. + */ + value?: string; +} + +/** + * A TLSA record. For more information about the TLSA record format, see RFC 6698: https://www.rfc-editor.org/rfc/rfc6698 + */ +model TlsaRecord { + /** + * The usage specifies the provided association that will be used to match the certificate presented in the TLS handshake. + */ + usage?: int32; + + /** + * The selector specifies which part of the TLS certificate presented by the server will be matched against the association data. + */ + selector?: int32; + + /** + * The matching type specifies how the certificate association is presented. + */ + matchingType?: int32; + + /** + * This specifies the certificate association data to be matched. + */ + certAssociationData?: string; +} + +/** + * A NAPTR record. For more information about the NAPTR record format, see RFC 3403: https://www.rfc-editor.org/rfc/rfc3403 + */ +model NaptrRecord { + /** + * The order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of rules. The ordering is from lowest to highest. Valid values: 0-65535. + */ + order?: int32; + + /** + * The preference specifies the order in which NAPTR records with equal 'order' values should be processed, low numbers being processed before high numbers. Valid values: 0-65535. + */ + preference?: int32; + + /** + * The flags specific to DDDS applications. Values currently defined in RFC 3404 are uppercase and lowercase letters "A", "P", "S", and "U", and the empty string, "". Enclose Flags in quotation marks. + */ + flags?: string; + + /** + * The services specific to DDDS applications. Enclose Services in quotation marks. + */ + services?: string; + + /** + * The regular expression that the DDDS application uses to convert an input value into an output value. For example: an IP phone system might use a regular expression to convert a phone number that is entered by a user into a SIP URI. Enclose the regular expression in quotation marks. Specify either a value for 'regexp' or a value for 'replacement'. + */ + regexp?: string; + + /** + * The replacement is a fully qualified domain name (FQDN) of the next domain name that you want the DDDS application to submit a DNS query for. The DDDS application replaces the input value with the value specified for replacement. Specify either a value for 'regexp' or a value for 'replacement'. If you specify a value for 'regexp', specify a dot (.) for 'replacement'. + */ + replacement?: string; +} + +/** + * Represents the properties of the zone. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ZoneProperties { + /** + * 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. + */ + @visibility(Lifecycle.Read) + maxNumberOfRecordSets?: int64; + + /** + * 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. + */ + @visibility(Lifecycle.Read) + maxNumberOfRecordsPerRecordSet?: int64; + + /** + * 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. + */ + @visibility(Lifecycle.Read) + numberOfRecordSets?: int64; + + /** + * The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + nameServers?: string[]; + + /** + * The type of this DNS zone (Public or Private). + */ + zoneType?: ZoneType = ZoneType.Public; + + /** + * A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + registrationVirtualNetworks?: SubResource[]; + + /** + * A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + resolutionVirtualNetworks?: SubResource[]; + + /** + * The list of signing keys. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + signingKeys?: SigningKey[]; +} + +/** + * Common properties of an Azure Resource Manager resource + */ +model Resource { + /** + * Resource ID. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Resource name. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Resource type. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Resource location. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + location: string; + + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Describes a request to update a DNS zone. + */ +model ZoneUpdate { + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Represents the properties of the Dns Resource Reference Request. + */ +model DnsResourceReferenceRequest { + /** + * The properties of the Resource Reference Request. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DnsResourceReferenceRequestProperties; +} + +/** + * Represents the properties of the Dns Resource Reference Request. + */ +model DnsResourceReferenceRequestProperties { + /** + * A list of references to azure resources for which referencing dns records need to be queried. + */ + targetResources?: SubResource[]; +} + +/** + * Represents the properties of the Dns Resource Reference Result. + */ +model DnsResourceReferenceResult { + /** + * The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DnsResourceReferenceResultProperties; +} + +/** + * The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request. + */ +model DnsResourceReferenceResultProperties { + /** + * The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + dnsResourceReferences?: DnsResourceReference[]; +} + +/** + * Represents a single Azure resource and its referencing DNS records. + */ +model DnsResourceReference { + /** + * A list of dns Records + */ + dnsResources?: SubResource[]; + + /** + * A reference to an azure resource from where the dns resource value is taken. + */ + targetResource?: SubResource; +} + +/** + * Parameters supplied to update a record set. + */ +model RecordSetUpdateParameters { + /** + * Specifies information about the record set being updated. + */ + RecordSet?: RecordSet; +} diff --git a/specification/dns/Dns.Management/routes.tsp b/specification/dns/Dns.Management/routes.tsp new file mode 100644 index 000000000000..0cf8c79f7ead --- /dev/null +++ b/specification/dns/Dns.Management/routes.tsp @@ -0,0 +1,31 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface DnsResourceReferenceOperationGroup { + /** + * Returns the DNS records specified by the referencing targetResourceIds. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("DnsResourceReference_GetByTargetResources") + @autoRoute + @action("getDnsResourceReference") + getByTargetResources is ArmProviderActionSync< + Request = DnsResourceReferenceRequest, + Response = DnsResourceReferenceResult, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} diff --git a/specification/dns/Dns.Management/tspconfig.yaml b/specification/dns/Dns.Management/tspconfig.yaml new file mode 100644 index 000000000000..f18eb98e6077 --- /dev/null +++ b/specification/dns/Dns.Management/tspconfig.yaml @@ -0,0 +1,13 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/dns.json" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json index 2870bd3578a1..33d33f0a4631 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json @@ -2,582 +2,640 @@ "swagger": "2.0", "info": { "title": "DnsManagementClient", + "version": "2023-07-01-preview", "description": "The DNS Management Client.", - "version": "2023-07-01-preview" + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, + "tags": [ + { + "name": "DnssecConfigs" + }, + { + "name": "Zones" + }, + { + "name": "RecordSets" + } + ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default": { - "put": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsZones": { + "get": { + "operationId": "Zones_List", "tags": [ - "DnssecConfigs" + "Zones" ], - "operationId": "DnssecConfigs_CreateOrUpdate", - "description": "Creates or updates the DNSSEC configuration on a DNS zone.", + "description": "Lists the DNS zones in all resource groups in a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of the DNSSEC configuration. Omit this value to always overwrite the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." - }, - { - "name": "If-None-Match", - "in": "header", + "name": "$top", + "in": "query", + "description": "The maximum number of DNS zones to return. If not specified, returns up to 100 zones.", "required": false, - "type": "string", - "x-ms-client-name": "IfNoneMatch", - "description": "Set to '*' to allow this DNSSEC configuration to be created, but to prevent updating existing DNSSEC configuration. Other values will be ignored." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "type": "integer", + "format": "int32" } ], "responses": { - "201": { - "description": "The DNSSEC configuration has been created.", - "schema": { - "$ref": "#/definitions/DnssecConfig" - } - }, "200": { - "description": "The DNSSEC configuration has been updated.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DnssecConfig" + "$ref": "#/definitions/ZoneListResult" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Create DnssecConfig": { - "$ref": "./examples/CreateOrUpdateDnssecConfig.json" + "List zones by subscription": { + "$ref": "./examples/ListZonesBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { - "tags": [ - "DnssecConfigs" - ], - "operationId": "DnssecConfigs_Delete", - "description": "Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.", + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference": { + "post": { + "operationId": "DnsResourceReference_GetByTargetResources", + "description": "Returns the DNS records specified by the referencing targetResourceIds.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ZoneNameParameter" - }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of this DNSSEC configuration. Omit this value to always delete the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "body", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/DnsResourceReferenceRequest" + } } ], "responses": { - "204": { - "description": "The DNSSEC configuration was not found." - }, - "202": { - "headers": { - "Location": { - "description": "Location URI to poll for result", - "type": "string" - } - }, - "description": "The DNSSEC configuration delete operation has been accepted and will complete asynchronously." - }, "200": { - "description": "The DNSSEC configuration has been deleted." + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DnsResourceReferenceResult" + } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete DnssecConfig": { - "$ref": "./examples/DeleteDnssecConfig.json" + "Get DNS resource reference": { + "$ref": "./examples/GetDnsResourceReference.json" } } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones": { "get": { + "operationId": "Zones_ListByResourceGroup", "tags": [ - "DnssecConfigs" + "Zones" ], - "operationId": "DnssecConfigs_Get", - "description": "Gets the DNSSEC configuration.", + "description": "Lists the DNS zones within a resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "$top", + "in": "query", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets.", + "required": false, + "type": "integer", + "format": "int32" } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DnssecConfig" + "$ref": "#/definitions/ZoneListResult" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Get DnssecConfig": { - "$ref": "./examples/GetDnssecConfig.json" + "List zones by resource group": { + "$ref": "./examples/ListZonesByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}": { "get": { + "operationId": "Zones_Get", "tags": [ - "DnssecConfigs" + "Zones" ], - "operationId": "DnssecConfigs_ListByDnsZone", - "description": "Lists the DNSSEC configurations in a DNS zone.", + "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DnssecConfigListResult" + "$ref": "#/definitions/Zone" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "List DnssecConfigs": { - "$ref": "./examples/ListDnssecConfigsByZone.json" + "Get zone": { + "$ref": "./examples/GetZone.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}": { - "patch": { + }, + "put": { + "operationId": "Zones_CreateOrUpdate", "tags": [ - "RecordSets" + "Zones" ], - "operationId": "RecordSets_Update", - "description": "Updates a record set within a DNS zone.", + "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/RelativeRecordSetNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/RecordTypeParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "parameters", - "in": "body", + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", "required": true, - "schema": { - "$ref": "#/definitions/RecordSet" - }, - "description": "Parameters supplied to the Update operation." + "type": "string" }, { - "name": "If-Match", + "name": "if-match", "in": "header", + "description": "The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.", "required": false, "type": "string", - "x-ms-client-name": "IfMatch", - "description": "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." + "x-ms-client-name": "IfMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "if-none-match", + "in": "header", + "description": "Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored.", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate operation.", + "required": true, + "schema": { + "$ref": "#/definitions/Zone" + } } ], "responses": { "200": { - "description": "The record set has been updated.", + "description": "Resource 'Zone' update operation succeeded", "schema": { - "$ref": "#/definitions/RecordSet" + "$ref": "#/definitions/Zone" + } + }, + "201": { + "description": "Resource 'Zone' create operation succeeded", + "schema": { + "$ref": "#/definitions/Zone" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Patch A recordset": { - "$ref": "./examples/PatchARecordset.json" - }, - "Patch AAAA recordset": { - "$ref": "./examples/PatchAAAARecordset.json" - }, - "Patch CAA recordset": { - "$ref": "./examples/PatchCaaRecordset.json" - }, - "Patch CNAME recordset": { - "$ref": "./examples/PatchCNAMERecordset.json" - }, - "Patch MX recordset": { - "$ref": "./examples/PatchMXRecordset.json" - }, - "Patch NS recordset": { - "$ref": "./examples/PatchNSRecordset.json" - }, - "Patch PTR recordset": { - "$ref": "./examples/PatchPTRRecordset.json" - }, - "Patch SOA recordset": { - "$ref": "./examples/PatchSOARecordset.json" - }, - "Patch SRV recordset": { - "$ref": "./examples/PatchSRVRecordset.json" - }, - "Patch TXT recordset": { - "$ref": "./examples/PatchTXTRecordset.json" - }, - "Patch DS recordset": { - "$ref": "./examples/PatchDSRecordset.json" - }, - "Patch TLSA recordset": { - "$ref": "./examples/PatchTLSARecordset.json" - }, - "Patch NAPTR recordset": { - "$ref": "./examples/PatchNAPTRRecordset.json" + "Create zone": { + "$ref": "./examples/CreateOrUpdateZone.json" } } }, - "put": { + "patch": { + "operationId": "Zones_Update", "tags": [ - "RecordSets" + "Zones" ], - "operationId": "RecordSets_CreateOrUpdate", - "description": "Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).", + "description": "Updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/RelativeRecordSetNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/RecordTypeParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "parameters", - "in": "body", + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", "required": true, - "schema": { - "$ref": "#/definitions/RecordSet" - }, - "description": "Parameters supplied to the CreateOrUpdate operation." - }, - { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "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 any concurrent changes." + "type": "string" }, { - "name": "If-None-Match", + "name": "if-match", "in": "header", + "description": "The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.", "required": false, "type": "string", - "x-ms-client-name": "IfNoneMatch", - "description": "Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "x-ms-client-name": "IfMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Update operation.", + "required": true, + "schema": { + "$ref": "#/definitions/ZoneUpdate" + } } ], "responses": { - "201": { - "description": "The record set has been created.", - "schema": { - "$ref": "#/definitions/RecordSet" - } - }, "200": { - "description": "The record set has been updated.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/RecordSet" + "$ref": "#/definitions/Zone" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Create A recordset": { - "$ref": "./examples/CreateOrUpdateARecordset.json" - }, - "Create A recordset with alias target resource": { - "$ref": "./examples/CreateOrUpdateARecordsetAlias.json" - }, - "Create A recordset with traffic management profile": { - "$ref": "./examples/CreateOrUpdateARecordSetTrafficManagementProfile.json" - }, - "Create AAAA recordset": { - "$ref": "./examples/CreateOrUpdateAAAARecordset.json" - }, - "Create CAA recordset": { - "$ref": "./examples/CreateOrUpdateCaaRecordset.json" - }, - "Create CNAME recordset": { - "$ref": "./examples/CreateOrUpdateCNAMERecordset.json" - }, - "Create MX recordset": { - "$ref": "./examples/CreateOrUpdateMXRecordset.json" - }, - "Create NS recordset": { - "$ref": "./examples/CreateOrUpdateNSRecordset.json" + "Patch zone": { + "$ref": "./examples/PatchZone.json" + } + } + }, + "delete": { + "operationId": "Zones_Delete", + "tags": [ + "Zones" + ], + "description": "Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, - "Create PTR recordset": { - "$ref": "./examples/CreateOrUpdatePTRRecordset.json" + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, - "Create SOA recordset": { - "$ref": "./examples/CreateOrUpdateSOARecordset.json" + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, - "Create SRV recordset": { - "$ref": "./examples/CreateOrUpdateSRVRecordset.json" + { + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" }, - "Create TXT recordset": { - "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + { + "name": "if-match", + "in": "header", + "description": "The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." }, - "Create DS recordset": { - "$ref": "./examples/CreateOrUpdateDSRecordset.json" + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, - "Create TLSA recordset": { - "$ref": "./examples/CreateOrUpdateTLSARecordset.json" + "204": { + "description": "Resource does not exist." }, - "Create NAPTR recordset": { - "$ref": "./examples/CreateOrUpdateNAPTRRecordset.json" + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } } - } - }, - "delete": { + }, + "x-ms-examples": { + "Delete zone": { + "$ref": "./examples/DeleteZone.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{recordType}": { + "get": { + "operationId": "RecordSets_ListByType", "tags": [ "RecordSets" ], - "operationId": "RecordSets_Delete", - "description": "Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).", + "description": "Lists the record sets of a specified type in a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/RelativeRecordSetNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/RecordTypeParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" }, { - "name": "If-Match", - "in": "header", - "required": false, + "name": "recordType", + "in": "path", + "description": "The type of DNS record in this record set.", + "required": true, "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "$top", + "in": "query", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets.", + "required": false, + "type": "integer", + "format": "int32" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "$recordsetnamesuffix", + "in": "query", + "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", + "required": false, + "type": "string" } ], "responses": { - "204": { - "description": "The record set was not found." - }, "200": { - "description": "The record set has been deleted." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Delete A recordset": { - "$ref": "./examples/DeleteARecordset.json" + "List A recordsets": { + "$ref": "./examples/ListARecordset.json" }, - "Delete AAAA recordset": { - "$ref": "./examples/DeleteAAAARecordset.json" + "List AAAA recordsets": { + "$ref": "./examples/ListAAAARecordset.json" }, - "Delete CAA recordset": { - "$ref": "./examples/DeleteCaaRecordset.json" + "List CAA recordsets": { + "$ref": "./examples/ListCaaRecordset.json" }, - "Delete CNAME recordset": { - "$ref": "./examples/DeleteCNAMERecordset.json" + "List CNAME recordsets": { + "$ref": "./examples/ListCNAMERecordset.json" }, - "Delete MX recordset": { - "$ref": "./examples/DeleteMXRecordset.json" + "List DS recordsets": { + "$ref": "./examples/ListDSRecordset.json" }, - "Delete NS recordset": { - "$ref": "./examples/DeleteNSRecordset.json" + "List MX recordsets": { + "$ref": "./examples/ListMXRecordset.json" }, - "Delete PTR recordset": { - "$ref": "./examples/DeletePTRRecordset.json" + "List NAPTR recordsets": { + "$ref": "./examples/ListNAPTRRecordset.json" }, - "Delete SRV recordset": { - "$ref": "./examples/DeleteSRVRecordset.json" + "List NS recordsets": { + "$ref": "./examples/ListNSRecordset.json" }, - "Delete TXT recordset": { - "$ref": "./examples/DeleteTXTRecordset.json" + "List PTR recordsets": { + "$ref": "./examples/ListPTRRecordset.json" }, - "Delete DS recordset": { - "$ref": "./examples/DeleteDSRecordset.json" + "List SOA recordsets": { + "$ref": "./examples/ListSOARecordset.json" }, - "Delete TLSA recordset": { - "$ref": "./examples/DeleteTLSARecordset.json" + "List SRV recordsets": { + "$ref": "./examples/ListSRVRecordset.json" }, - "Delete NAPTR recordset": { - "$ref": "./examples/DeleteNAPTRRecordset.json" + "List TLSA recordsets": { + "$ref": "./examples/ListTLSARecordset.json" + }, + "List TXT recordsets": { + "$ref": "./examples/ListTXTRecordset.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}/{recordType}": { "get": { + "operationId": "RecordSets_Get", "tags": [ "RecordSets" ], - "operationId": "RecordSets_Get", "description": "Gets a record set.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/RelativeRecordSetNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/RecordTypeParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "relativeRecordSetName", + "in": "path", + "description": "The name of the record set, relative to the name of the zone.", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "recordType", + "in": "path", + "description": "The type of DNS record in this record set.", + "required": true, + "type": "string", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/RecordSet" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -594,9 +652,15 @@ "Get CNAME recordset": { "$ref": "./examples/GetCNAMERecordset.json" }, + "Get DS recordset": { + "$ref": "./examples/GetDSRecordset.json" + }, "Get MX recordset": { "$ref": "./examples/GetMXRecordset.json" }, + "Get NAPTR recordset": { + "$ref": "./examples/GetNAPTRRecordset.json" + }, "Get NS recordset": { "$ref": "./examples/GetNSRecordset.json" }, @@ -609,605 +673,789 @@ "Get SRV recordset": { "$ref": "./examples/GetSRVRecordset.json" }, - "Get TXT recordset": { - "$ref": "./examples/GetTXTRecordset.json" - }, - "Get DS recordset": { - "$ref": "./examples/GetDSRecordset.json" - }, "Get TLSA recordset": { "$ref": "./examples/GetTLSARecordset.json" }, - "Get NAPTR recordset": { - "$ref": "./examples/GetNAPTRRecordset.json" + "Get TXT recordset": { + "$ref": "./examples/GetTXTRecordset.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}": { - "get": { + }, + "put": { + "operationId": "RecordSets_CreateOrUpdate", "tags": [ "RecordSets" ], - "operationId": "RecordSets_ListByType", - "description": "Lists the record sets of a specified type in a DNS zone.", + "description": "Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/RecordTypeParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" }, { - "name": "$recordsetnamesuffix", - "in": "query", + "name": "relativeRecordSetName", + "in": "path", + "description": "The name of the record set, relative to the name of the zone.", + "required": true, + "type": "string" + }, + { + "name": "recordType", + "in": "path", + "description": "The type of DNS record in this record set.", + "required": true, + "type": "string", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "if-match", + "in": "header", + "description": "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 any concurrent changes.", "required": false, "type": "string", - "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with ." + "x-ms-client-name": "IfMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "if-none-match", + "in": "header", + "description": "Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored.", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate operation.", + "required": true, + "schema": { + "$ref": "#/definitions/RecordSet" + } } ], "responses": { "200": { - "description": "Success.", + "description": "Resource 'RecordSet' update operation succeeded", "schema": { - "$ref": "#/definitions/RecordSetListResult" + "$ref": "#/definitions/RecordSet" + } + }, + "201": { + "description": "Resource 'RecordSet' create operation succeeded", + "schema": { + "$ref": "#/definitions/RecordSet" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "List A recordsets": { - "$ref": "./examples/ListARecordset.json" + "Create A recordset": { + "$ref": "./examples/CreateOrUpdateARecordset.json" }, - "List AAAA recordsets": { - "$ref": "./examples/ListAAAARecordset.json" + "Create A recordset with alias target resource": { + "$ref": "./examples/CreateOrUpdateARecordsetAlias.json" }, - "List CAA recordsets": { - "$ref": "./examples/ListCaaRecordset.json" + "Create A recordset with traffic management profile": { + "$ref": "./examples/CreateOrUpdateARecordSetTrafficManagementProfile.json" }, - "List CNAME recordsets": { - "$ref": "./examples/ListCNAMERecordset.json" + "Create AAAA recordset": { + "$ref": "./examples/CreateOrUpdateAAAARecordset.json" }, - "List MX recordsets": { - "$ref": "./examples/ListMXRecordset.json" + "Create CAA recordset": { + "$ref": "./examples/CreateOrUpdateCaaRecordset.json" }, - "List NS recordsets": { - "$ref": "./examples/ListNSRecordset.json" + "Create CNAME recordset": { + "$ref": "./examples/CreateOrUpdateCNAMERecordset.json" }, - "List PTR recordsets": { - "$ref": "./examples/ListPTRRecordset.json" + "Create DS recordset": { + "$ref": "./examples/CreateOrUpdateDSRecordset.json" }, - "List SOA recordsets": { - "$ref": "./examples/ListSOARecordset.json" + "Create MX recordset": { + "$ref": "./examples/CreateOrUpdateMXRecordset.json" }, - "List SRV recordsets": { - "$ref": "./examples/ListSRVRecordset.json" + "Create NAPTR recordset": { + "$ref": "./examples/CreateOrUpdateNAPTRRecordset.json" }, - "List TXT recordsets": { - "$ref": "./examples/ListTXTRecordset.json" + "Create NS recordset": { + "$ref": "./examples/CreateOrUpdateNSRecordset.json" }, - "List DS recordsets": { - "$ref": "./examples/ListDSRecordset.json" + "Create PTR recordset": { + "$ref": "./examples/CreateOrUpdatePTRRecordset.json" }, - "List TLSA recordsets": { - "$ref": "./examples/ListTLSARecordset.json" + "Create SOA recordset": { + "$ref": "./examples/CreateOrUpdateSOARecordset.json" }, - "List NAPTR recordsets": { - "$ref": "./examples/ListNAPTRRecordset.json" + "Create SRV recordset": { + "$ref": "./examples/CreateOrUpdateSRVRecordset.json" + }, + "Create TLSA recordset": { + "$ref": "./examples/CreateOrUpdateTLSARecordset.json" + }, + "Create TXT recordset": { + "$ref": "./examples/CreateOrUpdateTXTRecordset.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets": { - "get": { + }, + "patch": { + "operationId": "RecordSets_Update", "tags": [ "RecordSets" ], - "operationId": "RecordSets_ListByDnsZone", - "description": "Lists all record sets in a DNS zone.", + "description": "Updates a record set within a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$recordsetnamesuffix", - "in": "query", - "required": false, + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" + }, + { + "name": "relativeRecordSetName", + "in": "path", + "description": "The name of the record set, relative to the name of the zone.", + "required": true, + "type": "string" + }, + { + "name": "recordType", + "in": "path", + "description": "The type of DNS record in this record set.", + "required": true, "type": "string", - "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with ." + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "if-match", + "in": "header", + "description": "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.", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Update operation.", + "required": true, + "schema": { + "$ref": "#/definitions/RecordSet" + } } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/RecordSetListResult" + "$ref": "#/definitions/RecordSet" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "List recordsets by zone": { - "$ref": "./examples/ListRecordSetsByZone.json" + "Patch A recordset": { + "$ref": "./examples/PatchARecordset.json" + }, + "Patch AAAA recordset": { + "$ref": "./examples/PatchAAAARecordset.json" + }, + "Patch CAA recordset": { + "$ref": "./examples/PatchCaaRecordset.json" + }, + "Patch CNAME recordset": { + "$ref": "./examples/PatchCNAMERecordset.json" + }, + "Patch DS recordset": { + "$ref": "./examples/PatchDSRecordset.json" + }, + "Patch MX recordset": { + "$ref": "./examples/PatchMXRecordset.json" + }, + "Patch NAPTR recordset": { + "$ref": "./examples/PatchNAPTRRecordset.json" + }, + "Patch NS recordset": { + "$ref": "./examples/PatchNSRecordset.json" + }, + "Patch PTR recordset": { + "$ref": "./examples/PatchPTRRecordset.json" + }, + "Patch SOA recordset": { + "$ref": "./examples/PatchSOARecordset.json" + }, + "Patch SRV recordset": { + "$ref": "./examples/PatchSRVRecordset.json" + }, + "Patch TLSA recordset": { + "$ref": "./examples/PatchTLSARecordset.json" + }, + "Patch TXT recordset": { + "$ref": "./examples/PatchTXTRecordset.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all": { - "get": { + }, + "delete": { + "operationId": "RecordSets_Delete", "tags": [ "RecordSets" ], - "operationId": "RecordSets_ListAllByDnsZone", - "description": "Lists all record sets in a DNS zone.", + "description": "Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "$recordsetnamesuffix", - "in": "query", - "required": false, - "type": "string", - "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", - "x-ms-client-name": "recordSetNameSuffix" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" + }, + { + "name": "relativeRecordSetName", + "in": "path", + "description": "The name of the record set, relative to the name of the zone.", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "recordType", + "in": "path", + "description": "The type of DNS record in this record set.", + "required": true, + "type": "string", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT", + "TLSA", + "DS", + "NAPTR" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "if-match", + "in": "header", + "description": "The etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch" } ], "responses": { "200": { - "description": "Success.", - "schema": { - "$ref": "#/definitions/RecordSetListResult" - } + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "List all recordsets by zone": { - "$ref": "./examples/ListRecordSetsByZone.json" + "Delete A recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete AAAA recordset": { + "$ref": "./examples/DeleteAAAARecordset.json" + }, + "Delete CAA recordset": { + "$ref": "./examples/DeleteCaaRecordset.json" + }, + "Delete CNAME recordset": { + "$ref": "./examples/DeleteCNAMERecordset.json" + }, + "Delete DS recordset": { + "$ref": "./examples/DeleteDSRecordset.json" + }, + "Delete MX recordset": { + "$ref": "./examples/DeleteMXRecordset.json" + }, + "Delete NAPTR recordset": { + "$ref": "./examples/DeleteNAPTRRecordset.json" + }, + "Delete NS recordset": { + "$ref": "./examples/DeleteNSRecordset.json" + }, + "Delete PTR recordset": { + "$ref": "./examples/DeletePTRRecordset.json" + }, + "Delete SRV recordset": { + "$ref": "./examples/DeleteSRVRecordset.json" + }, + "Delete TLSA recordset": { + "$ref": "./examples/DeleteTLSARecordset.json" + }, + "Delete TXT recordset": { + "$ref": "./examples/DeleteTXTRecordset.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all": { + "get": { + "operationId": "RecordSets_ListAllByDnsZone", "tags": [ "Zones" ], - "operationId": "Zones_CreateOrUpdate", - "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", + "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "parameters", - "in": "body", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", "required": true, - "schema": { - "$ref": "#/definitions/Zone" - }, - "description": "Parameters supplied to the CreateOrUpdate operation." + "type": "string" }, { - "name": "If-Match", - "in": "header", + "name": "$top", + "in": "query", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets.", "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." + "type": "integer", + "format": "int32" }, { - "name": "If-None-Match", - "in": "header", + "name": "$recordsetnamesuffix", + "in": "query", + "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", "required": false, "type": "string", - "x-ms-client-name": "IfNoneMatch", - "description": "Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "x-ms-client-name": "recordSetNameSuffix" } ], "responses": { "200": { - "description": "The DNS zone has been updated.", - "schema": { - "$ref": "#/definitions/Zone" - } - }, - "201": { - "description": "The DNS zone has been created.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Zone" + "$ref": "#/definitions/RecordSetListResult" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Create zone": { - "$ref": "./examples/CreateOrUpdateZone.json" + "List all recordsets by zone": { + "$ref": "./examples/ListRecordSetsByZone.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs": { + "get": { + "operationId": "DnssecConfigs_ListByDnsZone", "tags": [ - "Zones" + "DnssecConfigs" ], - "operationId": "Zones_Delete", - "description": "Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.", + "description": "Lists the DNSSEC configurations in a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "If-Match", - "in": "header", - "required": false, - "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" } ], "responses": { - "204": { - "description": "The DNS zone was not found." - }, - "202": { - "headers": { - "Location": { - "description": "Location URI to poll for result", - "type": "string" - } - }, - "description": "The DNS zone delete operation has been accepted and will complete asynchronously." - }, "200": { - "description": "The DNS zone has been deleted." + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DnssecConfigListResult" + } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete zone": { - "$ref": "./examples/DeleteZone.json" + "List DnssecConfigs": { + "$ref": "./examples/ListDnssecConfigsByZone.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/dnssecConfigs/default": { "get": { + "operationId": "DnssecConfigs_Get", "tags": [ - "Zones" + "DnssecConfigs" ], - "operationId": "Zones_Get", - "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", + "description": "Gets the DNSSEC configuration.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Zone" + "$ref": "#/definitions/DnssecConfig" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Get zone": { - "$ref": "./examples/GetZone.json" + "Get DnssecConfig": { + "$ref": "./examples/GetDnssecConfig.json" } } }, - "patch": { + "put": { + "operationId": "DnssecConfigs_CreateOrUpdate", "tags": [ - "Zones" + "DnssecConfigs" ], - "operationId": "Zones_Update", - "description": "Updates a DNS zone. Does not modify DNS records within the zone.", + "description": "Creates or updates the DNSSEC configuration on a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ZoneNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "parameters", - "in": "body", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", "required": true, - "schema": { - "$ref": "#/definitions/ZoneUpdate" - }, - "description": "Parameters supplied to the Update operation." + "type": "string" }, { - "name": "If-Match", + "name": "if-match", "in": "header", + "description": "The etag of the DNSSEC configuration. Omit this value to always overwrite the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.", "required": false, "type": "string", - "x-ms-client-name": "IfMatch", - "description": "The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes." + "x-ms-client-name": "IfMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "if-none-match", + "in": "header", + "description": "Set to '*' to allow this DNSSEC configuration to be created, but to prevent updating existing DNSSEC configuration. Other values will be ignored.", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/DnssecConfig" + } } ], "responses": { "200": { - "description": "The DNS zone has been updated.", + "description": "Resource 'DnssecConfig' update operation succeeded", "schema": { - "$ref": "#/definitions/Zone" + "$ref": "#/definitions/DnssecConfig" + } + }, + "201": { + "description": "Resource 'DnssecConfig' create operation succeeded", + "schema": { + "$ref": "#/definitions/DnssecConfig" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Patch zone": { - "$ref": "./examples/PatchZone.json" + "Create DnssecConfig": { + "$ref": "./examples/CreateOrUpdateDnssecConfig.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "DnssecConfigs_Delete", "tags": [ - "Zones" + "DnssecConfigs" ], - "operationId": "Zones_ListByResourceGroup", - "description": "Lists the DNS zones within a resource group.", + "description": "Deletes the DNSSEC configuration on a DNS zone. This operation cannot be undone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "if-match", + "in": "header", + "description": "The etag of this DNSSEC configuration. Omit this value to always delete the DNSSEC configuration. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch" } ], "responses": { "200": { - "description": "Success.", - "schema": { - "$ref": "#/definitions/ZoneListResult" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "List zones by resource group": { - "$ref": "./examples/ListZonesByResourceGroup.json" + "Delete DnssecConfig": { + "$ref": "./examples/DeleteDnssecConfig.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference": { - "post": { - "operationId": "DnsResourceReference_GetByTargetResources", - "description": "Returns the DNS records specified by the referencing targetResourceIds.", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets": { + "get": { + "operationId": "RecordSets_ListByDnsZone", + "tags": [ + "Zones" + ], + "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "parameters", - "in": "body", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "zoneName", + "in": "path", + "description": "The name of the DNS zone (without a terminating dot).", "required": true, - "schema": { - "$ref": "#/definitions/DnsResourceReferenceRequest" - }, - "description": "Properties for dns resource reference request." - } - ], - "responses": { - "200": { - "description": "Success.", - "schema": { - "$ref": "#/definitions/DnsResourceReferenceResult" - } + "type": "string" }, - "default": { - "description": "Default response. It will be deserialized as per the Error definition.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get DNS resource reference": { - "$ref": "./examples/GetDnsResourceReference.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones": { - "get": { - "tags": [ - "Zones" - ], - "operationId": "Zones_List", - "description": "Lists the DNS zones in all resource groups in a subscription.", - "parameters": [ { "name": "$top", "in": "query", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets.", "required": false, "type": "integer", - "format": "int32", - "description": "The maximum number of DNS zones to return. If not specified, returns up to 100 zones." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "format": "int32" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "name": "$recordsetnamesuffix", + "in": "query", + "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Success.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ZoneListResult" + "$ref": "#/definitions/RecordSetListResult" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List zones by subscription": { - "$ref": "./examples/ListZonesBySubscription.json" - } } } } @@ -1215,192 +1463,220 @@ "definitions": { "ARecord": { "type": "object", + "description": "An A record.", "properties": { "ipv4Address": { "type": "string", "description": "The IPv4 address of this A record." } - }, - "description": "An A record." + } }, "AaaaRecord": { "type": "object", + "description": "An AAAA record.", "properties": { "ipv6Address": { "type": "string", "description": "The IPv6 address of this AAAA record." } - }, - "description": "An AAAA record." + } }, - "MxRecord": { + "CaaRecord": { "type": "object", + "description": "A CAA record.", "properties": { - "preference": { + "flags": { "type": "integer", "format": "int32", - "description": "The preference value for this MX record." + "description": "The flags for this CAA record as an integer between 0 and 255." }, - "exchange": { + "tag": { "type": "string", - "description": "The domain name of the mail host for this MX record." - } - }, - "description": "An MX record." - }, - "NsRecord": { - "type": "object", - "properties": { - "nsdname": { + "description": "The tag for this CAA record." + }, + "value": { "type": "string", - "description": "The name server name for this NS record." + "description": "The value for this CAA record." } - }, - "description": "An NS record." + } }, - "PtrRecord": { + "CnameRecord": { "type": "object", + "description": "A CNAME record.", "properties": { - "ptrdname": { + "cname": { "type": "string", - "description": "The PTR target domain name for this PTR record." + "description": "The canonical name for this CNAME record." } - }, - "description": "A PTR record." + } }, - "SrvRecord": { + "DelegationSignerInfo": { "type": "object", + "description": "The delegation signer information.", "properties": { - "priority": { + "digestAlgorithmType": { "type": "integer", "format": "int32", - "description": "The priority value for this SRV record." + "description": "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", + "readOnly": true }, - "weight": { - "type": "integer", - "format": "int32", - "description": "The weight value for this SRV record." + "digestValue": { + "type": "string", + "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.", + "readOnly": true }, - "port": { + "record": { + "type": "string", + "description": "The record represents a delegation signer (DS) record.", + "readOnly": true + } + } + }, + "Digest": { + "type": "object", + "description": "A digest.", + "properties": { + "algorithmType": { "type": "integer", "format": "int32", - "description": "The port value for this SRV record." + "description": "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" }, - "target": { + "value": { "type": "string", - "description": "The target domain name for this SRV record." + "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record." } - }, - "description": "An SRV record." + } }, - "TxtRecord": { + "DnsResourceReference": { "type": "object", + "description": "Represents a single Azure resource and its referencing DNS records.", "properties": { - "value": { + "dnsResources": { "type": "array", - "x-ms-identifiers": [], + "description": "A list of dns Records", "items": { - "type": "string" - }, - "description": "The text value of this TXT record." + "$ref": "#/definitions/SubResource" + } + }, + "targetResource": { + "$ref": "#/definitions/SubResource", + "description": "A reference to an azure resource from where the dns resource value is taken." } - }, - "description": "A TXT record." + } }, - "CnameRecord": { + "DnsResourceReferenceRequest": { "type": "object", + "description": "Represents the properties of the Dns Resource Reference Request.", "properties": { - "cname": { - "type": "string", - "description": "The canonical name for this CNAME record." + "properties": { + "$ref": "#/definitions/DnsResourceReferenceRequestProperties", + "description": "The properties of the Resource Reference Request.", + "x-ms-client-flatten": true } - }, - "description": "A CNAME record." + } }, - "SoaRecord": { + "DnsResourceReferenceRequestProperties": { "type": "object", + "description": "Represents the properties of the Dns Resource Reference Request.", "properties": { - "host": { - "type": "string", - "description": "The domain name of the authoritative name server for this SOA record." + "targetResources": { + "type": "array", + "description": "A list of references to azure resources for which referencing dns records need to be queried.", + "items": { + "$ref": "#/definitions/SubResource" + } + } + } + }, + "DnsResourceReferenceResult": { + "type": "object", + "description": "Represents the properties of the Dns Resource Reference Result.", + "properties": { + "properties": { + "$ref": "#/definitions/DnsResourceReferenceResultProperties", + "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request.", + "x-ms-client-flatten": true + } + } + }, + "DnsResourceReferenceResultProperties": { + "type": "object", + "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request.", + "properties": { + "dnsResourceReferences": { + "type": "array", + "description": "The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request", + "items": { + "$ref": "#/definitions/DnsResourceReference" + }, + "x-ms-identifiers": [] + } + } + }, + "DnssecConfig": { + "type": "object", + "description": "Represents the DNSSEC configuration.", + "properties": { + "properties": { + "$ref": "#/definitions/DnssecProperties", + "description": "The DNSSEC properties.", + "x-ms-client-flatten": true }, - "email": { + "etag": { "type": "string", - "description": "The email contact for this SOA record." - }, - "serialNumber": { - "type": "integer", - "format": "int64", - "description": "The serial number for this SOA record." - }, - "refreshTime": { - "type": "integer", - "format": "int64", - "description": "The refresh value for this SOA record." - }, - "retryTime": { - "type": "integer", - "format": "int64", - "description": "The retry time for this SOA record." - }, - "expireTime": { - "type": "integer", - "format": "int64", - "description": "The expire time for this SOA record." - }, - "minimumTTL": { - "type": "integer", - "format": "int64", - "x-ms-client-name": "minimumTtl", - "description": "The minimum value for this SOA record. By convention this is used to determine the negative caching duration." + "description": "The etag of the DNSSEC configuration." } }, - "description": "An SOA record." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, - "CaaRecord": { + "DnssecConfigListResult": { "type": "object", + "description": "The response of a DnssecConfig list operation.", "properties": { - "flags": { - "type": "integer", - "format": "int32", - "description": "The flags for this CAA record as an integer between 0 and 255." - }, - "tag": { - "type": "string", - "description": "The tag for this CAA record." - }, "value": { + "type": "array", + "description": "The DnssecConfig items on this page", + "items": { + "$ref": "#/definitions/DnssecConfig" + } + }, + "nextLink": { "type": "string", - "description": "The value for this CAA record." + "format": "uri", + "description": "The link to the next page of items" } }, - "description": "A CAA record." - }, - "DigestAlgorithmType": { - "type": "integer", - "format": "int32", - "description": "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" - }, - "SecurityAlgorithmType": { - "type": "integer", - "format": "int32", - "description": "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" + "required": [ + "value" + ] }, - "Digest": { + "DnssecProperties": { "type": "object", + "description": "Represents the DNSSEC properties.", "properties": { - "algorithmType": { - "$ref": "#/definitions/DigestAlgorithmType" - }, - "value": { + "provisioningState": { "type": "string", - "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record." + "description": "Provisioning State of the DNSSEC configuration.", + "readOnly": true + }, + "signingKeys": { + "type": "array", + "description": "The list of signing keys.", + "items": { + "$ref": "#/definitions/SigningKey" + }, + "readOnly": true, + "x-ms-identifiers": [] } - }, - "description": "A digest." + } }, "DsRecord": { "type": "object", + "description": "A DS record. For more information about the DS record format, see RFC 4034: https://www.rfc-editor.org/rfc/rfc4034", "properties": { "keyTag": { "type": "integer", @@ -1408,42 +1684,34 @@ "description": "The key tag value is used to determine which DNSKEY Resource Record is used for signature verification." }, "algorithm": { - "$ref": "#/definitions/SecurityAlgorithmType" + "type": "integer", + "format": "int32", + "description": "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" }, "digest": { "$ref": "#/definitions/Digest", "description": "The digest entity." } - }, - "description": "A DS record. For more information about the DS record format, see RFC 4034: https://www.rfc-editor.org/rfc/rfc4034" + } }, - "TlsaRecord": { + "MxRecord": { "type": "object", + "description": "An MX record.", "properties": { - "usage": { - "type": "integer", - "format": "int32", - "description": "The usage specifies the provided association that will be used to match the certificate presented in the TLS handshake." - }, - "selector": { - "type": "integer", - "format": "int32", - "description": "The selector specifies which part of the TLS certificate presented by the server will be matched against the association data." - }, - "matchingType": { + "preference": { "type": "integer", "format": "int32", - "description": "The matching type specifies how the certificate association is presented." + "description": "The preference value for this MX record." }, - "certAssociationData": { + "exchange": { "type": "string", - "description": "This specifies the certificate association data to be matched." + "description": "The domain name of the mail host for this MX record." } - }, - "description": "A TLSA record. For more information about the TLSA record format, see RFC 6698: https://www.rfc-editor.org/rfc/rfc6698" + } }, "NaptrRecord": { "type": "object", + "description": "A NAPTR record. For more information about the NAPTR record format, see RFC 3403: https://www.rfc-editor.org/rfc/rfc3403", "properties": { "order": { "type": "integer", @@ -1471,18 +1739,79 @@ "type": "string", "description": "The replacement is a fully qualified domain name (FQDN) of the next domain name that you want the DDDS application to submit a DNS query for. The DDDS application replaces the input value with the value specified for replacement. Specify either a value for 'regexp' or a value for 'replacement'. If you specify a value for 'regexp', specify a dot (.) for 'replacement'." } + } + }, + "NsRecord": { + "type": "object", + "description": "An NS record.", + "properties": { + "nsdname": { + "type": "string", + "description": "The name server name for this NS record." + } + } + }, + "PtrRecord": { + "type": "object", + "description": "A PTR record.", + "properties": { + "ptrdname": { + "type": "string", + "description": "The PTR target domain name for this PTR record." + } + } + }, + "RecordSet": { + "type": "object", + "description": "Describes a DNS record set (a collection of DNS records with the same name and type).", + "properties": { + "properties": { + "$ref": "#/definitions/RecordSetProperties", + "description": "The properties of the record set.", + "x-ms-client-flatten": true + }, + "etag": { + "type": "string", + "description": "The etag of the record set." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "RecordSetListResult": { + "type": "object", + "description": "The response of a RecordSet list operation.", + "properties": { + "value": { + "type": "array", + "description": "The RecordSet items on this page", + "items": { + "$ref": "#/definitions/RecordSet" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } }, - "description": "A NAPTR record. For more information about the NAPTR record format, see RFC 3403: https://www.rfc-editor.org/rfc/rfc3403" + "required": [ + "value" + ] }, "RecordSetProperties": { "type": "object", + "description": "Represents the properties of the records in the record set.", "properties": { "metadata": { "type": "object", + "description": "The metadata attached to the record set.", "additionalProperties": { "type": "string" - }, - "description": "The metadata attached to the record set." + } }, "TTL": { "type": "integer", @@ -1509,313 +1838,316 @@ }, "ARecords": { "type": "array", - "x-ms-identifiers": [], + "description": "The list of A records in the record set.", "items": { "$ref": "#/definitions/ARecord" }, - "description": "The list of A records in the record set." + "x-ms-client-name": "aRecords", + "x-ms-identifiers": [] }, "AAAARecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "AaaaRecords", + "description": "The list of AAAA records in the record set.", "items": { "$ref": "#/definitions/AaaaRecord" }, - "description": "The list of AAAA records in the record set." + "x-ms-client-name": "aaaaRecords", + "x-ms-identifiers": [] }, "MXRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "MxRecords", + "description": "The list of MX records in the record set.", "items": { "$ref": "#/definitions/MxRecord" }, - "description": "The list of MX records in the record set." + "x-ms-client-name": "mxRecords", + "x-ms-identifiers": [] }, "NSRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "NsRecords", + "description": "The list of NS records in the record set.", "items": { "$ref": "#/definitions/NsRecord" }, - "description": "The list of NS records in the record set." + "x-ms-client-name": "NsRecords", + "x-ms-identifiers": [] }, "PTRRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "PtrRecords", + "description": "The list of PTR records in the record set.", "items": { "$ref": "#/definitions/PtrRecord" }, - "description": "The list of PTR records in the record set." + "x-ms-client-name": "ptrRecords", + "x-ms-identifiers": [] }, "SRVRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "SrvRecords", + "description": "The list of SRV records in the record set.", "items": { "$ref": "#/definitions/SrvRecord" }, - "description": "The list of SRV records in the record set." + "x-ms-client-name": "srvRecords", + "x-ms-identifiers": [] }, "TXTRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "TxtRecords", + "description": "The list of TXT records in the record set.", "items": { "$ref": "#/definitions/TxtRecord" }, - "description": "The list of TXT records in the record set." + "x-ms-client-name": "txtRecords", + "x-ms-identifiers": [] }, "CNAMERecord": { "$ref": "#/definitions/CnameRecord", - "x-ms-client-name": "CnameRecord", - "description": "The CNAME record in the record set." + "description": "The CNAME record in the record set.", + "x-ms-client-name": "cnameRecord" }, "SOARecord": { "$ref": "#/definitions/SoaRecord", - "x-ms-client-name": "SoaRecord", - "description": "The SOA record in the record set." + "description": "The SOA record in the record set.", + "x-ms-client-name": "soaRecord" }, "caaRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "CaaRecords", + "description": "The list of CAA records in the record set.", "items": { "$ref": "#/definitions/CaaRecord" }, - "description": "The list of CAA records in the record set." + "x-ms-identifiers": [] }, "DSRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "DsRecords", + "description": "The list of DS records in the record set.", "items": { "$ref": "#/definitions/DsRecord" }, - "description": "The list of DS records in the record set." + "x-ms-client-name": "DsRecords", + "x-ms-identifiers": [] }, "TLSARecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "TlsaRecords", + "description": "The list of TLSA records in the record set.", "items": { "$ref": "#/definitions/TlsaRecord" }, - "description": "The list of TLSA records in the record set." + "x-ms-client-name": "tlsaRecords", + "x-ms-identifiers": [] }, "NAPTRRecords": { "type": "array", - "x-ms-identifiers": [], - "x-ms-client-name": "NaptrRecords", + "description": "The list of NAPTR records in the record set.", "items": { "$ref": "#/definitions/NaptrRecord" }, - "description": "The list of NAPTR records in the record set." + "x-ms-client-name": "naptrRecords", + "x-ms-identifiers": [] } - }, - "description": "Represents the properties of the records in the record set." + } }, - "RecordSet": { + "SigningKey": { "type": "object", + "description": "Represents the signing key.", "properties": { - "id": { - "type": "string", - "description": "The ID of the record set.", + "delegationSignerInfo": { + "type": "array", + "description": "The delegation signer information.", + "items": { + "$ref": "#/definitions/DelegationSignerInfo" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "flags": { + "type": "integer", + "format": "int32", + "description": "The flags specifies how the key is used.", "readOnly": true }, - "name": { - "type": "string", - "description": "The name of the record set.", + "keyTag": { + "type": "integer", + "format": "int32", + "description": "The key tag value of the DNSKEY Resource Record.", "readOnly": true }, - "type": { - "type": "string", - "description": "The type of the record set.", + "protocol": { + "type": "integer", + "format": "int32", + "description": "The protocol value. The value is always 3.", "readOnly": true }, - "etag": { + "publicKey": { "type": "string", - "description": "The etag of the record set." + "description": "The public key, represented as a Base64 encoding.", + "readOnly": true }, - "properties": { - "$ref": "#/definitions/RecordSetProperties", - "x-ms-client-flatten": true, - "description": "The properties of the record set." - } - }, - "x-ms-azure-resource": true, - "description": "Describes a DNS record set (a collection of DNS records with the same name and type)." - }, - "RecordSetUpdateParameters": { - "type": "object", - "properties": { - "RecordSet": { - "$ref": "#/definitions/RecordSet", - "description": "Specifies information about the record set being updated." + "securityAlgorithmType": { + "type": "integer", + "format": "int32", + "description": "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", + "readOnly": true } - }, - "description": "Parameters supplied to update a record set." + } }, - "RecordSetListResult": { + "SoaRecord": { "type": "object", + "description": "An SOA record.", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RecordSet" - }, - "description": "Information about the record sets in the response." + "host": { + "type": "string", + "description": "The domain name of the authoritative name server for this SOA record." }, - "nextLink": { + "email": { "type": "string", - "description": "The continuation token for the next page of results.", - "readOnly": true - } - }, - "description": "The response to a record set List operation." + "description": "The email contact for this SOA record." + }, + "serialNumber": { + "type": "integer", + "format": "int64", + "description": "The serial number for this SOA record." + }, + "refreshTime": { + "type": "integer", + "format": "int64", + "description": "The refresh value for this SOA record." + }, + "retryTime": { + "type": "integer", + "format": "int64", + "description": "The retry time for this SOA record." + }, + "expireTime": { + "type": "integer", + "format": "int64", + "description": "The expire time for this SOA record." + }, + "minimumTTL": { + "type": "integer", + "format": "int64", + "description": "The minimum value for this SOA record. By convention this is used to determine the negative caching duration.", + "x-ms-client-name": "minimumTtl" + } + } }, - "DelegationSignerInfo": { + "SrvRecord": { "type": "object", + "description": "An SRV record.", "properties": { - "digestAlgorithmType": { - "$ref": "#/definitions/DigestAlgorithmType", - "readOnly": true + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority value for this SRV record." }, - "digestValue": { - "type": "string", - "description": "The digest value is a cryptographic hash value of the referenced DNSKEY Resource Record.", - "readOnly": true + "weight": { + "type": "integer", + "format": "int32", + "description": "The weight value for this SRV record." }, - "record": { + "port": { + "type": "integer", + "format": "int32", + "description": "The port value for this SRV record." + }, + "target": { "type": "string", - "description": "The record represents a delegation signer (DS) record.", - "readOnly": true + "description": "The target domain name for this SRV record." } - }, - "description": "The delegation signer information." + } }, - "SigningKey": { + "SubResource": { "type": "object", + "description": "A reference to a another resource", "properties": { - "delegationSignerInfo": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/DelegationSignerInfo" - }, - "description": "The delegation signer information.", - "readOnly": true - }, - "flags": { + "id": { + "type": "string", + "description": "Resource Id." + } + } + }, + "TlsaRecord": { + "type": "object", + "description": "A TLSA record. For more information about the TLSA record format, see RFC 6698: https://www.rfc-editor.org/rfc/rfc6698", + "properties": { + "usage": { "type": "integer", "format": "int32", - "description": "The flags specifies how the key is used.", - "readOnly": true + "description": "The usage specifies the provided association that will be used to match the certificate presented in the TLS handshake." }, - "keyTag": { + "selector": { "type": "integer", "format": "int32", - "description": "The key tag value of the DNSKEY Resource Record.", - "readOnly": true + "description": "The selector specifies which part of the TLS certificate presented by the server will be matched against the association data." }, - "protocol": { + "matchingType": { "type": "integer", "format": "int32", - "description": "The protocol value. The value is always 3.", - "readOnly": true + "description": "The matching type specifies how the certificate association is presented." }, - "publicKey": { + "certAssociationData": { "type": "string", - "description": "The public key, represented as a Base64 encoding.", - "readOnly": true - }, - "securityAlgorithmType": { - "$ref": "#/definitions/SecurityAlgorithmType", - "readOnly": true + "description": "This specifies the certificate association data to be matched." } - }, - "description": "Represents the signing key." + } }, - "DnssecProperties": { + "TxtRecord": { "type": "object", + "description": "A TXT record.", "properties": { - "provisioningState": { - "type": "string", - "description": "Provisioning State of the DNSSEC configuration.", - "readOnly": true - }, - "signingKeys": { + "value": { "type": "array", - "x-ms-identifiers": [], + "description": "The text value of this TXT record.", "items": { - "$ref": "#/definitions/SigningKey" + "type": "string" }, - "description": "The list of signing keys.", - "readOnly": true + "x-ms-identifiers": [] } - }, - "description": "Represents the DNSSEC properties." + } }, - "DnssecConfig": { + "Zone": { "type": "object", + "description": "Describes a DNS zone.", "properties": { "properties": { - "$ref": "#/definitions/DnssecProperties", - "x-ms-client-flatten": true, - "description": "The DNSSEC properties.", - "readOnly": true - }, - "id": { - "type": "string", - "description": "The ID of the DNSSEC configuration.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of the DNSSEC configuration.", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the DNSSEC configuration.", - "readOnly": true + "$ref": "#/definitions/ZoneProperties", + "description": "The properties of the zone.", + "x-ms-client-flatten": true }, "etag": { "type": "string", - "description": "The etag of the DNSSEC configuration." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "Metadata pertaining to creation and last modification of the resource.", - "readOnly": true + "description": "The etag of the zone." } }, - "x-ms-azure-resource": true, - "description": "Represents the DNSSEC configuration." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, - "DnssecConfigListResult": { + "ZoneListResult": { "type": "object", + "description": "The response of a Zone list operation.", "properties": { "value": { "type": "array", + "description": "The Zone items on this page", "items": { - "$ref": "#/definitions/DnssecConfig" - }, - "description": "Information about the DNSSEC configurations in the response." + "$ref": "#/definitions/Zone" + } }, "nextLink": { "type": "string", - "description": "The continuation token for the next page of results.", - "readOnly": true + "format": "uri", + "description": "The link to the next page of items" } }, - "description": "The response to a List DNSSEC configurations operation." + "required": [ + "value" + ] }, "ZoneProperties": { "type": "object", + "description": "Represents the properties of the zone.", "properties": { "maxNumberOfRecordSets": { "type": "integer", @@ -1837,15 +2169,17 @@ }, "nameServers": { "type": "array", - "x-ms-identifiers": [], + "description": "The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.", "items": { "type": "string" }, - "description": "The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.", - "readOnly": true + "readOnly": true, + "x-ms-identifiers": [] }, "zoneType": { "type": "string", + "description": "The type of this DNS zone (Public or Private).", + "default": "Public", "enum": [ "Public", "Private" @@ -1853,293 +2187,48 @@ "x-ms-enum": { "name": "ZoneType", "modelAsString": false - }, - "default": "Public", - "description": "The type of this DNS zone (Public or Private)." + } }, "registrationVirtualNetworks": { "type": "array", - "x-ms-identifiers": [], + "description": "A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.", "items": { "$ref": "#/definitions/SubResource" }, - "description": "A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private." + "x-ms-identifiers": [] }, "resolutionVirtualNetworks": { "type": "array", - "x-ms-identifiers": [], + "description": "A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.", "items": { "$ref": "#/definitions/SubResource" }, - "description": "A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private." + "x-ms-identifiers": [] }, "signingKeys": { "type": "array", - "x-ms-identifiers": [], + "description": "The list of signing keys.", "items": { "$ref": "#/definitions/SigningKey" }, - "description": "The list of signing keys.", - "readOnly": true - } - }, - "description": "Represents the properties of the zone." - }, - "Zone": { - "type": "object", - "properties": { - "etag": { - "type": "string", - "description": "The etag of the zone." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ZoneProperties", - "description": "The properties of the zone." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "Metadata pertaining to creation and last modification of the resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" + "readOnly": true, + "x-ms-identifiers": [] } - ], - "description": "Describes a DNS zone." + } }, "ZoneUpdate": { "type": "object", + "description": "Describes a request to update a DNS zone.", "properties": { "tags": { "type": "object", + "description": "Resource tags.", "additionalProperties": { "type": "string" - }, - "description": "Resource tags." - } - }, - "description": "Describes a request to update a DNS zone." - }, - "ZoneListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Zone" - }, - "description": "Information about the DNS zones." - }, - "nextLink": { - "type": "string", - "description": "The continuation token for the next page of results.", - "readOnly": true - } - }, - "description": "The response to a Zone List or ListAll operation." - }, - "DnsResourceReferenceRequest": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DnsResourceReferenceRequestProperties", - "description": "The properties of the Resource Reference Request." - } - }, - "description": "Represents the properties of the Dns Resource Reference Request." - }, - "DnsResourceReferenceRequestProperties": { - "type": "object", - "properties": { - "targetResources": { - "type": "array", - "items": { - "$ref": "#/definitions/SubResource" - }, - "description": "A list of references to azure resources for which referencing dns records need to be queried." - } - }, - "description": "Represents the properties of the Dns Resource Reference Request." - }, - "DnsResourceReferenceResult": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DnsResourceReferenceResultProperties", - "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request." - } - }, - "description": "Represents the properties of the Dns Resource Reference Result." - }, - "DnsResourceReferenceResultProperties": { - "type": "object", - "properties": { - "dnsResourceReferences": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/DnsResourceReference" - }, - "description": "The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request" - } - }, - "description": "The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource in the request." - }, - "DnsResourceReference": { - "type": "object", - "properties": { - "dnsResources": { - "type": "array", - "items": { - "$ref": "#/definitions/SubResource" - }, - "description": "A list of dns Records " - }, - "targetResource": { - "$ref": "#/definitions/SubResource", - "description": "A reference to an azure resource from where the dns resource value is taken." - } - }, - "description": "Represents a single Azure resource and its referencing DNS records." - }, - "Resource": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource ID." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "location": { - "type": "string", - "description": "Resource location.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "required": [ - "location" - ], - "description": "Common properties of an Azure Resource Manager resource" - }, - "SubResource": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource Id." - } - }, - "description": "A reference to a another resource" - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "Cloud error body." - } - }, - "description": "An error response from the service." - }, - "CloudErrorBody": { - "type": "object", - "x-ms-external": true, - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for display in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." + } } - }, - "description": "An error response from the service." + } } }, - "parameters": { - "ZoneNameParameter": { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot).", - "x-ms-parameter-location": "method" - }, - "RelativeRecordSetNameParameter": { - "name": "relativeRecordSetName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the record set, relative to the name of the zone.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - }, - "RecordTypeParameter": { - "name": "recordType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of DNS record in this record set.", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT", - "TLSA", - "DS", - "NAPTR" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - }, - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json index c50b153c505b..418367edc480 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateAAAARecordset.json @@ -1,65 +1,67 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "AAAA", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordSetTrafficManagementProfile.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordSetTrafficManagementProfile.json index ad1f2cffc125..8c72de4d1f2d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordSetTrafficManagementProfile.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordSetTrafficManagementProfile.json @@ -1,61 +1,63 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "A", "parameters": { "properties": { + "TTL": 3600, "metadata": { "key1": "value1" }, - "TTL": 3600, "trafficManagementProfile": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" } } - } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", "metadata": { "key1": "value1" }, - "TTL": 3600, - "fqdn": "record1.zone1", + "provisioningState": "Succeeded", "trafficManagementProfile": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" - }, - "provisioningState": "Succeeded" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", "metadata": { "key1": "value1" }, - "TTL": 3600, - "fqdn": "record1.zone1", + "provisioningState": "Succeeded", "trafficManagementProfile": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" - }, - "provisioningState": "Succeeded" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset with traffic management profile" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json index 11826a698af1..a28e17908101 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordset.json @@ -1,65 +1,67 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "A", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json index 453aa6269a8a..5b9f4e6af76f 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateARecordsetAlias.json @@ -1,61 +1,63 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "A", "parameters": { "properties": { + "TTL": 3600, "metadata": { "key1": "value1" }, - "TTL": 3600, "targetResource": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" } } - } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", "metadata": { "key1": "value1" }, - "TTL": 3600, - "fqdn": "record1.zone1", + "provisioningState": "Succeeded", "targetResource": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" - }, - "provisioningState": "Succeeded" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { + "TTL": 3600, + "fqdn": "record1.zone1", "metadata": { "key1": "value1" }, - "TTL": 3600, - "fqdn": "record1.zone1", + "provisioningState": "Succeeded", "targetResource": { "id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2" - }, - "provisioningState": "Succeeded" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create A recordset with alias target resource" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json index 6fbef49546d5..434677ef3e29 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCNAMERecordset.json @@ -1,59 +1,61 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "CNAME", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "CNAMERecord": { "cname": "contoso.com" + }, + "TTL": 3600, + "metadata": { + "key1": "value1" } } - } + }, + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", "properties": { - "metadata": { - "key1": "value1" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record1.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key1": "value1" } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", "properties": { - "metadata": { - "key1": "value1" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record1.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key1": "value1" } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json index b0f22f573496..4effc8b25b1a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateCaaRecordset.json @@ -1,16 +1,8 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "CAA", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, "caaRecords": [ { @@ -18,54 +10,64 @@ "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json index 9efa9b358a8d..a53cd98badcd 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDSRecordset.json @@ -1,17 +1,8 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "DS", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "DSRecords": [ { "algorithm": 5, @@ -21,23 +12,27 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "name": "record1", "type": "Microsoft.Network/dnszones/DS", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "fqdn": "record1.zone1", - "TTL": 3600, "DSRecords": [ { "algorithm": 5, @@ -47,22 +42,22 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "name": "record1", "type": "Microsoft.Network/dnszones/DS", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "fqdn": "record1.zone1", - "TTL": 3600, "DSRecords": [ { "algorithm": 5, @@ -72,9 +67,16 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create DS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json index 7cf70c244052..5f8f26c86429 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateDnssecConfig.json @@ -1,17 +1,17 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "name": "default", "type": "Microsoft.Network/dnszones/dnssecConfigs", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "properties": { "provisioningState": "Creating", "signingKeys": [] @@ -19,19 +19,21 @@ } }, "201": { - "headers": { - "Azure-AsyncOperation": "https://asyncoperationstatusurl" - }, "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "name": "default", "type": "Microsoft.Network/dnszones/dnssecConfigs", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "properties": { "provisioningState": "Creating", "signingKeys": [] } + }, + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" } } - } -} + }, + "operationId": "DnssecConfigs_CreateOrUpdate", + "title": "Create DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json index ebb3e322da16..88f9f6c95721 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateMXRecordset.json @@ -1,68 +1,70 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "MX", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create MX recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json index c04e87cb3134..2983204133a7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNAPTRRecordset.json @@ -1,80 +1,82 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "NAPTR", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "NAPTRRecords": [ { + "flags": "U", "order": 100, "preference": 10, - "flags": "U", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NAPTRRecords": [ { + "flags": "U", "order": 100, "preference": 10, - "flags": "U", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NAPTRRecords": [ { + "flags": "U", "order": 100, "preference": 10, - "flags": "U", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json index d509e036c50a..7c63012fa27f 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateNSRecordset.json @@ -1,65 +1,67 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "NS", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create NS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json index e9bdf4df4e10..66f1cacb3666 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdatePTRRecordset.json @@ -1,65 +1,67 @@ { "parameters": { - "zoneName": "0.0.127.in-addr.arpa", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "1", - "recordType": "PTR", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "1.0.0.127.in-addr.arpa", "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "1.0.0.127.in-addr.arpa", "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json index 25eb190db76e..7920c5d482aa 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSOARecordset.json @@ -1,77 +1,79 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "@", - "recordType": "SOA", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "metadata": { + "key1": "value1" } } - } + }, + "recordType": "SOA", + "relativeRecordSetName": "@", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", - "etag": "00000000-0000-0000-0000-000000000000", "name": "@", "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "zone1", "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" } } } }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", - "etag": "00000000-0000-0000-0000-000000000000", "name": "@", "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "zone1", "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json index 89172d322fa9..d81986894426 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateSRVRecordset.json @@ -1,74 +1,76 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "SRV", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json index c302a5bf51ec..b3f4ededfa16 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTLSARecordset.json @@ -1,74 +1,76 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "TLSA", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json index 2eaa349756aa..101e988cbd47 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateTXTRecordset.json @@ -1,16 +1,8 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "TXT", "parameters": { "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, "TXTRecords": [ { @@ -19,23 +11,27 @@ "string2" ] } - ] + ], + "metadata": { + "key1": "value1" + } } - } + }, + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "TXTRecords": [ { "value": [ @@ -43,22 +39,22 @@ "string2" ] } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } }, "201": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "TXTRecords": [ { "value": [ @@ -66,9 +62,15 @@ "string2" ] } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_CreateOrUpdate", + "title": "Create TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json index 5962d2f1b55d..16f205209ce5 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/CreateOrUpdateZone.json @@ -1,33 +1,33 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", "parameters": { "location": "Global", "tags": { "key1": "value1" } - } + }, + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" ], + "numberOfRecordSets": 2, "zoneType": "Public" }, "tags": { @@ -37,20 +37,20 @@ }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" ], + "numberOfRecordSets": 2, "zoneType": "Public" }, "tags": { @@ -58,5 +58,7 @@ } } } - } -} + }, + "operationId": "Zones_CreateOrUpdate", + "title": "Create zone" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json index 90d3fc0c5f37..ec5350d57bc2 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteAAAARecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "AAAA", "relativeRecordSetName": "record1", - "recordType": "AAAA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json index 10160049b1a1..69a5c6007640 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteARecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "A", "relativeRecordSetName": "record1", - "recordType": "A" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete A recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json index da1a5f0ac398..a64cbcc207ff 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCNAMERecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "CNAME", "relativeRecordSetName": "record1", - "recordType": "CNAME" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json index 3c2a1efb63d3..7033c837a038 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteCaaRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "CAA", "relativeRecordSetName": "record1", - "recordType": "CAA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json index b0bdb0d8224f..aab66b568f77 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDSRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "DS", "relativeRecordSetName": "record1", - "recordType": "DS" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete DS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json index f50bcad77106..1ef0d526f4b8 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteDnssecConfig.json @@ -1,19 +1,21 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationStatuses/asyncOperationId?api-version=2023-07-01-preview", + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsOperationResults/asyncOperationId?api-version=2023-07-01-preview", "Retry-After": "60" } }, "204": {} - } -} + }, + "operationId": "DnssecConfigs_Delete", + "title": "Delete DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json index 1dd6d48a8eeb..314216436aa6 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteMXRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "MX", "relativeRecordSetName": "record1", - "recordType": "MX" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete MX recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json index 1e270f06ba86..6e012a041fdb 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNAPTRRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "NAPTR", "relativeRecordSetName": "record1", - "recordType": "NAPTR" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json index 1ca0c2ca7bce..c895d29b2b3b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteNSRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "NS", "relativeRecordSetName": "record1", - "recordType": "NS" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete NS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json index d2d5c61779ec..3457ef1c3b0e 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeletePTRRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "0.0.127.in-addr.arpa", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "PTR", "relativeRecordSetName": "1", - "recordType": "PTR" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json index 2f9517f0036c..2b46f26875c7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteSRVRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "SRV", "relativeRecordSetName": "record1", - "recordType": "SRV" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json index ee8bc6c97184..e4763a76b26c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTLSARecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "TLSA", "relativeRecordSetName": "record1", - "recordType": "TLSA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json index 6a4925d80705..2e7c7b25befd 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteTXTRecordset.json @@ -1,14 +1,16 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "TXT", "relativeRecordSetName": "record1", - "recordType": "TXT" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "RecordSets_Delete", + "title": "Delete TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json index 34e06ecdb34b..fc829e279f1a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/DeleteZone.json @@ -1,9 +1,9 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ } }, "204": {} - } -} + }, + "operationId": "Zones_Delete", + "title": "Delete zone" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json index 627a06ea88ea..54f2e85f7a17 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetAAAARecordset.json @@ -1,32 +1,34 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "AAAA", "relativeRecordSetName": "record1", - "recordType": "AAAA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json index 7e81d031a7da..d5b286f98280 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetARecordset.json @@ -1,32 +1,34 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "A", "relativeRecordSetName": "record1", - "recordType": "A" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get A recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json index 214c7dee5865..6fcd719f59d4 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCNAMERecordset.json @@ -1,30 +1,32 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "CNAME", "relativeRecordSetName": "record1", - "recordType": "CNAME" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", "properties": { - "metadata": { - "key1": "value1" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record1.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key1": "value1" } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json index c1123e7d1dc1..6dcc13ede527 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetCaaRecordset.json @@ -1,34 +1,36 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "CAA", "relativeRecordSetName": "record1", - "recordType": "CAA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json index 959b49496848..0fcfe9e6ad7a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDSRecordset.json @@ -1,25 +1,20 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "DS", "relativeRecordSetName": "record1", - "recordType": "DS" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "DSRecords": [ { "algorithm": 5, @@ -29,9 +24,16 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get DS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json index dbf7814c75b8..ca1ab68e4ebb 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnsResourceReference.json @@ -1,7 +1,6 @@ { "parameters": { "api-version": "2023-07-01-preview", - "subscriptionId": "subid", "parameters": { "properties": { "targetResources": [ @@ -10,7 +9,8 @@ } ] } - } + }, + "subscriptionId": "subid" }, "responses": { "200": { @@ -31,5 +31,7 @@ } } } - } -} + }, + "operationId": "DnsResourceReference_GetByTargetResources", + "title": "Get DNS resource reference" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json index 40f1c6cdcf48..4794a7f55d10 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetDnssecConfig.json @@ -1,17 +1,17 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "name": "default", "type": "Microsoft.Network/dnszones/dnssecConfigs", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "properties": { "provisioningState": "Succeeded", "signingKeys": [ @@ -19,9 +19,9 @@ "delegationSignerInfo": [], "flags": 256, "keyTag": 37721, - "protocol": 3, "publicKey": "publicKey1", - "securityAlgorithmType": 13 + "securityAlgorithmType": 13, + "protocol": 3 }, { "delegationSignerInfo": [ @@ -33,13 +33,15 @@ ], "flags": 257, "keyTag": 11920, - "protocol": 3, "publicKey": "publicKey2", - "securityAlgorithmType": 13 + "securityAlgorithmType": 13, + "protocol": 3 } ] } } } - } -} + }, + "operationId": "DnssecConfigs_Get", + "title": "Get DnssecConfig" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json index 261f7c0aebb7..de57fe156593 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetMXRecordset.json @@ -1,33 +1,35 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "MX", "relativeRecordSetName": "record1", - "recordType": "MX" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get MX recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json index 78ff0a3b839f..ed63a12e7670 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNAPTRRecordset.json @@ -1,37 +1,39 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "NAPTR", "relativeRecordSetName": "record1", - "recordType": "NAPTR" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NAPTRRecords": [ { + "flags": "U", "order": 100, "preference": 10, - "flags": "U", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json index be07e8f7fadb..385056add510 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetNSRecordset.json @@ -1,32 +1,34 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "NS", "relativeRecordSetName": "record1", - "recordType": "NS" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get NS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json index 3462fd9b3622..27abfb98de33 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetPTRRecordset.json @@ -1,32 +1,34 @@ { "parameters": { - "zoneName": "0.0.127.in-addr.arpa", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "PTR", "relativeRecordSetName": "1", - "recordType": "PTR" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "1.0.0.127.in-addr.arpa", "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json index 60cfc5d77ab7..311df10eb88a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSOARecordset.json @@ -1,36 +1,38 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "SOA", "relativeRecordSetName": "@", - "recordType": "SOA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", - "etag": "00000000-0000-0000-0000-000000000000", "name": "@", "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "zone1", "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json index 79adc611dc9e..8357f4f4da62 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetSRVRecordset.json @@ -1,35 +1,37 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "SRV", "relativeRecordSetName": "record1", - "recordType": "SRV" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json index 75c51da1ef29..96ffbf2d1c7e 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTLSARecordset.json @@ -1,35 +1,37 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "TLSA", "relativeRecordSetName": "record1", - "recordType": "TLSA" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json index 2d2376a828d7..6213cf77ee60 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetTXTRecordset.json @@ -1,25 +1,21 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", + "recordType": "TXT", "relativeRecordSetName": "record1", - "recordType": "TXT" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "TXTRecords": [ { "value": [ @@ -27,9 +23,15 @@ "string2" ] } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } } - } -} + }, + "operationId": "RecordSets_Get", + "title": "Get TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json index 37e1e1db4b23..664bb5057d8d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/GetZone.json @@ -1,32 +1,34 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" - ] + ], + "numberOfRecordSets": 2 }, "tags": { "key1": "value1" } } } - } -} + }, + "operationId": "Zones_Get", + "title": "Get zone" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json index 18007c613097..a3841c4ce747 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListAAAARecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "AAAA", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "AAAA" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,25 +12,27 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List AAAA recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json index 614a08f84464..1c263798dfda 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListARecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "A", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "A" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,25 +12,27 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List A recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json index ff0871549aa8..fd9dbdb6bbcc 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCNAMERecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "CNAME", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "CNAME" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,23 +12,25 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", "properties": { - "metadata": { - "key1": "value1" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record1.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key1": "value1" } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List CNAME recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json index 36eb4262c4da..b6cd2873b119 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListCaaRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "CAA", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "CAA" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,27 +12,29 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List CAA recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json index 585aaf73221c..85cadf1e7bf7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDSRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "DS", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "DS" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,16 +12,11 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "DSRecords": [ { "algorithm": 5, @@ -31,11 +26,18 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List DS recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json index 7ce6f74763f6..4e4562ed604c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListDnssecConfigsByZone.json @@ -1,19 +1,19 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "name": "default", "type": "Microsoft.Network/dnszones/dnssecConfigs", "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnszones/zone1/dnssecConfigs/default", "properties": { "provisioningState": "Succeeded", "signingKeys": [ @@ -21,9 +21,9 @@ "delegationSignerInfo": [], "flags": 256, "keyTag": 37721, - "protocol": 3, "publicKey": "publicKey1", - "securityAlgorithmType": 13 + "securityAlgorithmType": 13, + "protocol": 3 }, { "delegationSignerInfo": [ @@ -35,9 +35,9 @@ ], "flags": 257, "keyTag": 11920, - "protocol": 3, "publicKey": "publicKey2", - "securityAlgorithmType": 13 + "securityAlgorithmType": 13, + "protocol": 3 } ] } @@ -45,5 +45,7 @@ ] } } - } -} + }, + "operationId": "DnssecConfigs_ListByDnsZone", + "title": "List DnssecConfigs" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json index d9a13698eddd..06785835e18c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListMXRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "MX", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "MX" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,26 +12,28 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List MX recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json index e0c486e87e2b..0328d7051634 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNAPTRRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "NAPTR", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "NAPTR" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,30 +12,32 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NAPTRRecords": [ { + "flags": "u", "order": 100, "preference": 10, - "flags": "u", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List NAPTR recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json index c585595da7b2..1c583932d582 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListNSRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "NS", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "NS" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,25 +12,27 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List NS recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json index a47050a66b4c..57fd970d6301 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListPTRRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "0.0.127.in-addr.arpa", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "PTR", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "PTR" + "zoneName": "0.0.127.in-addr.arpa" }, "responses": { "200": { @@ -12,25 +12,27 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "1.0.0.127.in-addr.arpa", "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List PTR recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json index 20e396be7b3d..c3408d789e28 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListRecordSetsByZone.json @@ -1,9 +1,9 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid" + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { @@ -11,61 +11,63 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } }, { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record2", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record2", "type": "Microsoft.Network/dnsZones/CNAME", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record2", "properties": { - "metadata": { - "key1": "value1" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record2.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key1": "value1" } } } ] } } - } -} + }, + "operationId": "RecordSets_ListAllByDnsZone", + "title": "List all recordsets by zone" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json index 652a508e23bb..ace9a288fe6b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSOARecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "SOA", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "SOA" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,29 +12,31 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", - "etag": "00000000-0000-0000-0000-000000000000", "name": "@", "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "zone1", "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key1": "value1" } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List SOA recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json index 826938bfe46c..ef641437b9b7 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListSRVRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "SRV", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "SRV" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,28 +12,30 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List SRV recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json index f4f31dd4043f..3f918801a1c0 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTLSARecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "TLSA", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "TLSA" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,28 +12,30 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", "properties": { - "metadata": { - "key1": "value1" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List TLSA recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json index 78e21fc1d436..2886b44d266c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListTXTRecordset.json @@ -1,10 +1,10 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "recordType": "TXT", + "resourceGroupName": "rg1", "subscriptionId": "subid", - "recordType": "TXT" + "zoneName": "zone1" }, "responses": { "200": { @@ -12,16 +12,12 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", "properties": { - "metadata": { - "key1": "value1" - }, "TTL": 3600, - "fqdn": "record1.zone1", "TXTRecords": [ { "value": [ @@ -29,11 +25,17 @@ "string2" ] } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key1": "value1" + } } } ] } } - } -} + }, + "operationId": "RecordSets_ListByType", + "title": "List TXT recordsets" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json index 848743e8ed92..12fb52fbe84a 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", + "resourceGroupName": "rg1", "subscriptionId": "subid" }, "responses": { @@ -10,44 +10,46 @@ "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" - ] + ], + "numberOfRecordSets": 2 }, "tags": { "key1": "value1" } }, { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone2", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone2", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone2", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 300, "nameServers": [ "ns1-02.azure-dns.com", "ns2-02.azure-dns.net", "ns3-02.azure-dns.org", "ns4-02.azure-dns.info" - ] + ], + "numberOfRecordSets": 300 } } ] } } - } -} + }, + "operationId": "Zones_ListByResourceGroup", + "title": "List zones by resource group" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json index 8dd7740bb088..b70fb3d4470d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/ListZonesBySubscription.json @@ -9,44 +9,46 @@ "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2023-07-01-preview&$skipToken=skipToken", "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" - ] + ], + "numberOfRecordSets": 2 }, "tags": { "key1": "value1" } }, { - "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/dnsZones/zone2", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone2", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/dnsZones/zone2", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 300, "nameServers": [ "ns1-02.azure-dns.com", "ns2-02.azure-dns.net", "ns3-02.azure-dns.org", "ns4-02.azure-dns.info" - ] + ], + "numberOfRecordSets": 300 } } ] } } - } -} + }, + "operationId": "Zones_List", + "title": "List zones by subscription" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json index d11309a1fe46..cc38a0b8874b 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchAAAARecordset.json @@ -1,39 +1,41 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "AAAA", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "AAAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "AAAARecords": [ { "ipv6Address": "::1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch AAAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json index 5662d89f9249..2b0494378fe3 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchARecordset.json @@ -1,39 +1,41 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "A", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "A", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "ARecords": [ { "ipv4Address": "127.0.0.1" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch A recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json index e3143de2b989..3b8969339c95 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCNAMERecordset.json @@ -1,37 +1,39 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "CNAME", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "CNAME", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME/record1", "properties": { - "metadata": { - "key2": "value2" + "CNAMERecord": { + "cname": "contoso.com" }, "TTL": 3600, "fqdn": "record1.zone1", - "CNAMERecord": { - "cname": "contoso.com" + "metadata": { + "key2": "value2" } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch CNAME recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json index 6b8d689e23b0..d12e201a5821 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchCaaRecordset.json @@ -1,41 +1,43 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "CAA", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "CAA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA/record1", "properties": { - "metadata": { - "key2": "value2" - }, "TTL": 3600, - "fqdn": "record1.zone1", "caaRecords": [ { "flags": 0, "tag": "issue", "value": "ca.contoso.com" } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch CAA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json index 863e110e42b9..3b4c579dd917 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchDSRecordset.json @@ -1,32 +1,27 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "DS", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "DS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/DS", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/DS/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "DSRecords": [ { "algorithm": 5, @@ -36,9 +31,16 @@ }, "keyTag": 60485 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch DS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json index 746840542495..437464a33597 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchMXRecordset.json @@ -1,40 +1,42 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "MX", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "MX", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "MXRecords": [ { - "preference": 0, - "exchange": "mail.contoso.com" + "exchange": "mail.contoso.com", + "preference": 0 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch MX recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json index f7ea25fc5829..5aa6d31e98e3 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNAPTRRecordset.json @@ -1,44 +1,46 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "NAPTR", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "NAPTR", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/NAPTR", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NAPTR/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NAPTRRecords": [ { + "flags": "U", "order": 100, "preference": 10, - "flags": "U", - "services": "E2U+sip", "regexp": "!^.*$!sip:user@example.com!", - "replacement": "" + "replacement": "", + "services": "E2U+sip" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch NAPTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json index b7eeb7676e42..91fe9d114a89 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchNSRecordset.json @@ -1,39 +1,41 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "NS", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "NS", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "NSRecords": [ { "nsdname": "ns1.contoso.com" } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch NS recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json index f5ab3dd03751..4cdfe8f7c851 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchPTRRecordset.json @@ -1,39 +1,41 @@ { "parameters": { - "zoneName": "0.0.127.in-addr.arpa", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "1", - "recordType": "PTR", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "PTR", + "relativeRecordSetName": "1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "0.0.127.in-addr.arpa" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR/1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "1.0.0.127.in-addr.arpa", "PTRRecords": [ { "ptrdname": "localhost" } - ] + ], + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch PTR recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json index c67746f6125c..cf2a12a21647 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSOARecordset.json @@ -1,43 +1,45 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "@", - "recordType": "SOA", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "SOA", + "relativeRecordSetName": "@", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", - "etag": "00000000-0000-0000-0000-000000000000", "name": "@", "type": "Microsoft.Network/dnsZones/SOA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA/@", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "zone1", "SOARecord": { - "host": "ns1.contoso.com", "email": "hostmaster.contoso.com", - "serialNumber": 1, + "expireTime": 2419200, + "host": "ns1.contoso.com", + "minimumTTL": 300, "refreshTime": 3600, "retryTime": 300, - "expireTime": 2419200, - "minimumTTL": 300 + "serialNumber": 1 + }, + "TTL": 3600, + "fqdn": "zone1", + "metadata": { + "key2": "value2" } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch SOA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json index 955112bfcb30..e882cde5325c 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchSRVRecordset.json @@ -1,42 +1,44 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "SRV", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "SRV", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "SRVRecords": [ { - "priority": 0, - "weight": 10, "port": 80, - "target": "contoso.com" + "priority": 0, + "target": "contoso.com", + "weight": 10 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch SRV recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json index 5266a08346cf..189f85bdcfff 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTLSARecordset.json @@ -1,42 +1,44 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "TLSA", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "TLSA", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", - "etag": "00000000-0000-0000-0000-000000000000", "name": "record1", "type": "Microsoft.Network/dnsZones/TLSA", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TLSA/record1", "properties": { - "metadata": { - "key2": "value2" - }, - "TTL": 3600, - "fqdn": "record1.zone1", "TLSARecords": [ { - "usage": 3, - "selector": 1, + "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B", "matchingType": 1, - "certAssociationData": "6EC8A4B7F511454D84DCC055213B8D195E8ADA751FE14300AFE32D54B162438B" + "selector": 1, + "usage": 3 } - ] + ], + "TTL": 3600, + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch TLSA recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json index b3134d2730c6..4b17001a971d 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchTXTRecordset.json @@ -1,32 +1,28 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", - "relativeRecordSetName": "record1", - "recordType": "TXT", "parameters": { "properties": { "metadata": { "key2": "value2" } } - } + }, + "recordType": "TXT", + "relativeRecordSetName": "record1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "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", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1", "properties": { - "metadata": { - "key2": "value2" - }, "TTL": 3600, - "fqdn": "record1.zone1", "TXTRecords": [ { "value": [ @@ -34,9 +30,15 @@ "string2" ] } - ] + ], + "fqdn": "record1.zone1", + "metadata": { + "key2": "value2" + } } } } - } -} + }, + "operationId": "RecordSets_Update", + "title": "Patch TXT recordset" +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json index fc5fed02675c..dd0b53ee3bfe 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/examples/PatchZone.json @@ -1,37 +1,39 @@ { "parameters": { - "zoneName": "zone1", - "resourceGroupName": "rg1", "api-version": "2023-07-01-preview", - "subscriptionId": "subid", "parameters": { "tags": { "key2": "value2" } - } + }, + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "zoneName": "zone1" }, "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", "name": "zone1", "type": "Microsoft.Network/dnsZones", + "etag": "00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1", + "location": "global", "properties": { "maxNumberOfRecordSets": 5000, - "numberOfRecordSets": 2, "nameServers": [ "ns1-01.azure-dns.com", "ns2-01.azure-dns.net", "ns3-01.azure-dns.org", "ns4-01.azure-dns.info" - ] + ], + "numberOfRecordSets": 2 }, "tags": { "key2": "value2" } } } - } -} + }, + "operationId": "Zones_Update", + "title": "Patch zone" +} \ No newline at end of file