|
366 | 366 | "description": "OK - Governance rule was deleted" |
367 | 367 | }, |
368 | 368 | "202": { |
369 | | - "description": "Accepted - Governance rule deletion on management scope", |
| 369 | + "description": "Accepted - The operation still in progress", |
370 | 370 | "headers": { |
371 | 371 | "location": { |
372 | 372 | "type": "string", |
|
437 | 437 | "GovernanceRules" |
438 | 438 | ], |
439 | 439 | "description": "Get a specific governance rule for the requested scope by ruleId", |
440 | | - "operationId": "managementGroupGovernanceRules_Get", |
| 440 | + "operationId": "ManagementGroupGovernanceRules_Get", |
441 | 441 | "parameters": [ |
442 | 442 | { |
443 | 443 | "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" |
|
534 | 534 | ], |
535 | 535 | "responses": { |
536 | 536 | "202": { |
537 | | - "description": "Accepted - Governance rule deletion on management scope", |
| 537 | + "description": "Accepted - The operation still in progress", |
538 | 538 | "headers": { |
539 | 539 | "location": { |
540 | 540 | "type": "string", |
|
711 | 711 | "/subscriptions/{subscriptionId}/providers/Microsoft.Security/governanceRules/{ruleId}/operationResults/{operationId}": { |
712 | 712 | "get": { |
713 | 713 | "x-ms-examples": { |
714 | | - "Get governance rules execution status by specific governanceRuleId": { |
| 714 | + "Get governance rules long run operation result by specific governance rule ID": { |
715 | 715 | "$ref": "./examples/GovernanceRules/GetGovernanceRuleExecuteStatus_example.json" |
716 | 716 | } |
717 | 717 | }, |
718 | 718 | "tags": [ |
719 | 719 | "GovernanceRules" |
720 | 720 | ], |
721 | | - "description": "Get a specific governance rule execution status for the requested scope by ruleId and operationId", |
722 | | - "operationId": "SubscriptionGovernanceRulesExecuteStatus_Get", |
| 721 | + "description": "Get governance rules long run operation result for the requested scope by ruleId and operationId", |
| 722 | + "operationId": "SubscriptionGovernanceRulesOperationResult_Get", |
723 | 723 | "parameters": [ |
724 | 724 | { |
725 | 725 | "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" |
|
736 | 736 | ], |
737 | 737 | "responses": { |
738 | 738 | "200": { |
739 | | - "description": "OK", |
| 739 | + "description": "OK - The operation completed", |
740 | 740 | "schema": { |
741 | | - "$ref": "#/definitions/ExecuteRuleStatus" |
| 741 | + "$ref": "#/definitions/OperationResult" |
742 | 742 | } |
743 | 743 | }, |
744 | 744 | "202": { |
745 | | - "description": "Accepted", |
| 745 | + "description": "Accepted - The operation still in progress", |
746 | 746 | "headers": { |
747 | 747 | "location": { |
748 | 748 | "type": "string", |
|
762 | 762 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/providers/Microsoft.Security/governanceRules/{ruleId}/operationResults/{operationId}": { |
763 | 763 | "get": { |
764 | 764 | "x-ms-examples": { |
765 | | - "Get governance rules execution status by specific governanceRuleId": { |
| 765 | + "Get governance rules long run operation result by specific governance rule ID": { |
766 | 766 | "$ref": "./examples/GovernanceRules/GetSecurityConnectorGovernanceRuleExecuteStatus_example.json" |
767 | 767 | } |
768 | 768 | }, |
769 | 769 | "tags": [ |
770 | 770 | "GovernanceRules" |
771 | 771 | ], |
772 | | - "description": "Get a specific governance rule execution status for the requested scope by ruleId and operationId", |
773 | | - "operationId": "SecurityConnectorGovernanceRulesExecuteStatus_Get", |
| 772 | + "description": "Get governance rule long run operation result for the requested scope by ruleId and operationId", |
| 773 | + "operationId": "SecurityConnectorGovernanceRulesOperationResult_Get", |
774 | 774 | "parameters": [ |
775 | 775 | { |
776 | 776 | "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" |
|
793 | 793 | ], |
794 | 794 | "responses": { |
795 | 795 | "200": { |
796 | | - "description": "OK", |
| 796 | + "description": "OK - The operation completed", |
797 | 797 | "schema": { |
798 | | - "$ref": "#/definitions/ExecuteRuleStatus" |
| 798 | + "$ref": "#/definitions/OperationResult" |
799 | 799 | } |
800 | 800 | }, |
801 | 801 | "202": { |
802 | | - "description": "Accepted", |
| 802 | + "description": "Accepted - The operation still in progress", |
803 | 803 | "headers": { |
804 | 804 | "location": { |
805 | 805 | "type": "string", |
|
816 | 816 | } |
817 | 817 | } |
818 | 818 | }, |
819 | | - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Security/governanceRules/{ruleId}/execute/operationResults/{operationId}": { |
| 819 | + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Security/governanceRules/{ruleId}/operationResults/{operationId}": { |
820 | 820 | "get": { |
821 | 821 | "x-ms-examples": { |
822 | | - "Get governance rules execution status by specific governance rule ID": { |
| 822 | + "Get governance rules long run operation result by specific governance rule ID": { |
823 | 823 | "$ref": "./examples/GovernanceRules/GetManagementGroupGovernanceRuleExecuteStatus_example.json" |
824 | 824 | } |
825 | 825 | }, |
826 | 826 | "tags": [ |
827 | 827 | "GovernanceRules" |
828 | 828 | ], |
829 | | - "description": "Get a specific governance rule execution status for the requested scope by ruleId and operationId", |
830 | | - "operationId": "ManagementGroupGovernanceRulesExecuteStatus_Get", |
| 829 | + "description": "Get governance rules long run operation result for the requested scope by ruleId and operationId", |
| 830 | + "operationId": "ManagementGroupGovernanceRulesOperationResult_Get", |
831 | 831 | "parameters": [ |
832 | 832 | { |
833 | 833 | "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" |
|
844 | 844 | ], |
845 | 845 | "responses": { |
846 | 846 | "200": { |
847 | | - "description": "OK", |
| 847 | + "description": "OK - The operation completed", |
848 | 848 | "schema": { |
849 | | - "$ref": "#/definitions/ExecuteRuleStatus" |
| 849 | + "$ref": "#/definitions/OperationResult" |
850 | 850 | } |
851 | 851 | }, |
852 | 852 | "202": { |
853 | | - "description": "Accepted", |
| 853 | + "description": "Accepted - The operation still in progress", |
854 | 854 | "headers": { |
855 | 855 | "location": { |
856 | 856 | "type": "string", |
|
866 | 866 | } |
867 | 867 | } |
868 | 868 | } |
869 | | - }, |
870 | | - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Security/governanceRules/{ruleId}/delete/operationResults/{operationId}": { |
871 | | - "get": { |
872 | | - "x-ms-examples": { |
873 | | - "Get governance rules deletion status by specific governance rule ID": { |
874 | | - "$ref": "./examples/GovernanceRules/GetManagementGroupGovernanceRuleDeleteStatus_example.json" |
875 | | - } |
876 | | - }, |
877 | | - "tags": [ |
878 | | - "GovernanceRules" |
879 | | - ], |
880 | | - "description": "Get a specific governance rule deletion status for the requested scope by rule ID and operation ID", |
881 | | - "operationId": "ManagementGroupGovernanceRulesDeleteStatus_Get", |
882 | | - "parameters": [ |
883 | | - { |
884 | | - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" |
885 | | - }, |
886 | | - { |
887 | | - "$ref": "../../../common/v1/types.json#/parameters/ManagementGroupId" |
888 | | - }, |
889 | | - { |
890 | | - "$ref": "#/parameters/RuleId" |
891 | | - }, |
892 | | - { |
893 | | - "$ref": "#/parameters/OperationId" |
894 | | - } |
895 | | - ], |
896 | | - "responses": { |
897 | | - "204": { |
898 | | - "description": "Delete succeeded" |
899 | | - }, |
900 | | - "202": { |
901 | | - "description": "Accepted", |
902 | | - "headers": { |
903 | | - "location": { |
904 | | - "type": "string", |
905 | | - "description": "Location URL for the deletion status" |
906 | | - } |
907 | | - } |
908 | | - }, |
909 | | - "default": { |
910 | | - "description": "Error response describing why the operation failed", |
911 | | - "schema": { |
912 | | - "$ref": "../../../common/v1/types.json#/definitions/CloudError" |
913 | | - } |
914 | | - } |
915 | | - } |
916 | | - } |
917 | 869 | } |
918 | 870 | }, |
919 | 871 | "definitions": { |
|
1205 | 1157 | } |
1206 | 1158 | } |
1207 | 1159 | }, |
1208 | | - "ExecuteRuleStatus": { |
| 1160 | + "OperationResult": { |
1209 | 1161 | "type": "object", |
1210 | | - "description": "Execute status of governance rule over a given scope", |
| 1162 | + "description": "Long run operation status of governance rule over a given scope", |
1211 | 1163 | "properties": { |
1212 | | - "operationId": { |
1213 | | - "description": "Unique key for the execution of governance rule", |
| 1164 | + "status": { |
1214 | 1165 | "type": "string", |
1215 | | - "readOnly": true |
| 1166 | + "description": "The status of the long run operation result of governance rule", |
| 1167 | + "readOnly": true, |
| 1168 | + "enum": [ |
| 1169 | + "Succeeded", |
| 1170 | + "Failed", |
| 1171 | + "Canceled" |
| 1172 | + ], |
| 1173 | + "x-ms-enum": { |
| 1174 | + "name": "OperationResult", |
| 1175 | + "modelAsString": true, |
| 1176 | + "values": [ |
| 1177 | + { |
| 1178 | + "value": "Succeeded", |
| 1179 | + "description": "The operation succeeded" |
| 1180 | + }, |
| 1181 | + { |
| 1182 | + "value": "Failed", |
| 1183 | + "description": "The operation failed" |
| 1184 | + }, |
| 1185 | + { |
| 1186 | + "value": "Canceled", |
| 1187 | + "description": "The operation canceled" |
| 1188 | + } |
| 1189 | + ] |
| 1190 | + } |
1216 | 1191 | } |
1217 | 1192 | } |
1218 | 1193 | } |
|
0 commit comments