forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Publish private branch 'oravital-dev-security-Microso…
…ft.Security-2022-01-01-preview' (Azure#21751) * Update governance API docs (At scale) * Fix model validation * Fix lint * Plain english style * Minor * Update content * Renaming * Comments * Edit descriptions' * Adding deletion operation result * Prettier * Remove LRO
- Loading branch information
1 parent
8dcad72
commit b7c24a0
Showing
19 changed files
with
925 additions
and
77 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...2-01-01-preview/examples/GovernanceRules/DeleteManagementGroupGovernanceRule_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...review/examples/GovernanceRules/GetManagementGroupGovernanceRuleDeleteStatus_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd" | ||
}, | ||
"responses": { | ||
"202": { | ||
"location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/delete/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview" | ||
}, | ||
"204": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...eview/examples/GovernanceRules/GetManagementGroupGovernanceRuleExecuteStatus_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd" | ||
}, | ||
"responses": { | ||
"202": { | ||
"location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/execute/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview" | ||
}, | ||
"200": { | ||
"body": { | ||
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd" | ||
} | ||
} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...2022-01-01-preview/examples/GovernanceRules/GetManagementGroupGovernanceRule_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"type": "Microsoft.Security/governanceRules", | ||
"properties": { | ||
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23", | ||
"displayName": "Management group rule", | ||
"description": "A rule for a management group", | ||
"remediationTimeframe": "7.00:00:00", | ||
"isGracePeriod": true, | ||
"rulePriority": 200, | ||
"isDisabled": false, | ||
"ruleType": "Integrated", | ||
"sourceResourceType": "Assessments", | ||
"conditionSets": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"property": "$.AssessmentKey", | ||
"value": "[\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\", \"fe83f80b-073d-4ccf-93d9-6797eb870201\"]", | ||
"operator": "In" | ||
} | ||
] | ||
} | ||
], | ||
"ownerSource": { | ||
"type": "Manually", | ||
"value": "user@contoso.com" | ||
}, | ||
"governanceEmailNotification": { | ||
"disableManagerEmailNotification": false, | ||
"disableOwnerEmailNotification": false | ||
}, | ||
"excludedScopes": [ | ||
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
], | ||
"includeMemberScopes": false, | ||
"metadata": { | ||
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"createdOn": "2022-11-10T08:31:26.7993124Z", | ||
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"updatedOn": "2022-11-10T08:31:26.7993124Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
...-01-01-preview/examples/GovernanceRules/ListByManagementGroupGovernanceRules_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"type": "Microsoft.Security/governanceRules", | ||
"properties": { | ||
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23", | ||
"displayName": "Management group rule", | ||
"description": "A rule for a management group", | ||
"remediationTimeframe": "7.00:00:00", | ||
"isGracePeriod": true, | ||
"rulePriority": 100, | ||
"isDisabled": false, | ||
"ruleType": "Integrated", | ||
"sourceResourceType": "Assessments", | ||
"conditionSets": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"property": "$.AssessmentKey", | ||
"value": "[\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\", \"fe83f80b-073d-4ccf-93d9-6797eb870201\"]", | ||
"operator": "In" | ||
} | ||
] | ||
} | ||
], | ||
"ownerSource": { | ||
"type": "Manually", | ||
"value": "user@contoso.com" | ||
}, | ||
"governanceEmailNotification": { | ||
"disableManagerEmailNotification": false, | ||
"disableOwnerEmailNotification": false | ||
}, | ||
"metadata": { | ||
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"createdOn": "2022-11-10T08:31:26.7993124Z", | ||
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"updatedOn": "2022-11-10T08:31:26.7993124Z" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/4106f43c-6d82-4fc8-a92c-dcfe50799d1d", | ||
"name": "4106f43c-6d82-4fc8-a92c-dcfe50799d1d", | ||
"type": "Microsoft.Security/governanceRules", | ||
"properties": { | ||
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23", | ||
"displayName": "Management group rule 2", | ||
"description": "A rule for a management group", | ||
"remediationTimeframe": "7.00:00:00", | ||
"isGracePeriod": true, | ||
"rulePriority": 200, | ||
"isDisabled": false, | ||
"ruleType": "Integrated", | ||
"sourceResourceType": "Assessments", | ||
"conditionSets": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"property": "$.Metadata.Severity", | ||
"value": "Low", | ||
"operator": "Equals" | ||
} | ||
] | ||
} | ||
], | ||
"ownerSource": { | ||
"type": "Manually", | ||
"value": "user@contoso.com" | ||
}, | ||
"governanceEmailNotification": { | ||
"disableManagerEmailNotification": false, | ||
"disableOwnerEmailNotification": false | ||
}, | ||
"excludedScopes": [ | ||
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23" | ||
], | ||
"includeMemberScopes": false, | ||
"metadata": { | ||
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"createdOn": "2022-11-10T08:31:26.7993124Z", | ||
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936", | ||
"updatedOn": "2022-11-10T08:31:26.7993124Z" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...022-01-01-preview/examples/GovernanceRules/PostManagementGroupGovernanceRule_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-01-01-preview", | ||
"managementGroupId": "contoso", | ||
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8", | ||
"ExecuteGovernanceRuleBody": { | ||
"override": false | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.