|
563 | 563 | } |
564 | 564 | } |
565 | 565 | }, |
| 566 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate": { |
| 567 | + "post": { |
| 568 | + "tags": [ |
| 569 | + "AppPlatform" |
| 570 | + ], |
| 571 | + "description": "Check if the config server settings are valid.", |
| 572 | + "operationId": "ConfigServers_Validate", |
| 573 | + "parameters": [ |
| 574 | + { |
| 575 | + "$ref": "#/parameters/ApiVersionParameter" |
| 576 | + }, |
| 577 | + { |
| 578 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 579 | + }, |
| 580 | + { |
| 581 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 582 | + }, |
| 583 | + { |
| 584 | + "$ref": "#/parameters/ServiceNameParameter" |
| 585 | + }, |
| 586 | + { |
| 587 | + "name": "configServerSettings", |
| 588 | + "in": "body", |
| 589 | + "description": "Config server settings to be validated", |
| 590 | + "required": true, |
| 591 | + "schema": { |
| 592 | + "$ref": "#/definitions/ConfigServerSettings" |
| 593 | + } |
| 594 | + } |
| 595 | + ], |
| 596 | + "responses": { |
| 597 | + "200": { |
| 598 | + "description": "Success. The response describes the validation result of Config Server.", |
| 599 | + "schema": { |
| 600 | + "$ref": "#/definitions/ConfigServerSettingsValidateResult" |
| 601 | + } |
| 602 | + }, |
| 603 | + "202": { |
| 604 | + "description": "Accepted. The response indicates the ConfigServerSetting is validating.", |
| 605 | + "schema": { |
| 606 | + "$ref": "#/definitions/ConfigServerSettingsValidateResult" |
| 607 | + } |
| 608 | + }, |
| 609 | + "default": { |
| 610 | + "description": "Error response describing why the operation failed.", |
| 611 | + "schema": { |
| 612 | + "$ref": "#/definitions/CloudError" |
| 613 | + } |
| 614 | + } |
| 615 | + }, |
| 616 | + "x-ms-long-running-operation": true, |
| 617 | + "x-ms-long-running-operation-options": { |
| 618 | + "final-state-via": "location" |
| 619 | + }, |
| 620 | + "x-ms-examples": { |
| 621 | + "ConfigServers_Validate": { |
| 622 | + "$ref": "./examples/ConfigServers_Validate.json" |
| 623 | + } |
| 624 | + } |
| 625 | + } |
| 626 | + }, |
566 | 627 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default": { |
567 | 628 | "get": { |
568 | 629 | "tags": [ |
|
2833 | 2894 | } |
2834 | 2895 | } |
2835 | 2896 | }, |
| 2897 | + "ConfigServerSettingsValidateResult": { |
| 2898 | + "description": "Validation result for config server settings", |
| 2899 | + "type": "object", |
| 2900 | + "properties": { |
| 2901 | + "isValid": { |
| 2902 | + "description": "Indicate if the config server settings are valid", |
| 2903 | + "type": "boolean" |
| 2904 | + }, |
| 2905 | + "details": { |
| 2906 | + "description": "The detail validation results", |
| 2907 | + "type": "array", |
| 2908 | + "items": { |
| 2909 | + "$ref": "#/definitions/ConfigServerSettingsErrorRecord" |
| 2910 | + } |
| 2911 | + } |
| 2912 | + } |
| 2913 | + }, |
| 2914 | + "ConfigServerSettingsErrorRecord": { |
| 2915 | + "description": "Error record of the config server settings", |
| 2916 | + "type": "object", |
| 2917 | + "properties": { |
| 2918 | + "name": { |
| 2919 | + "description": "The name of the config server settings error record", |
| 2920 | + "type": "string" |
| 2921 | + }, |
| 2922 | + "uri": { |
| 2923 | + "description": "The uri of the config server settings error record", |
| 2924 | + "type": "string" |
| 2925 | + }, |
| 2926 | + "messages": { |
| 2927 | + "description": "The detail error messages of the record", |
| 2928 | + "type": "array", |
| 2929 | + "items": { |
| 2930 | + "type": "string" |
| 2931 | + } |
| 2932 | + } |
| 2933 | + } |
| 2934 | + }, |
2836 | 2935 | "ConfigServerResource": { |
2837 | 2936 | "description": "Config Server resource", |
2838 | 2937 | "type": "object", |
|
0 commit comments