diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/dns.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/dns.json new file mode 100644 index 000000000000..33cc40997c30 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/dns.json @@ -0,0 +1,1611 @@ +{ + "swagger": "2.0", + "info": { + "title": "DnsManagementClient", + "description": "The DNS Management Client.", + "version": "2018-03-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}": { + "patch": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Update", + "description": "Updates a record set within a DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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 + }, + { + "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" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RecordSet" + }, + "description": "Parameters supplied to the Update 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 overwritting concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The record set has been updated.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "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" + } + } + }, + "put": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_CreateOrUpdate", + "description": "Creates or updates a record set within a DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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 + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "parameters", + "in": "body", + "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 overwritting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "The record set has been created.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "200": { + "description": "The record set has been updated.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create A recordset": { + "$ref": "./examples/CreateOrUpdateARecordset.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" + }, + "Create PTR recordset": { + "$ref": "./examples/CreateOrUpdatePTRRecordset.json" + }, + "Create SOA recordset": { + "$ref": "./examples/CreateOrUpdateSOARecordset.json" + }, + "Create SRV recordset": { + "$ref": "./examples/CreateOrUpdateSRVRecordset.json" + }, + "Create TXT recordset": { + "$ref": "./examples/CreateOrUpdateTXTRecordset.json" + } + } + }, + "delete": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Delete", + "description": "Deletes a record set from a DNS zone. This operation cannot be undone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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 + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "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 delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "The record set was not found." + }, + "200": { + "description": "The record set has been deleted." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "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/DeleteARecordset.json" + }, + "Delete MX recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete NS recordset": { + "$ref": "./examples/DeleteARecordset.json" + }, + "Delete PTR recordset": { + "$ref": "./examples/DeletePTRRecordset.json" + }, + "Delete SRV recordset": { + "$ref": "./examples/DeleteSRVRecordset.json" + }, + "Delete TXT recordset": { + "$ref": "./examples/DeleteTXTRecordset.json" + } + } + }, + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Get", + "description": "Gets a record set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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 + }, + { + "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" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get A recordset": { + "$ref": "./examples/GetARecordset.json" + }, + "Get AAAA recordset": { + "$ref": "./examples/GetAAAARecordset.json" + }, + "Get CAA recordset": { + "$ref": "./examples/GetCaaRecordset.json" + }, + "Get CNAME recordset": { + "$ref": "./examples/GetCNAMERecordset.json" + }, + "Get MX recordset": { + "$ref": "./examples/GetMXRecordset.json" + }, + "Get NS recordset": { + "$ref": "./examples/GetNSRecordset.json" + }, + "Get PTR recordset": { + "$ref": "./examples/GetPTRRecordset.json" + }, + "Get SOA recordset": { + "$ref": "./examples/GetSOARecordset.json" + }, + "Get SRV recordset": { + "$ref": "./examples/GetSRVRecordset.json" + }, + "Get TXT recordset": { + "$ref": "./examples/GetTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListByType", + "description": "Lists the record sets of a specified type in a DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of record sets to enumerate.", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "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": "$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 ." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List A recordsets": { + "$ref": "./examples/ListARecordset.json" + }, + "List AAAA recordsets": { + "$ref": "./examples/ListAAAARecordset.json" + }, + "List CAA recordsets": { + "$ref": "./examples/ListCaaRecordset.json" + }, + "List CNAME recordsets": { + "$ref": "./examples/ListCNAMERecordset.json" + }, + "List MX recordsets": { + "$ref": "./examples/ListMXRecordset.json" + }, + "List NS recordsets": { + "$ref": "./examples/ListNSRecordset.json" + }, + "List PTR recordsets": { + "$ref": "./examples/ListPTRRecordset.json" + }, + "List SOA recordsets": { + "$ref": "./examples/ListSOARecordset.json" + }, + "List SRV recordsets": { + "$ref": "./examples/ListSRVRecordset.json" + }, + "List TXT recordsets": { + "$ref": "./examples/ListTXTRecordset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListByDnsZone", + "description": "Lists all record sets in a DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "$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 ." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List recordsets by zone": { + "$ref": "./examples/ListRecordSetsByZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListAllByDnsZone", + "description": "Lists all record sets in a DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "$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" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List recordsets by zone": { + "$ref": "./examples/ListRecordSetsByZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}": { + "put": { + "tags": [ + "Zones" + ], + "operationId": "Zones_CreateOrUpdate", + "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Zone" + }, + "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 DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "201": { + "description": "The DNS zone has been created.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Create zone": { + "$ref": "./examples/CreateOrUpdateZone.json" + } + } + }, + "delete": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Delete", + "description": "Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "The DNS zone was not found." + }, + "202": { + "description": "The DNS zone delete operation has been accepted and will complete asynchronously." + }, + "200": { + "description": "The DNS zone has been deleted." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete zone": { + "$ref": "./examples/DeleteZone.json" + } + } + }, + "get": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Get", + "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get zone": { + "$ref": "./examples/GetZone.json" + } + } + }, + "patch": { + "tags": [ + "Zones" + ], + "operationId": "Zones_Update", + "description": "Updates a DNS zone. Does not modify DNS records within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "zoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Zone" + }, + "description": "Parameters supplied to the Update operation." + }, + { + "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 overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/Zone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Patch zone": { + "$ref": "./examples/PatchZone.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones": { + "get": { + "tags": [ + "Zones" + ], + "operationId": "Zones_ListByResourceGroup", + "description": "Lists the DNS zones within a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/ZoneListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List zones by resource group": { + "$ref": "./examples/ListZonesByResourceGroup.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", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of DNS zones to return. If not specified, returns up to 100 zones." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/ZoneListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List zones by subscription": { + "$ref": "./examples/ListZonesBySubscription.json" + } + } + } + } + }, + "definitions": { + "ARecord": { + "properties": { + "ipv4Address": { + "type": "string", + "description": "The IPv4 address of this A record." + } + }, + "description": "An A record." + }, + "AaaaRecord": { + "properties": { + "ipv6Address": { + "type": "string", + "description": "The IPv6 address of this AAAA record." + } + }, + "description": "An AAAA record." + }, + "MxRecord": { + "properties": { + "preference": { + "type": "integer", + "format": "int32", + "description": "The preference value for this MX record." + }, + "exchange": { + "type": "string", + "description": "The domain name of the mail host for this MX record." + } + }, + "description": "An MX record." + }, + "NsRecord": { + "properties": { + "nsdname": { + "type": "string", + "description": "The name server name for this NS record." + } + }, + "description": "An NS record." + }, + "PtrRecord": { + "properties": { + "ptrdname": { + "type": "string", + "description": "The PTR target domain name for this PTR record." + } + }, + "description": "A PTR record." + }, + "SrvRecord": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority value for this SRV record." + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "The weight value for this SRV record." + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port value for this SRV record." + }, + "target": { + "type": "string", + "description": "The target domain name for this SRV record." + } + }, + "description": "An SRV record." + }, + "TxtRecord": { + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The text value of this TXT record." + } + }, + "description": "A TXT record." + }, + "CnameRecord": { + "properties": { + "cname": { + "type": "string", + "description": "The canonical name for this CNAME record." + } + }, + "description": "A CNAME record." + }, + "SoaRecord": { + "properties": { + "host": { + "type": "string", + "description": "The domain name of the authoritative name server for this SOA record." + }, + "email": { + "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": "An SOA record." + }, + "CaaRecord": { + "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": "string", + "description": "The value for this CAA record." + } + }, + "description": "A CAA record." + }, + "RecordSetProperties": { + "properties": { + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The metadata attached to the record set." + }, + "TTL": { + "type": "integer", + "format": "int64", + "description": "The TTL (time-to-live) of the records in the record set." + }, + "fqdn": { + "type": "string", + "description": "Fully qualified domain name of the record set.", + "readOnly": true + }, + "ARecords": { + "type": "array", + "items": { + "$ref": "#/definitions/ARecord" + }, + "description": "The list of A records in the record set." + }, + "AAAARecords": { + "type": "array", + "x-ms-client-name": "AaaaRecords", + "items": { + "$ref": "#/definitions/AaaaRecord" + }, + "description": "The list of AAAA records in the record set." + }, + "MXRecords": { + "type": "array", + "x-ms-client-name": "MxRecords", + "items": { + "$ref": "#/definitions/MxRecord" + }, + "description": "The list of MX records in the record set." + }, + "NSRecords": { + "type": "array", + "x-ms-client-name": "NsRecords", + "items": { + "$ref": "#/definitions/NsRecord" + }, + "description": "The list of NS records in the record set." + }, + "PTRRecords": { + "type": "array", + "x-ms-client-name": "PtrRecords", + "items": { + "$ref": "#/definitions/PtrRecord" + }, + "description": "The list of PTR records in the record set." + }, + "SRVRecords": { + "type": "array", + "x-ms-client-name": "SrvRecords", + "items": { + "$ref": "#/definitions/SrvRecord" + }, + "description": "The list of SRV records in the record set." + }, + "TXTRecords": { + "type": "array", + "x-ms-client-name": "TxtRecords", + "items": { + "$ref": "#/definitions/TxtRecord" + }, + "description": "The list of TXT records in the record set." + }, + "CNAMERecord": { + "$ref": "#/definitions/CnameRecord", + "x-ms-client-name": "CnameRecord", + "description": "The CNAME record in the record set." + }, + "SOARecord": { + "$ref": "#/definitions/SoaRecord", + "x-ms-client-name": "SoaRecord", + "description": "The SOA record in the record set." + }, + "caaRecords": { + "type": "array", + "x-ms-client-name": "CaaRecords", + "items": { + "$ref": "#/definitions/CaaRecord" + }, + "description": "The list of CAA records in the record set." + } + }, + "description": "Represents the properties of the records in the record set." + }, + "RecordSet": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the record set.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the record set.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the record set.", + "readOnly": true + }, + "etag": { + "type": "string", + "description": "The etag of the record set." + }, + "properties": { + "$ref": "#/definitions/RecordSetProperties", + "x-ms-client-flatten": true, + "description": "The properties of the record set." + } + }, + "description": "Describes a DNS record set (a collection of DNS records with the same name and type).", + "x-ms-azure-resource": true + }, + "RecordSetUpdateParameters": { + "properties": { + "RecordSet": { + "$ref": "#/definitions/RecordSet", + "description": "Specifies information about the record set being updated." + } + }, + "description": "Parameters supplied to update a record set." + }, + "RecordSetListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RecordSet" + }, + "description": "Information about the record sets in the response." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response to a record set List operation." + }, + "ZoneProperties": { + "properties": { + "maxNumberOfRecordSets": { + "type": "integer", + "format": "int64", + "description": "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.", + "readOnly": true + }, + "numberOfRecordSets": { + "type": "integer", + "format": "int64", + "description": "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.", + "readOnly": true + }, + "nameServers": { + "type": "array", + "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 + }, + "zoneType": { + "type": "string", + "enum": [ + "Public", + "Private" + ], + "x-ms-enum": { + "name": "ZoneType", + "modelAsString": false + }, + "default": "Public", + "description": "The type of this DNS zone (Public or Private)." + }, + "registrationVirtualNetworks": { + "type": "array", + "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." + }, + "resolutionVirtualNetworks": { + "type": "array", + "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." + } + }, + "description": "Represents the properties of the zone." + }, + "Zone": { + "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." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a DNS zone." + }, + "ZoneListResult": { + "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." + }, + "Resource": { + "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." + } + }, + "description": "Common properties of an Azure Resource Manager resource" + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id." + } + }, + "description": "A reference to a another resource" + }, + "CloudError": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The error message body" + } + }, + "x-ms-external": true, + "description": "An error message" + }, + "CloudErrorBody": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The error code" + }, + "message": { + "type": "string", + "description": "A description of what caused the error" + }, + "target": { + "type": "string", + "description": "The target resource of the error message" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "Extra error information" + } + }, + "x-ms-external": true, + "description": "The body of an error message" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Specifies the API version." + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateAAAARecordset.json new file mode 100644 index 000000000000..c77cfbcd8422 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateAAAARecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateARecordset.json new file mode 100644 index 000000000000..4fb42d145ba5 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateARecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCNAMERecordset.json new file mode 100644 index 000000000000..24bf6f80ad7e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCNAMERecordset.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCaaRecordset.json new file mode 100644 index 000000000000..a1ac2017b881 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateCaaRecordset.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateMXRecordset.json new file mode 100644 index 000000000000..f2e5f4cd61af --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateMXRecordset.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateNSRecordset.json new file mode 100644 index 000000000000..6460e5d28ce7 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateNSRecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePTRRecordset.json new file mode 100644 index 000000000000..9f426009fdd9 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePTRRecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePrivateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePrivateZone.json new file mode 100644 index 000000000000..77aae07dab1f --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdatePrivateZone.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + } + }, + "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", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "nameServers": [], + "zoneType": "Private", + "registrationVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + } + ], + "resolutionVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" + } + ] + }, + "tags": { + "key1": "value1" + } + } + }, + "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", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "nameServers": [], + "zoneType": "Private", + "registrationVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1" + } + ], + "resolutionVirtualNetworks": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2" + } + ] + }, + "tags": { + "key1": "value1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSOARecordset.json new file mode 100644 index 000000000000..27e35461e5df --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSOARecordset.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-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, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSRVRecordset.json new file mode 100644 index 000000000000..76bc02fe359d --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateSRVRecordset.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-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" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateTXTRecordset.json new file mode 100644 index 000000000000..258742a1d5b2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateTXTRecordset.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateZone.json new file mode 100644 index 000000000000..e2f4fb0c58f2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/CreateOrUpdateZone.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + } + }, + "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", + "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" + ], + "zoneType":"Public" + }, + "tags": { + "key1": "value1" + } + } + }, + "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", + "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" + ], + "zoneType":"Public" + }, + "tags": { + "key1": "value1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteAAAARecordset.json new file mode 100644 index 000000000000..3c54ae0f2fd4 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteAAAARecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteARecordset.json new file mode 100644 index 000000000000..3aa2b719465a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteARecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCNAMERecordset.json new file mode 100644 index 000000000000..8f1497d35bbb --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCNAMERecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCaaRecordset.json new file mode 100644 index 000000000000..c237fd4a81f2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteCaaRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteMXRecordset.json new file mode 100644 index 000000000000..ef04a4e9e7f3 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteMXRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteNSRecordset.json new file mode 100644 index 000000000000..2330a8064651 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteNSRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeletePTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeletePTRRecordset.json new file mode 100644 index 000000000000..553c94bcc3f0 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeletePTRRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteSRVRecordset.json new file mode 100644 index 000000000000..21fc3bf0785a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteSRVRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteTXTRecordset.json new file mode 100644 index 000000000000..fd1dbfb4f1e2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteTXTRecordset.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteZone.json new file mode 100644 index 000000000000..e7837824fc23 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/DeleteZone.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://asyncoperationstatusurl" + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetAAAARecordset.json new file mode 100644 index 000000000000..91cb55cbe06a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetAAAARecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetARecordset.json new file mode 100644 index 000000000000..54c329776155 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetARecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCNAMERecordset.json new file mode 100644 index 000000000000..17373b90361e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCNAMERecordset.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCaaRecordset.json new file mode 100644 index 000000000000..4edc848f5504 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetCaaRecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetMXRecordset.json new file mode 100644 index 000000000000..6d521825c089 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetMXRecordset.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetNSRecordset.json new file mode 100644 index 000000000000..30750e21ebf2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetNSRecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetPTRRecordset.json new file mode 100644 index 000000000000..6c80ad294e33 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetPTRRecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSOARecordset.json new file mode 100644 index 000000000000..be94df8af220 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSOARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "@", + "recordType": "SOA" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSRVRecordset.json new file mode 100644 index 000000000000..7beaecd9281a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetSRVRecordset.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetTXTRecordset.json new file mode 100644 index 000000000000..25d05771bb11 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetTXTRecordset.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT" + }, + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetZone.json new file mode 100644 index 000000000000..69d34abae586 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/GetZone.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid" + }, + "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", + "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" + ] + }, + "tags": { + "key1": "value1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListAAAARecordset.json new file mode 100644 index 000000000000..f8ba868d23ed --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListAAAARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "AAAA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/AAAA?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListARecordset.json new file mode 100644 index 000000000000..526fe4a44282 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListARecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "A" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCNAMERecordset.json new file mode 100644 index 000000000000..1b425a17904e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCNAMERecordset.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "CNAME" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CNAME?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCaaRecordset.json new file mode 100644 index 000000000000..574afd297970 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListCaaRecordset.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "CAA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListMXRecordset.json new file mode 100644 index 000000000000..46de44626d8a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListMXRecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "MX" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/MX?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListNSRecordset.json new file mode 100644 index 000000000000..168ec56a7b06 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListNSRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "NS" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/NS?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListPTRRecordset.json new file mode 100644 index 000000000000..341e5e769d8a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListPTRRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "PTR" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/0.0.127.in-addr.arpa/PTR?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListRecordSetsByZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListRecordSetsByZone.json new file mode 100644 index 000000000000..e4704d503ac9 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListRecordSetsByZone.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/CAA?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/A/record1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "record1", + "type": "Microsoft.Network/dnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + }, + { + "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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record2.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSOARecordset.json new file mode 100644 index 000000000000..cceab2eea3c7 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSOARecordset.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "SOA" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SOA?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSRVRecordset.json new file mode 100644 index 000000000000..098948746c45 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListSRVRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "SRV" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/SRV?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListTXTRecordset.json new file mode 100644 index 000000000000..fc6ca39cdab2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListTXTRecordset.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "recordType": "TXT" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT?api-version=2018-03-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", + "properties": { + "metadata": { + "key1": "value1" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesByResourceGroup.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesByResourceGroup.json new file mode 100644 index 000000000000..18f389d1272e --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesByResourceGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones?api-version=2018-03-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", + "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" + ] + }, + "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", + "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" + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesBySubscription.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesBySubscription.json new file mode 100644 index 000000000000..3123cdae5540 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/ListZonesBySubscription.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-03-01-preview", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://servicehost/subscriptions/subid/providers/Microsoft.Network/dnsZones?api-version=2018-03-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", + "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" + ] + }, + "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", + "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" + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchAAAARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchAAAARecordset.json new file mode 100644 index 000000000000..f1298d25bcbe --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchAAAARecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "AAAA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "AAAARecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchARecordset.json new file mode 100644 index 000000000000..70034cadd738 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchARecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "A", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "ARecords": [ + { + "ipv4Address": "127.0.0.1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCNAMERecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCNAMERecordset.json new file mode 100644 index 000000000000..e618f0013aec --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCNAMERecordset.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CNAME", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "CNAMERecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCaaRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCaaRecordset.json new file mode 100644 index 000000000000..d2888020e4c3 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchCaaRecordset.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "CAA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "caaRecords": [ + { + "flags": 0, + "tag": "issue", + "value": "ca.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchMXRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchMXRecordset.json new file mode 100644 index 000000000000..c98538379052 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchMXRecordset.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "MX", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "MXRecords": [ + { + "preference": 0, + "exchange": "mail.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchNSRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchNSRecordset.json new file mode 100644 index 000000000000..61e6e47807d6 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchNSRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "NS", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "NSRecords": [ + { + "nsdname": "ns1.contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchPTRRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchPTRRecordset.json new file mode 100644 index 000000000000..25332972b292 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchPTRRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "0.0.127.in-addr.arpa", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "1", + "recordType": "PTR", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "1.0.0.127.in-addr.arpa", + "PTRRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSOARecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSOARecordset.json new file mode 100644 index 000000000000..5a9509077865 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSOARecordset.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "@", + "recordType": "SOA", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "zone1", + "SOARecord": { + "host": "ns1.contoso.com", + "email": "hostmaster.contoso.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTTL": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSRVRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSRVRecordset.json new file mode 100644 index 000000000000..734495d189f2 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchSRVRecordset.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "SRV", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "SRVRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchTXTRecordset.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchTXTRecordset.json new file mode 100644 index 000000000000..913e82a3a09a --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchTXTRecordset.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "relativeRecordSetName": "record1", + "recordType": "TXT", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "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", + "properties": { + "metadata": { + "key2": "value2" + }, + "TTL": 3600, + "fqdn": "record1.zone1", + "TXTRecords": [ + { + "value": [ "string1", "string2" ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchZone.json b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchZone.json new file mode 100644 index 000000000000..f5a742704059 --- /dev/null +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2018-03-01-preview/examples/PatchZone.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "zoneName": "zone1", + "resourceGroupName": "rg1", + "api-version": "2018-03-01-preview", + "subscriptionId": "subid", + "parameters": { + "location": "Global", + "tags": { + "key2": "value2" + } + } + }, + "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", + "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" + ] + }, + "tags": { + "key2": "value2" + } + } + } + } +} \ No newline at end of file diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 619206d093ab..3ddaf82b9fb1 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -26,7 +26,35 @@ These are the global settings for the DNS API. ``` yaml openapi-type: arm -tag: package-2017-10 +tag: package-2018-03-preview +``` + +### Tag: package-2018-03-preview + +These settings apply only when `--tag=package-2018-03-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-03-preview' +input-file: +- Microsoft.Network/preview/2018-03-01-preview/dns.json +directive: + - where: + - $.paths + suppress: + - OperationsAPIImplementation + - where: + - $.definitions.RecordSetProperties.properties.TTL + - $.definitions.RecordSetProperties.properties.ARecords + - $.definitions.RecordSetProperties.properties.AAAARecords + - $.definitions.RecordSetProperties.properties.MXRecords + - $.definitions.RecordSetProperties.properties.NSRecords + - $.definitions.RecordSetProperties.properties.PTRRecords + - $.definitions.RecordSetProperties.properties.SRVRecords + - $.definitions.RecordSetProperties.properties.TXTRecords + - $.definitions.RecordSetProperties.properties.CNAMERecord + - $.definitions.RecordSetProperties.properties.SOARecord + - $.definitions.RecordSetUpdateParameters.properties.RecordSet + suppress: + - DefinitionsPropertiesNamesCamelCase ``` ### Tag: package-2017-10 @@ -160,12 +188,22 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2018-03-preview - tag: package-2017-10 - tag: package-2017-09 - tag: package-2016-04 - tag: package-2015-05-preview ``` +### Tag: package-2018-03-preview and go + +These settings apply only when `--tag=package-2018-03-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-03-preview' && $(go) +output-folder: $(go-sdk-folder)/services/dns/mgmt/2018-03-01-preview/dns +``` + ### Tag: package-2017-10 and go These settings apply only when `--tag=package-2017-10 --go` is specified on the command line.