Skip to content

Commit b7c24a0

Browse files
oravital7anandanthony
authored andcommitted
[Hub Generated] Publish private branch 'oravital-dev-security-Microsoft.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
1 parent 8dcad72 commit b7c24a0

19 files changed

+925
-77
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-01-preview",
4+
"managementGroupId": "contoso",
5+
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
6+
},
7+
"responses": {
8+
"202": {
9+
"headers": {
10+
"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"
11+
}
12+
},
13+
"204": {}
14+
}
15+
}

specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/DeleteSecurityConnectorGovernanceRule_example.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
},
99
"responses": {
1010
"200": {},
11+
"202": {
12+
"headers": {
13+
"location": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview"
14+
}
15+
},
1116
"204": {}
1217
}
1318
}

specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetGovernanceRule_example.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
1212
"type": "Microsoft.Security/governanceRules",
1313
"properties": {
14+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
1415
"displayName": "Admin's rule",
15-
"description": "A rule on critical recommendations",
16+
"description": "A rule for critical recommendations",
1617
"remediationTimeframe": "7.00:00:00",
1718
"isGracePeriod": true,
1819
"rulePriority": 200,
@@ -37,6 +38,14 @@
3738
"governanceEmailNotification": {
3839
"disableManagerEmailNotification": false,
3940
"disableOwnerEmailNotification": false
41+
},
42+
"excludedScopes": [],
43+
"includeMemberScopes": false,
44+
"metadata": {
45+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
46+
"createdOn": "2022-11-10T08:31:26.7993124Z",
47+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
48+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
4049
}
4150
}
4251
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-01-preview",
4+
"managementGroupId": "contoso",
5+
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
6+
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
7+
},
8+
"responses": {
9+
"202": {
10+
"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"
11+
},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-01-preview",
4+
"managementGroupId": "contoso",
5+
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
6+
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
7+
},
8+
"responses": {
9+
"202": {
10+
"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"
11+
},
12+
"200": {
13+
"body": {
14+
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-01-preview",
4+
"managementGroupId": "contoso",
5+
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
11+
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
12+
"type": "Microsoft.Security/governanceRules",
13+
"properties": {
14+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
15+
"displayName": "Management group rule",
16+
"description": "A rule for a management group",
17+
"remediationTimeframe": "7.00:00:00",
18+
"isGracePeriod": true,
19+
"rulePriority": 200,
20+
"isDisabled": false,
21+
"ruleType": "Integrated",
22+
"sourceResourceType": "Assessments",
23+
"conditionSets": [
24+
{
25+
"conditions": [
26+
{
27+
"property": "$.AssessmentKey",
28+
"value": "[\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\", \"fe83f80b-073d-4ccf-93d9-6797eb870201\"]",
29+
"operator": "In"
30+
}
31+
]
32+
}
33+
],
34+
"ownerSource": {
35+
"type": "Manually",
36+
"value": "[email protected]"
37+
},
38+
"governanceEmailNotification": {
39+
"disableManagerEmailNotification": false,
40+
"disableOwnerEmailNotification": false
41+
},
42+
"excludedScopes": [
43+
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23"
44+
],
45+
"includeMemberScopes": false,
46+
"metadata": {
47+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
48+
"createdOn": "2022-11-10T08:31:26.7993124Z",
49+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
50+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
51+
}
52+
}
53+
}
54+
}
55+
}
56+
}

specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/GetSecurityConnectorGovernanceRule_example.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
1414
"type": "Microsoft.Security/governanceRules",
1515
"properties": {
16+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
1617
"displayName": "GCP Admin's rule",
1718
"description": "A rule on critical GCP recommendations",
1819
"remediationTimeframe": "7.00:00:00",
@@ -39,6 +40,14 @@
3940
"governanceEmailNotification": {
4041
"disableManagerEmailNotification": false,
4142
"disableOwnerEmailNotification": false
43+
},
44+
"excludedScopes": [],
45+
"includeMemberScopes": false,
46+
"metadata": {
47+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
48+
"createdOn": "2022-11-10T08:31:26.7993124Z",
49+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
50+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
4251
}
4352
}
4453
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-01-01-preview",
4+
"managementGroupId": "contoso",
5+
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
13+
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
14+
"type": "Microsoft.Security/governanceRules",
15+
"properties": {
16+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
17+
"displayName": "Management group rule",
18+
"description": "A rule for a management group",
19+
"remediationTimeframe": "7.00:00:00",
20+
"isGracePeriod": true,
21+
"rulePriority": 100,
22+
"isDisabled": false,
23+
"ruleType": "Integrated",
24+
"sourceResourceType": "Assessments",
25+
"conditionSets": [
26+
{
27+
"conditions": [
28+
{
29+
"property": "$.AssessmentKey",
30+
"value": "[\"b1cd27e0-4ecc-4246-939f-49c426d9d72f\", \"fe83f80b-073d-4ccf-93d9-6797eb870201\"]",
31+
"operator": "In"
32+
}
33+
]
34+
}
35+
],
36+
"ownerSource": {
37+
"type": "Manually",
38+
"value": "[email protected]"
39+
},
40+
"governanceEmailNotification": {
41+
"disableManagerEmailNotification": false,
42+
"disableOwnerEmailNotification": false
43+
},
44+
"metadata": {
45+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
46+
"createdOn": "2022-11-10T08:31:26.7993124Z",
47+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
48+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
49+
}
50+
}
51+
},
52+
{
53+
"id": "providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/4106f43c-6d82-4fc8-a92c-dcfe50799d1d",
54+
"name": "4106f43c-6d82-4fc8-a92c-dcfe50799d1d",
55+
"type": "Microsoft.Security/governanceRules",
56+
"properties": {
57+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
58+
"displayName": "Management group rule 2",
59+
"description": "A rule for a management group",
60+
"remediationTimeframe": "7.00:00:00",
61+
"isGracePeriod": true,
62+
"rulePriority": 200,
63+
"isDisabled": false,
64+
"ruleType": "Integrated",
65+
"sourceResourceType": "Assessments",
66+
"conditionSets": [
67+
{
68+
"conditions": [
69+
{
70+
"property": "$.Metadata.Severity",
71+
"value": "Low",
72+
"operator": "Equals"
73+
}
74+
]
75+
}
76+
],
77+
"ownerSource": {
78+
"type": "Manually",
79+
"value": "[email protected]"
80+
},
81+
"governanceEmailNotification": {
82+
"disableManagerEmailNotification": false,
83+
"disableOwnerEmailNotification": false
84+
},
85+
"excludedScopes": [
86+
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23"
87+
],
88+
"includeMemberScopes": false,
89+
"metadata": {
90+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
91+
"createdOn": "2022-11-10T08:31:26.7993124Z",
92+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
93+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
94+
}
95+
}
96+
}
97+
]
98+
}
99+
}
100+
}
101+
}

specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySecurityConnectorGovernanceRules_example.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
1515
"type": "Microsoft.Security/governanceRules",
1616
"properties": {
17+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
1718
"displayName": "Admin's GCP rule",
1819
"description": "A rule on critical GCP recommendations",
1920
"remediationTimeframe": "7.00:00:00",
@@ -40,6 +41,14 @@
4041
"governanceEmailNotification": {
4142
"disableManagerEmailNotification": false,
4243
"disableOwnerEmailNotification": false
44+
},
45+
"excludedScopes": [],
46+
"includeMemberScopes": false,
47+
"metadata": {
48+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
49+
"createdOn": "2022-11-10T08:31:26.7993124Z",
50+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
51+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
4352
}
4453
}
4554
},
@@ -48,6 +57,7 @@
4857
"name": "4106f43c-6d82-4fc8-a92c-dcfe50799d1d",
4958
"type": "Microsoft.Security/governanceRules",
5059
"properties": {
60+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
5161
"displayName": "GCP Admin's rule",
5262
"description": "A rule on critical GCP recommendations",
5363
"remediationTimeframe": "7.00:00:00",
@@ -74,6 +84,14 @@
7484
"governanceEmailNotification": {
7585
"disableManagerEmailNotification": false,
7686
"disableOwnerEmailNotification": false
87+
},
88+
"excludedScopes": [],
89+
"includeMemberScopes": false,
90+
"metadata": {
91+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
92+
"createdOn": "2022-11-10T08:31:26.7993124Z",
93+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
94+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
7795
}
7896
}
7997
}

specification/security/resource-manager/Microsoft.Security/preview/2022-01-01-preview/examples/GovernanceRules/ListBySubscriptionGovernanceRules_example.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"name": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
1313
"type": "Microsoft.Security/governanceRules",
1414
"properties": {
15+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
1516
"displayName": "Admin's rule",
16-
"description": "A rule on critical recommendations",
17+
"description": "A rule for critical recommendations",
1718
"remediationTimeframe": "7.00:00:00",
1819
"isGracePeriod": true,
1920
"rulePriority": 100,
@@ -38,6 +39,14 @@
3839
"governanceEmailNotification": {
3940
"disableManagerEmailNotification": false,
4041
"disableOwnerEmailNotification": false
42+
},
43+
"excludedScopes": [],
44+
"includeMemberScopes": false,
45+
"metadata": {
46+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
47+
"createdOn": "2022-11-10T08:31:26.7993124Z",
48+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
49+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
4150
}
4251
}
4352
},
@@ -46,8 +55,9 @@
4655
"name": "4106f43c-6d82-4fc8-a92c-dcfe50799d1d",
4756
"type": "Microsoft.Security/governanceRules",
4857
"properties": {
58+
"tenantId": "f0b6d37b-e4bc-4719-9291-c066c3194f23",
4959
"displayName": "Admin's rule",
50-
"description": "A rule on critical recommendations",
60+
"description": "A rule for critical recommendations",
5161
"remediationTimeframe": "7.00:00:00",
5262
"isGracePeriod": true,
5363
"rulePriority": 200,
@@ -72,6 +82,14 @@
7282
"governanceEmailNotification": {
7383
"disableManagerEmailNotification": true,
7484
"disableOwnerEmailNotification": true
85+
},
86+
"excludedScopes": [],
87+
"includeMemberScopes": false,
88+
"metadata": {
89+
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
90+
"createdOn": "2022-11-10T08:31:26.7993124Z",
91+
"updatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
92+
"updatedOn": "2022-11-10T08:31:26.7993124Z"
7593
}
7694
}
7795
}

0 commit comments

Comments
 (0)