diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json index 44bf2f594b3b..156714bd5a84 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json @@ -477,6 +477,9 @@ } ], "responses": { + "200": { + "description": "Ok." + }, "202": { "description": "Accepted and the operation will complete asynchronously.", "headers": { @@ -2773,18 +2776,6 @@ "modelAsString": true } }, - "errors": { - "readOnly": true, - "description": "List of validation errors", - "$ref": "#/definitions/MigrationErrorsListResponse" - } - }, - "x-ms-azure-resource": true - }, - "MigrationErrorsListResponse": { - "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { "errors": { "items": { "description": "List of migration errors", @@ -2793,7 +2784,8 @@ "type": "array", "x-ms-identifiers": [] } - } + }, + "x-ms-azure-resource": true }, "MigrationErrorType": { "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.", @@ -2824,6 +2816,9 @@ "CanMigrateParameters": { "type": "object", "description": "Request body for CanMigrate operation.", + "required": [ + "classicResourceReference" + ], "properties": { "classicResourceReference": { "description": "Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.", @@ -2835,6 +2830,11 @@ "MigrationParameters": { "type": "object", "description": "Request body for Migrate operation.", + "required": [ + "classicResourceReference", + "sku", + "profileName" + ], "properties": { "sku": { "description": "Sku for the migration", @@ -2884,9 +2884,12 @@ "$ref": "#/definitions/ResourceReference" }, "errors": { - "readOnly": true, - "description": "List of validation errors", - "$ref": "#/definitions/MigrationErrorsListResponse" + "items": { + "description": "List of migration errors", + "$ref": "#/definitions/MigrationErrorType" + }, + "type": "array", + "x-ms-identifiers": [] } }, "x-ms-azure-resource": true diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_MigrationCommit.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_MigrationCommit.json index ef3e1b187607..1ab3fc97b453 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_MigrationCommit.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_MigrationCommit.json @@ -6,6 +6,7 @@ "profileName": "profile1" }, "responses": { + "200": {}, "202": { "headers": { "azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"