Database Sql Vulnerability Assessment Scans - List By Sql Vulnerability Assessments
列出資料庫的弱點評估掃描。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/default/scans?api-version=2023-08-01
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
database
|
path | True |
string |
資料庫的名稱。 |
|
resource
|
path | True |
string |
包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。 |
|
server
|
path | True |
string |
伺服器的名稱。 |
|
subscription
|
path | True |
string |
識別 Azure 訂用帳戶的訂用帳戶標識碼。 |
|
vulnerability
|
path | True |
弱點評估的名稱。 |
|
|
api-version
|
query | True |
string |
要用於要求的 API 版本。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
已成功擷取資料庫弱點評估掃描記錄。 |
|
| Other Status Codes |
錯誤回應: ***
|
範例
Gets the list of a database vulnerability assessment scan records
範例要求
範例回覆
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6411/databases/testdb/sqlVulnerabilityAssessments/default/scans/scan001",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans",
"properties": {
"scanId": "scan001",
"triggerType": "Recurring",
"state": "Failed",
"server": "vulnerabilityassessmenttest-6411",
"database": "testdb",
"sqlVersion": "15.0.2000",
"startTime": "2020-06-23T12:19:00.6455136+05:30",
"endTime": "2020-06-23T06:49:00.7236217Z",
"highSeverityFailedRulesCount": 3,
"mediumSeverityFailedRulesCount": 2,
"lowSeverityFailedRulesCount": 1,
"totalPassedRulesCount": 20,
"totalFailedRulesCount": 6,
"totalRulesCount": 26,
"isBaselineApplied": false,
"lastScanTime": "2020-06-23T12:19:00.6455136+05:30"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6411/databases/testdb/sqlVulnerabilityAssessments/default/scans/scan002",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans",
"properties": {
"scanId": "scan002",
"triggerType": "Recurring",
"state": "Failed",
"server": "vulnerabilityassessmenttest-6411",
"database": "testdb",
"sqlVersion": "15.0.2000",
"startTime": "2020-06-23T12:19:00.6455136+05:30",
"endTime": "2020-06-23T06:49:00.7236217Z",
"highSeverityFailedRulesCount": 3,
"mediumSeverityFailedRulesCount": 2,
"lowSeverityFailedRulesCount": 1,
"totalPassedRulesCount": 20,
"totalFailedRulesCount": 6,
"totalRulesCount": 26,
"isBaselineApplied": false,
"lastScanTime": "2020-06-23T12:19:00.6455136+05:30"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6411/databases/testdb/sqlVulnerabilityAssessments/default/scans/scan003",
"name": "scan001",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans",
"properties": {
"scanId": "scan003",
"triggerType": "Recurring",
"state": "Failed",
"server": "vulnerabilityassessmenttest-6411",
"database": "testdb",
"sqlVersion": "15.0.2000",
"startTime": "2020-06-23T12:19:00.6455136+05:30",
"endTime": "2020-06-23T06:49:00.7236217Z",
"highSeverityFailedRulesCount": 3,
"mediumSeverityFailedRulesCount": 2,
"lowSeverityFailedRulesCount": 1,
"totalPassedRulesCount": 20,
"totalFailedRulesCount": 6,
"totalRulesCount": 26,
"isBaselineApplied": false,
"lastScanTime": "2020-06-23T12:19:00.6455136+05:30"
}
}
]
}
定義
| 名稱 | Description |
|---|---|
|
created |
建立資源的身分識別類型。 |
|
Error |
資源管理錯誤其他資訊。 |
|
Error |
錯誤詳細數據。 |
|
Error |
錯誤回應 |
|
Sql |
弱點評估掃描錯誤的屬性。 |
|
Sql |
弱點評估掃描記錄。 |
|
Sql |
弱點評估掃描記錄的清單。 |
|
system |
與建立和上次修改資源相關的元數據。 |
|
Vulnerability |
弱點評估的名稱。 |
|
Vulnerability |
掃描狀態。 |
|
Vulnerability |
掃描觸發程序類型。 |
createdByType
建立資源的身分識別類型。
| 值 | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
| 名稱 | 類型 | Description |
|---|---|---|
| info |
object |
其他資訊。 |
| type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
| 名稱 | 類型 | Description |
|---|---|---|
| additionalInfo |
錯誤其他資訊。 |
|
| code |
string |
錯誤碼。 |
| details |
錯誤詳細數據。 |
|
| message |
string |
錯誤訊息。 |
| target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
| 名稱 | 類型 | Description |
|---|---|---|
| error |
error 物件。 |
SqlVulnerabilityAssessmentScanError
弱點評估掃描錯誤的屬性。
| 名稱 | 類型 | Description |
|---|---|---|
| code |
string |
錯誤碼。 |
| message |
string |
錯誤訊息。 |
SqlVulnerabilityAssessmentScanRecord
弱點評估掃描記錄。
| 名稱 | 類型 | Description |
|---|---|---|
| id |
string |
資源標識碼。 |
| name |
string |
資源名稱。 |
| properties.database |
string |
資料庫名稱。 |
| properties.endTime |
string (date-time) |
掃描結束時間(UTC)。 |
| properties.errors |
掃描錯誤。 |
|
| properties.highSeverityFailedRulesCount |
integer (int32) |
嚴重性較高的失敗規則數目。 |
| properties.isBaselineApplied |
boolean |
為此資料庫建立的基準,並具有一或多個規則。 |
| properties.lastScanTime |
string (date-time) |
上次掃描時間。 |
| properties.lowSeverityFailedRulesCount |
integer (int32) |
具有低嚴重性之失敗規則的數目。 |
| properties.mediumSeverityFailedRulesCount |
integer (int32) |
具有中等嚴重性之失敗規則的數目。 |
| properties.scanId |
string |
掃描標識碼。 |
| properties.server |
string |
伺服器名稱。 |
| properties.sqlVersion |
string |
SQL 版本。 |
| properties.startTime |
string (date-time) |
掃描開始時間 (UTC)。 |
| properties.state |
掃描狀態。 |
|
| properties.totalFailedRulesCount |
integer (int32) |
失敗規則總數。 |
| properties.totalPassedRulesCount |
integer (int32) |
已傳遞規則總數。 |
| properties.totalRulesCount |
integer (int32) |
評估的規則總數。 |
| properties.triggerType |
掃描觸發程序類型。 |
|
| systemData |
SqlVulnerabilityAssessmentScanRecordResource 的 SystemData。 |
|
| type |
string |
資源類型。 |
SqlVulnerabilityAssessmentScanRecordListResult
弱點評估掃描記錄的清單。
| 名稱 | 類型 | Description |
|---|---|---|
| nextLink |
string |
連結以擷取下一頁的結果。 |
| value |
結果的陣列。 |
systemData
與建立和上次修改資源相關的元數據。
| 名稱 | 類型 | Description |
|---|---|---|
| createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
| createdBy |
string |
建立資源的身分識別。 |
| createdByType |
建立資源的身分識別類型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
| lastModifiedBy |
string |
上次修改資源的身分識別。 |
| lastModifiedByType |
上次修改資源的身分識別類型。 |
VulnerabilityAssessmentName
弱點評估的名稱。
| 值 | Description |
|---|---|
| default |
VulnerabilityAssessmentScanState
掃描狀態。
| 值 | Description |
|---|---|
| Passed | |
| Failed | |
| FailedToRun | |
| InProgress |
VulnerabilityAssessmentScanTriggerType
掃描觸發程序類型。
| 值 | Description |
|---|---|
| OnDemand | |
| Recurring |