Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new SecureScore API to Microsoft.Security #8235

Merged
merged 57 commits into from
May 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
a62cebd
Set theme jekyll-theme-midnight
giromm2ms Jan 22, 2020
4219c6c
Adding new APIs for secure score
Jan 22, 2020
36b88df
Updated files
Jan 22, 2020
44f52be
updated md file
Jan 22, 2020
6c6d5f0
Working on 1 path at a time
Jan 23, 2020
65d19cd
Fix type to ref
Jan 23, 2020
c48a8d2
more fixes
Jan 23, 2020
f62744d
removed ref type
Jan 23, 2020
3fbff1b
AutoRest fixes
Jan 23, 2020
6b854c8
more fixes
Jan 23, 2020
a8792c9
Internal PR
Jan 23, 2020
14c1c40
fixed some static validation issues
Jan 27, 2020
0972d99
Fixed some more auto-rest issues
Jan 28, 2020
eed33c9
Fixed example + organizing readonly attribute
Jan 28, 2020
be2f798
Run prettier on files
Jan 28, 2020
a92a2d7
Changed initiativeId to policySetDefinitionId in the sample files
Jan 28, 2020
246ce75
Changed assessmentsMetadata to assessmentsDefinition
Jan 28, 2020
0e8e4e6
Added scope in defintions example and adjust enum value of BuiltIn
Jan 28, 2020
3abf5ea
Added missing fields and align examples
Jan 28, 2020
ad5edf2
Renamed fields in example files
Jan 28, 2020
3a5ad17
Changed return value
Jan 28, 2020
e04d4b7
Added control definitions per subscription scope
Jan 28, 2020
8121bcf
Added definition property (optional, in case of $expand)
Jan 29, 2020
ff35496
prettier updated files
Jan 29, 2020
26973e6
prettier again ...
Jan 29, 2020
67c5eb4
PR comments
Feb 4, 2020
b71bd8d
Renamed enum
Feb 4, 2020
4ab07c5
Fixed some errors
Feb 4, 2020
26887fe
Remove "secureScoreName" parameter from example
Feb 5, 2020
d8d8d78
Changed operationId from GetSecureScores_Single to SecureScores_Get
Feb 6, 2020
7be3fda
prettifying the code
Feb 9, 2020
f8303fb
Updated based on PR comments
Feb 10, 2020
0ce2788
Fix casing issues in example files name
Feb 10, 2020
5e692ee
Fixing sample files and remove some enum options
Feb 11, 2020
6d4d1ef
Updated readme.md file
Feb 11, 2020
1a70c2e
Remove trailing whitespace
Feb 11, 2020
b413a13
Merge branch 'master' into master
giromm2ms Feb 11, 2020
fc5ade9
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
3c87e72
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
8c805ec
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
2ea3c6a
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
1e10a9e
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
e3c096b
Update specification/security/resource-manager/Microsoft.Security/pre…
giromm2ms Mar 5, 2020
6e8c8e9
Fixed PR comments
Mar 5, 2020
47640da
Fix definitions renaming
Mar 5, 2020
78e71af
Fix examples
Mar 5, 2020
5875bd2
Trying to fix model validation
Mar 5, 2020
ef6cf06
Changed example type
Mar 5, 2020
10ecffd
Updating from master (Resolving conflicts)
Mar 16, 2020
9728a9d
Merge branch 'master' into master
giromm2ms Mar 16, 2020
d44d228
Converting all EOL to CRLF + remove trailing blanks
Mar 16, 2020
d5337ca
Removed Scope paths, updated examples
Apr 22, 2020
fa31203
Merge branch 'master' into master
giromm2ms Apr 22, 2020
ee6375e
Replaced scope with sub id in example
Apr 22, 2020
202a27c
updated secureScoresControls id in examples
Apr 22, 2020
84db6e2
example files ids and type fixes
May 6, 2020
4065a3a
Merge branch 'master' into master
giromm2ms May 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2020-01-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
"name": "a9909064-42b4-4d34-8143-275477afe18b",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Protect applications against DDoS attacks",
"description": "This control contains recommendations regarding DDoS attack prevention",
"maxScore": 2,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
}
]
}
},
{
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
"name": "a000c66f-6da2-4f9d-826d-2364347d2588",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Apply adaptive application control",
"description": "This control contains recommendations regarding enable of adaptive application control",
"maxScore": 3,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"parameters": {
"api-version": "2020-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
"name": "a9909064-42b4-4d34-8143-275477afe18b",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Protect applications against DDoS attacks",
"description": "This control contains recommendations regarding DDoS attack prevention",
"maxScore": 2,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
}
]
}
},
{
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Enable MFA",
"description": "This control contains recommendations regarding MFA",
"maxScore": 10,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/151e82c5-5341-a74b-1eb0-bc38d2c84bb5"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/57e98606-6b1e-6193-0e3d-fe621387c16b"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/94290b00-4d0c-d7b4-7cea-064a9554e681"
}
]
}
},
{
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
"name": "a000c66f-6da2-4f9d-826d-2364347d2588",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Apply adaptive application control",
"description": "This control contains recommendations regarding enable of adaptive application control",
"maxScore": 3,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2020-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"secureScoreName": "ascScore"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/secureScores/ascScore",
"name": "ascScore",
"type": "Microsoft.Security/secureScores",
"properties": {
"displayName": "Asc Score",
"score": {
"max": 13,
"current": 3
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"parameters": {
"api-version": "2020-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"secureScoreName": "ascScore",
"$expand": "definition"
},
"responses": {
"200": {
"parameters": {
"secureScoreName": "ascScore"
},
"body": {
"value": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a9909064-42b4-4d34-8143-275477afe18b",
"name": "a9909064-42b4-4d34-8143-275477afe18b",
"type": "Microsoft.Security/secureScoreControls",
"properties": {
"displayName": "Protect applications against DDoS attacks",
"healthyResourceCount": 0,
"unhealthyResourceCount": 0,
"notApplicableResourceCount": 10,
"score": {
"max": 0,
"current": 0
},
"definition": {
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
"name": "a9909064-42b4-4d34-8143-275477afe18b",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Protect applications against DDoS attacks",
"description": "This control contains recommendations regarding DDoS attack prevention",
"maxScore": 2,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
}
]
}
}
}
},
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"type": "Microsoft.Security/SecureScoreControls",
"properties": {
"displayName": "Enable MFA",
"healthyResourceCount": 0,
"unhealthyResourceCount": 1,
"notApplicableResourceCount": 0,
"score": {
"max": 10,
"current": 0
},
"definition": {
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Enable MFA",
"description": "This control contains recommendations regarding MFA",
"maxScore": 10,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/151e82c5-5341-a74b-1eb0-bc38d2c84bb5"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/57e98606-6b1e-6193-0e3d-fe621387c16b"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/94290b00-4d0c-d7b4-7cea-064a9554e681"
}
]
}
}
}
},
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a000c66f-6da2-4f9d-826d-2364347d2588",
"name": "a000c66f-6da2-4f9d-826d-2364347d2588",
"type": "Microsoft.Security/SecureScoreControls",
"properties": {
"displayName": "Apply adaptive application control",
"healthyResourceCount": 20,
"unhealthyResourceCount": 0,
"notApplicableResourceCount": 10,
"score": {
"max": 3,
"current": 3
},
"definition": {
"id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
"name": "a000c66f-6da2-4f9d-826d-2364347d2588",
"type": "Microsoft.Security/SecureScoreControlDefinitions",
"properties": {
"source": {
"sourceType": "BuiltIn"
},
"displayName": "Apply adaptive application control",
"description": "This control contains recommendations regarding enable of adaptive application control",
"maxScore": 3,
"assessmentDefinitions": [
{
"id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
},
{
"id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
}
]
}
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"api-version": "2020-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"secureScoreName": "ascScore"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a9909064-42b4-4d34-8143-275477afe18b",
"name": "a9909064-42b4-4d34-8143-275477afe18b",
"type": "Microsoft.Security/SecureScoreControls",
"properties": {
"displayName": "Protect applications against DDoS attacks",
"healthyResourceCount": 0,
"unhealthyResourceCount": 0,
"notApplicableResourceCount": 10,
"score": {
"max": 0,
"current": 0
}
}
},
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
"type": "Microsoft.Security/SecureScoreControls",
"properties": {
"displayName": "Enable MFA",
"healthyResourceCount": 0,
"unhealthyResourceCount": 1,
"notApplicableResourceCount": 0,
"score": {
"max": 10,
"current": 0
}
}
},
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a000c66f-6da2-4f9d-826d-2364347d2588",
"name": "a000c66f-6da2-4f9d-826d-2364347d2588",
"type": "Microsoft.Security/SecureScoreControls",
"properties": {
"displayName": "Apply adaptive application control",
"healthyResourceCount": 20,
"unhealthyResourceCount": 0,
"notApplicableResourceCount": 10,
"score": {
"max": 3,
"current": 3
}
}
}
]
}
}
}
}
Loading