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

New for swagger update #3125

Merged
merged 19 commits into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9830af8
Adding Vulnerability Assessment APIs on managed instance
yaakoviyun May 15, 2018
4cbeeeb
fixed scan operation id
yaakoviyun May 20, 2018
4e6e533
character mismatch fix
yaakoviyun May 20, 2018
c9142fe
Added needed changes to Swagger and exampels
yaakoviyun May 21, 2018
38b920f
Delete managedDatabaseVulnerabilityAssessmentBaselines.json
yaakoviyun May 23, 2018
e3caf47
Delete managedDatabaseVulnerabilityAssessmentScans.json
yaakoviyun May 23, 2018
c86bab2
Delete managedDatabaseVulnerabilityAssessments.json
yaakoviyun May 23, 2018
caaac4a
Delete ManagedDatabaseVulnerabilityAssessmentCreateMax.json
yaakoviyun May 23, 2018
1ebe82b
Delete ManagedDatabaseVulnerabilityAssessmentCreateMin.json
yaakoviyun May 23, 2018
ccce3c2
Delete ManagedDatabaseVulnerabilityAssessmentDelete.json
yaakoviyun May 23, 2018
f1e6320
Delete ManagedDatabaseVulnerabilityAssessmentGet.json
yaakoviyun May 23, 2018
ffc7251
Delete ManagedDatabaseVulnerabilityAssessmentRuleBaselineCreate.json
yaakoviyun May 23, 2018
5f85874
Delete ManagedDatabaseVulnerabilityAssessmentRuleBaselineDelete.json
yaakoviyun May 23, 2018
fdbca71
Delete ManagedDatabaseVulnerabilityAssessmentRuleBaselineGet.json
yaakoviyun May 23, 2018
478f3d6
Delete ManagedDatabaseVulnerabilityAssessmentScanExport.json
yaakoviyun May 23, 2018
1798f9d
Delete ManagedDatabaseVulnerabilityAssessmentScanRecordsGet.json
yaakoviyun May 23, 2018
016729b
Delete ManagedDatabaseVulnerabilityAssessmentScanRecordsListByDatabas…
yaakoviyun May 23, 2018
501d0f9
Delete ManagedDatabaseVulnerabilityAssessmentScansExecute.json
yaakoviyun May 23, 2018
839446d
Update readme.md
yaakoviyun May 23, 2018
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
Expand Up @@ -143,11 +143,11 @@
}
},
"x-ms-examples": {
"Create a database's vulnerability assessment with minimal parameters": {
"$ref": "./examples/DatabaseVulnerabilityAssessmentCreateMin.json"
},
"Create a database's vulnerability assessment with all parameters": {
"$ref": "./examples/DatabaseVulnerabilityAssessmentCreateMax.json"
},
"Create a database's vulnerability assessment with minimal parameters": {
"$ref": "./examples/DatabaseVulnerabilityAssessmentCreateMin.json"
}
}
},
Expand Down Expand Up @@ -211,6 +211,10 @@
"definitions": {
"DatabaseVulnerabilityAssessmentProperties": {
"description": "Properties of a database Vulnerability Assessment.",
"required": [
"storageContainerPath",
"storageContainerSasKey"
],
"type": "object",
"properties": {
"storageContainerPath": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"DatabaseVulnerabilityAssessmentScans"
],
"description": "Executes a Vulnerability Assessment database scan.",
"operationId": "DatabaseVulnerabilityAssessmentScans_Execute",
"operationId": "DatabaseVulnerabilityAssessmentScans_InitiateScan",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupParameter"
Expand Down Expand Up @@ -522,7 +522,7 @@
}
},
"DatabaseVulnerabilityAssessmentScanExportProperties": {
"description": "Properties of the export operations result.",
"description": "Properties of the export operation's result.",
"type": "object",
"properties": {
"exportedReportLocation": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4799",
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4799",
"serverName": "vulnerabilityassessmenttest-6440",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"vaScanId": "scan001",
"api-version": "2017-10-01-preview",
"parameters": { }
"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/servers/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"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/servers/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/servers/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/servers/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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"serverName": "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/servers/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"id": "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
}
}
"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/servers/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
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"id": "scan001",
"scanId": "scan001",
"triggerType": "OnDemand",
"state": "Passed",
"startTime": "2017-12-12T17:45:06Z",
Expand All @@ -31,7 +31,7 @@
"name": "scan002",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"id": "scan002",
"scanId": "scan002",
"triggerType": "Recurring",
"state": "Failed",
"startTime": "2017-12-12T17:45:06Z",
Expand All @@ -46,13 +46,16 @@
"name": "scan003",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"id": "scan003",
"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" }
{
"code": "StorageNotFound",
"message": "Storage not found"
}
],
"storageContainerPath": "https://myaccount.blob.core.windows.net/vulnerability-assessment",
"numberOfFailedSecurityChecks": 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"serverName": "vulnerabilityassessmenttest-6411",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"scanId": "scan01",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6440/databases/testdb/vulnerabilityAssessments/default/scans/scan001",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans",
"properties": {
"id": "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
}
}
},
"202": {}
}
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "vulnerabilityassessmenttest-4711",
"managedInstanceName": "vulnerabilityassessmenttest-6411",
"databaseName": "testdb",
"vulnerabilityAssessmentName": "default",
"scanId": "scan01",
"api-version": "2017-10-01-preview"
},
"responses": {
"200": {},
"202": {}
}
}