-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding VA support for manged instance (#3353)
- Loading branch information
1 parent
e63f725
commit ac7c909
Showing
14 changed files
with
1,751 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
.../preview/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentCreateMax.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,53 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"storageContainerSasKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
"recurringScans": { | ||
"isEnabled": true, | ||
"emailSubscriptionAdmins": true, | ||
"emails": [ "email1@mail.com", "email2@mail.com" ] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments", | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"recurringScans": { | ||
"isEnabled": true, | ||
"emailSubscriptionAdmins": true, | ||
"emails": [ "email1@mail.com", "email2@mail.com" ] | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments", | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"recurringScans": { | ||
"isEnabled": true, | ||
"emailSubscriptionAdmins": true, | ||
"emails": [ "email1@mail.com", "email2@mail.com" ] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
.../preview/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentCreateMin.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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"storageContainerSasKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments", | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"recurringScans": { | ||
"isEnabled": false, | ||
"emailSubscriptionAdmins": false, | ||
"emails": [] | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments", | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"recurringScans": { | ||
"isEnabled": false, | ||
"emailSubscriptionAdmins": false, | ||
"emails": [] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...Sql/preview/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentDelete.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": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ft.Sql/preview/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentGet.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments", | ||
"properties": { | ||
"storageContainerPath": "https://myStorage.blob.core.windows.net/vulnerability-assessment/", | ||
"recurringScans": { | ||
"isEnabled": true, | ||
"emailSubscriptionAdmins": true, | ||
"emails": [ "email1@mail.com", "email2@mail.com" ] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCreate.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,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"ruleId": "VA1001", | ||
"baselineName": "default", | ||
"api-version": "2017-10-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"baselineResults": [ | ||
{ | ||
"result": [ "userA", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userB", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userC", "SELECT", "tableId_4" ] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines", | ||
"properties": { | ||
"baselineResults": [ | ||
{ | ||
"result": [ "userA", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userB", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userC", "SELECT", "tableId_4" ] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentRuleBaselineDelete.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,16 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6440", | ||
"databaseName": "testdb", | ||
"baselineName": "default", | ||
"ruleId": "VA1001", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ew/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentRuleBaselineGet.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,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityaseessmenttest-4711", | ||
"managedInstanceName": "vulnerabilityaseessmenttest-6411", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"ruleId": "VA1001", | ||
"baselineName": "master", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default", | ||
"name": "default", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines", | ||
"properties": { | ||
"baselineResults": [ | ||
{ | ||
"result": [ "userA", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userB", "SELECT" ] | ||
}, | ||
{ | ||
"result": [ "userC", "SELECT", "tableId_4" ] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...preview/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentScanExport.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,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityassessmenttest-4799", | ||
"managedInstanceName": "vulnerabilityassessmenttest-6440", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"scanId": "scan001", | ||
"api-version": "2017-10-01-preview", | ||
"parameters": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export", | ||
"name": "scan001", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export", | ||
"properties": { | ||
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001/export", | ||
"name": "scan001", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans/export", | ||
"properties": { | ||
"exportedReportLocation": "https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...iew/2017-10-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentScanRecordsGet.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,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityassessmenttest-4711", | ||
"managedInstanceName": "vulnerabilityassessmenttest-6411", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"scanId": "scan001", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001", | ||
"name": "scan001", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans", | ||
"properties": { | ||
"scanId": "scan001", | ||
"triggerType": "OnDemand", | ||
"state": "Passed", | ||
"startTime": "2017-12-12T17:45:06Z", | ||
"endTime": "2017-12-12T17:47:06Z", | ||
"errors": [], | ||
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment", | ||
"numberOfFailedSecurityChecks": 9 | ||
} | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentScanRecordsListByDatabase.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,68 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "vulnerabilityassessmenttest-4711", | ||
"managedInstanceName": "vulnerabilityassessmenttest-6411", | ||
"databaseName": "testdb", | ||
"vulnerabilityAssessmentName": "default", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001", | ||
"name": "scan001", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans", | ||
"properties": { | ||
"scanId": "scan001", | ||
"triggerType": "OnDemand", | ||
"state": "Passed", | ||
"startTime": "2017-12-12T17:45:06Z", | ||
"endTime": "2017-12-12T17:47:06Z", | ||
"errors": [ ], | ||
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment", | ||
"numberOfFailedSecurityChecks": 9 | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan002", | ||
"name": "scan002", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans", | ||
"properties": { | ||
"scanId": "scan002", | ||
"triggerType": "Recurring", | ||
"state": "Failed", | ||
"startTime": "2017-12-12T17:45:06Z", | ||
"endTime": "2017-12-12T17:47:06Z", | ||
"errors": [ ], | ||
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment", | ||
"numberOfFailedSecurityChecks": 9 | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/managedInstances/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan003", | ||
"name": "scan003", | ||
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans", | ||
"properties": { | ||
"scanId": "scan003", | ||
"triggerType": "Recurring", | ||
"state": "FailedToRun", | ||
"startTime": "2017-12-12T17:45:06Z", | ||
"endTime": "2017-12-12T17:47:06Z", | ||
"errors": [ | ||
{ | ||
"code": "StorageNotFound", | ||
"message": "Storage not found" | ||
} | ||
], | ||
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment", | ||
"numberOfFailedSecurityChecks": 0 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.