|
332 | 332 | "x-ms-long-running-operation": true
|
333 | 333 | }
|
334 | 334 | },
|
| 335 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/canMigrate": { |
| 336 | + "post": { |
| 337 | + "tags": [ |
| 338 | + "Profiles" |
| 339 | + ], |
| 340 | + "description": "Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.", |
| 341 | + "operationId": "Profiles_CanMigrate", |
| 342 | + "x-ms-examples": { |
| 343 | + "Profiles_CanMigrate": { |
| 344 | + "$ref": "./examples/Profiles_CanMigrate.json" |
| 345 | + } |
| 346 | + }, |
| 347 | + "parameters": [ |
| 348 | + { |
| 349 | + "$ref": "#/parameters/resourceGroupNameParameter" |
| 350 | + }, |
| 351 | + { |
| 352 | + "name": "profileName", |
| 353 | + "in": "path", |
| 354 | + "description": "Name of the CDN profile which is unique within the resource group.", |
| 355 | + "required": true, |
| 356 | + "type": "string" |
| 357 | + }, |
| 358 | + { |
| 359 | + "$ref": "#/parameters/subscriptionIdParameter" |
| 360 | + }, |
| 361 | + { |
| 362 | + "$ref": "#/parameters/apiVersionParameter" |
| 363 | + } |
| 364 | + ], |
| 365 | + "responses": { |
| 366 | + "200": { |
| 367 | + "description": "OK. The request has succeeded.", |
| 368 | + "schema": { |
| 369 | + "$ref": "#/definitions/CanMigrateResult" |
| 370 | + } |
| 371 | + }, |
| 372 | + "default": { |
| 373 | + "description": "CDN error response describing why the operation failed.", |
| 374 | + "schema": { |
| 375 | + "$ref": "#/definitions/ErrorResponse" |
| 376 | + } |
| 377 | + } |
| 378 | + }, |
| 379 | + "x-ms-long-running-operation": true |
| 380 | + } |
| 381 | + }, |
| 382 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrate": { |
| 383 | + "post": { |
| 384 | + "tags": [ |
| 385 | + "Profiles" |
| 386 | + ], |
| 387 | + "description": "Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. The change need to be committed after this.", |
| 388 | + "operationId": "Profiles_Migrate", |
| 389 | + "x-ms-examples": { |
| 390 | + "Profiles_Create": { |
| 391 | + "$ref": "./examples/Profiles_Migrate.json" |
| 392 | + } |
| 393 | + }, |
| 394 | + "parameters": [ |
| 395 | + { |
| 396 | + "$ref": "#/parameters/resourceGroupNameParameter" |
| 397 | + }, |
| 398 | + { |
| 399 | + "name": "profileName", |
| 400 | + "in": "path", |
| 401 | + "description": "Name of the CDN profile which is unique within the resource group.", |
| 402 | + "required": true, |
| 403 | + "type": "string" |
| 404 | + }, |
| 405 | + { |
| 406 | + "$ref": "#/parameters/subscriptionIdParameter" |
| 407 | + }, |
| 408 | + { |
| 409 | + "$ref": "#/parameters/apiVersionParameter" |
| 410 | + }, |
| 411 | + { |
| 412 | + "description": "Properties needed to migrate the profile.", |
| 413 | + "in": "body", |
| 414 | + "name": "migrationParameters", |
| 415 | + "required": true, |
| 416 | + "schema": { |
| 417 | + "$ref": "#/definitions/MigrationParameters" |
| 418 | + } |
| 419 | + } |
| 420 | + ], |
| 421 | + "responses": { |
| 422 | + "200": { |
| 423 | + "description": "OK. The request has succeeded.", |
| 424 | + "schema": { |
| 425 | + "$ref": "#/definitions/MigrateResult" |
| 426 | + } |
| 427 | + }, |
| 428 | + "default": { |
| 429 | + "description": "CDN error response describing why the operation failed.", |
| 430 | + "schema": { |
| 431 | + "$ref": "#/definitions/ErrorResponse" |
| 432 | + } |
| 433 | + } |
| 434 | + }, |
| 435 | + "x-ms-long-running-operation": true |
| 436 | + } |
| 437 | + }, |
| 438 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationCommit": { |
| 439 | + "post": { |
| 440 | + "tags": [ |
| 441 | + "Profiles" |
| 442 | + ], |
| 443 | + "description": "Commit the migrated Azure Frontdoor(Standard/Premium) profile.", |
| 444 | + "operationId": "Profiles_Migrate", |
| 445 | + "x-ms-examples": { |
| 446 | + "Profiles_Create": { |
| 447 | + "$ref": "./examples/Profiles_MigrationCommit.json" |
| 448 | + } |
| 449 | + }, |
| 450 | + "parameters": [ |
| 451 | + { |
| 452 | + "$ref": "#/parameters/resourceGroupNameParameter" |
| 453 | + }, |
| 454 | + { |
| 455 | + "name": "profileName", |
| 456 | + "in": "path", |
| 457 | + "description": "Name of the CDN profile which is unique within the resource group.", |
| 458 | + "required": true, |
| 459 | + "type": "string" |
| 460 | + }, |
| 461 | + { |
| 462 | + "$ref": "#/parameters/subscriptionIdParameter" |
| 463 | + }, |
| 464 | + { |
| 465 | + "$ref": "#/parameters/apiVersionParameter" |
| 466 | + } |
| 467 | + ], |
| 468 | + "responses": { |
| 469 | + "200": { |
| 470 | + "description": "OK. The request has succeeded." |
| 471 | + }, |
| 472 | + "default": { |
| 473 | + "description": "CDN error response describing why the operation failed.", |
| 474 | + "schema": { |
| 475 | + "$ref": "#/definitions/ErrorResponse" |
| 476 | + } |
| 477 | + } |
| 478 | + }, |
| 479 | + "x-ms-long-running-operation": true |
| 480 | + } |
| 481 | + }, |
335 | 482 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/generateSsoUri": {
|
336 | 483 | "post": {
|
337 | 484 | "tags": [
|
|
2465 | 2612 | "Creating",
|
2466 | 2613 | "Active",
|
2467 | 2614 | "Deleting",
|
2468 |
| - "Disabled" |
| 2615 | + "Disabled", |
| 2616 | + "Migrating", |
| 2617 | + "Migrated" |
2469 | 2618 | ],
|
2470 | 2619 | "type": "string",
|
2471 | 2620 | "x-ms-enum": {
|
|
2478 | 2627 | "description": "Provisioning status of the profile.",
|
2479 | 2628 | "type": "string"
|
2480 | 2629 | },
|
| 2630 | + "migratedTo": { |
| 2631 | + "readOnly": true, |
| 2632 | + "description": "Reference of the Profile this is migrated to.", |
| 2633 | + "$ref": "#/definitions/ResourceReference" |
| 2634 | + }, |
| 2635 | + "migratedFrom": { |
| 2636 | + "readOnly": true, |
| 2637 | + "description": "Reference of the Profile this is migrated from.", |
| 2638 | + "$ref": "#/definitions/ResourceReference" |
| 2639 | + }, |
2481 | 2640 | "frontdoorId": {
|
2482 | 2641 | "readOnly": true,
|
2483 | 2642 | "type": "string",
|
|
2516 | 2675 | },
|
2517 | 2676 | "x-ms-azure-resource": true
|
2518 | 2677 | },
|
| 2678 | + "CanMigrateResult": { |
| 2679 | + "type": "object", |
| 2680 | + "description": "Result for canMigrate operation.", |
| 2681 | + "properties": { |
| 2682 | + "canMigrate": { |
| 2683 | + "readOnly": true, |
| 2684 | + "description": "Flag that says if the profile can be migrated", |
| 2685 | + "type": "boolean" |
| 2686 | + }, |
| 2687 | + "defaultSku": { |
| 2688 | + "readOnly": true, |
| 2689 | + "description": "Recommended sku for the migration", |
| 2690 | + "type": "string", |
| 2691 | + "enum": [ |
| 2692 | + "Standard_AzureFrontDoor", |
| 2693 | + "Premium_AzureFrontDoor" |
| 2694 | + ], |
| 2695 | + "x-ms-enum": { |
| 2696 | + "name": "CanMigrateDefaultSku", |
| 2697 | + "modelAsString": true |
| 2698 | + } |
| 2699 | + }, |
| 2700 | + "errors": { |
| 2701 | + "readOnly": true, |
| 2702 | + "description": "List of validation errors", |
| 2703 | + "$ref": "#/definitions/MigrationErrorsListResponse" |
| 2704 | + } |
| 2705 | + }, |
| 2706 | + "x-ms-azure-resource": true |
| 2707 | + }, |
| 2708 | + "MigrationErrorsListResponse": { |
| 2709 | + "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.", |
| 2710 | + "type": "object", |
| 2711 | + "properties": { |
| 2712 | + "errors":{ |
| 2713 | + "items": { |
| 2714 | + "$ref": "#/definitions/MigrationErrorType" |
| 2715 | + }, |
| 2716 | + "type": "array" |
| 2717 | + } |
| 2718 | + } |
| 2719 | + }, |
| 2720 | + "MigrationErrorType": { |
| 2721 | + "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.", |
| 2722 | + "type": "object", |
| 2723 | + "properties": { |
| 2724 | + "code": { |
| 2725 | + "description": "Error code.", |
| 2726 | + "readOnly": true, |
| 2727 | + "type": "string" |
| 2728 | + }, |
| 2729 | + "message": { |
| 2730 | + "description": "Error message indicating why the operation failed.", |
| 2731 | + "readOnly": true, |
| 2732 | + "type": "string" |
| 2733 | + } |
| 2734 | + } |
| 2735 | + }, |
| 2736 | + "MigrationParameters": { |
| 2737 | + "type": "object", |
| 2738 | + "description": "Request body for Migrate operation.", |
| 2739 | + "properties": { |
| 2740 | + "Sku": { |
| 2741 | + "description": "Sku for the migration", |
| 2742 | + "type": "string", |
| 2743 | + "enum": [ |
| 2744 | + "Standard_AzureFrontDoor", |
| 2745 | + "Premium_AzureFrontDoor" |
| 2746 | + ], |
| 2747 | + "x-ms-enum": { |
| 2748 | + "name": "MigrationSku", |
| 2749 | + "modelAsString": true |
| 2750 | + } |
| 2751 | + } |
| 2752 | + }, |
| 2753 | + "x-ms-azure-resource": true |
| 2754 | + }, |
| 2755 | + "MigrateResult": { |
| 2756 | + "type": "object", |
| 2757 | + "description": "Result for canMigrate operation.", |
| 2758 | + "properties": { |
| 2759 | + "MigratedProfileArmResourceId": { |
| 2760 | + "readOnly": true, |
| 2761 | + "description": "Arm resource id of the migrated profile", |
| 2762 | + "$ref": "#/definitions/ResourceReference" |
| 2763 | + }, |
| 2764 | + "MigratedWafArmResourceIds": { |
| 2765 | + "description": "Arm resource ids of the waf resources", |
| 2766 | + "type": "array", |
| 2767 | + "items": { |
| 2768 | + "description": "A reference to a origin.", |
| 2769 | + "$ref": "#/definitions/ResourceReference" |
| 2770 | + } |
| 2771 | + }, |
| 2772 | + "errors": { |
| 2773 | + "readOnly": true, |
| 2774 | + "description": "List of validation errors", |
| 2775 | + "$ref": "#/definitions/MigrationErrorsListResponse" |
| 2776 | + } |
| 2777 | + }, |
| 2778 | + "x-ms-azure-resource": true |
| 2779 | + }, |
2519 | 2780 | "SsoUri": {
|
2520 | 2781 | "description": "The URI required to login to the supplemental portal from the Azure portal.",
|
2521 | 2782 | "type": "object",
|
|
0 commit comments