Database Sql Vulnerability Assessment Scan Result - List By Scan
データベースの脆弱性評価スキャン レコードを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults?api-version=2023-08-01-preview
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
database
|
path | True |
string |
データベースの名前。 |
resource
|
path | True |
string |
リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。 |
scan
|
path | True |
string |
結果を取得する SQL 脆弱性評価スキャンのスキャン ID。 |
server
|
path | True |
string |
サーバーの名前。 |
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
vulnerability
|
path | True |
SQL 脆弱性評価の名前。 |
|
api-version
|
query | True |
string |
要求で使用する API のバージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
SQL 脆弱性評価スキャンの結果が正常に取得されました。 |
|
Other Status Codes |
エラー応答: ***
|
例
List database SQL Vulnerability Assessment scan results for scan id
Sample Request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/testsvr/databases/master/sqlVulnerabilityAssessments/default/scans/scanId1/scanResults?api-version=2023-08-01-preview
Sample Response
{
"value": [
{
"properties": {
"ruleId": "VA1234",
"status": "NonFinding",
"errorMessage": null,
"isTrimmed": false,
"queryResults": [
[
"a1",
"a2",
"a3"
],
[
"b1",
"b2",
"b3"
]
],
"remediation": {
"description": "Remove users",
"scripts": [
"drop user a",
"drop user b"
],
"automated": false,
"portalLink": null
},
"baselineAdjustedResult": null,
"ruleMetadata": {
"ruleId": "VA1234",
"severity": "Informational",
"category": "information",
"ruleType": "NegativeList",
"title": "This is the title",
"description": "This is an example check",
"rationale": "This is important",
"queryCheck": {
"query": "Select a1,a2, a3",
"expectedResult": [],
"columnNames": [
"col1",
"col2",
"col3"
]
},
"benchmarkReferences": [
{
"benchmark": "fedramp",
"reference": "v1"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/testsvr/databases/master/sqlVulnerabilityAssessments/Default/scans/scanId1/scanResults/VA1234",
"name": "VA1234",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans/scanResults"
},
{
"properties": {
"ruleId": "VA2341",
"status": "NonFinding",
"errorMessage": null,
"isTrimmed": false,
"queryResults": [
[
"a1",
"a2",
"a3"
],
[
"b1",
"b2",
"b3"
]
],
"remediation": {
"description": "Remove users",
"scripts": [
"drop user a",
"drop user b"
],
"automated": false,
"portalLink": null
},
"baselineAdjustedResult": null,
"ruleMetadata": {
"ruleId": "VA1234",
"severity": "Informational",
"category": "information",
"ruleType": "NegativeList",
"title": "This is the title",
"description": "This is an example check",
"rationale": "This is important",
"queryCheck": {
"query": "Select a1,a2, a3",
"expectedResult": [],
"columnNames": [
"col1",
"col2",
"col3"
]
},
"benchmarkReferences": [
{
"benchmark": "fedramp",
"reference": "v1"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/testsvr/databases/master/sqlVulnerabilityAssessments/Default/scans/scanId1/scanResults/VA2341",
"name": "VA2341",
"type": "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans/scanResults"
}
]
}
定義
名前 | 説明 |
---|---|
Baseline |
SQL 脆弱性評価のベースラインの詳細 |
Baseline |
SQL 脆弱性評価ベースラインの調整結果 |
Benchmark |
SQL 脆弱性評価ベンチマーク リファレンス |
created |
リソースを作成した ID の種類。 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Query |
SQL 脆弱性評価クエリ チェック オブジェクト。 |
Remediation |
SQL 脆弱性評価の修復の詳細。 |
Rule |
SQL 脆弱性評価ルールの重大度。 |
Rule |
SQL 脆弱性評価のベースラインの状態 |
Rule |
SQL 脆弱性評価ルールの種類。 |
Sql |
SQL 脆弱性評価の名前。 |
SQLVulnerability |
脆弱性評価スキャン結果の一覧。 |
Sql |
|
system |
リソースの作成と最後の変更に関連するメタデータ。 |
Va |
SQL 脆弱性評価ルールのメタデータの詳細。 |
Baseline
SQL 脆弱性評価のベースラインの詳細
名前 | 型 | 説明 |
---|---|---|
expectedResults |
string[] |
SQL 脆弱性評価ベースラインの予想される結果 |
updatedTime |
string |
SQL 脆弱性評価のベースライン更新時刻 (UTC) |
BaselineAdjustedResult
SQL 脆弱性評価ベースラインの調整結果
名前 | 型 | 説明 |
---|---|---|
baseline |
SQL 脆弱性評価のベースラインの詳細 |
|
resultsNotInBaseline |
string[] |
ベースラインにない SQL 脆弱性評価の結果 |
resultsOnlyInBaseline |
string[] |
ベースラインにある SQL 脆弱性評価の結果。 |
status |
SQL 脆弱性評価のベースラインの状態 |
BenchmarkReference
SQL 脆弱性評価ベンチマーク リファレンス
名前 | 型 | 説明 |
---|---|---|
benchmark |
string |
SQL 脆弱性評価ベンチマーク名 |
reference |
string |
SQL 脆弱性評価ベンチマーク リファレンス。 |
createdByType
リソースを作成した ID の種類。
名前 | 型 | 説明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細です。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーのターゲット。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
error |
error オブジェクト。 |
QueryCheck
SQL 脆弱性評価クエリ チェック オブジェクト。
名前 | 型 | 説明 |
---|---|---|
columnNames |
string[] |
クエリの予想される結果の SQL 脆弱性評価列名。 |
expectedResult |
string[] |
SQL 脆弱性評価クエリの予想される結果。 |
query |
string |
SQL 脆弱性評価ルール クエリ。 |
Remediation
SQL 脆弱性評価の修復の詳細。
名前 | 型 | 説明 |
---|---|---|
automated |
boolean |
SQL 脆弱性評価は修復が自動化されています。 |
description |
string |
SQL 脆弱性評価の修復の説明。 |
portalLink |
string |
Azure Portal で修復するための SQL 脆弱性評価の省略可能なリンク。 |
scripts |
string[] |
SQL 脆弱性評価の修復スクリプト。 |
RuleSeverity
SQL 脆弱性評価ルールの重大度。
名前 | 型 | 説明 |
---|---|---|
High |
string |
|
Informational |
string |
|
Low |
string |
|
Medium |
string |
|
Obsolete |
string |
RuleStatus
SQL 脆弱性評価のベースラインの状態
名前 | 型 | 説明 |
---|---|---|
Finding |
string |
|
InternalError |
string |
|
NonFinding |
string |
RuleType
SQL 脆弱性評価ルールの種類。
名前 | 型 | 説明 |
---|---|---|
BaselineExpected |
string |
|
Binary |
string |
|
NegativeList |
string |
|
PositiveList |
string |
SqlVulnerabilityAssessmentName
SQL 脆弱性評価の名前。
名前 | 型 | 説明 |
---|---|---|
default |
string |
SQLVulnerabilityAssessmentScanListResult
脆弱性評価スキャン結果の一覧。
名前 | 型 | 説明 |
---|---|---|
nextLink |
string |
結果の次のページを取得するためのリンク。 |
value |
結果の配列。 |
SqlVulnerabilityAssessmentScanResults
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソースの ID |
name |
string |
リソース名。 |
properties.baselineAdjustedResult |
ベースラインで調整された SQL 脆弱性評価ルールの結果。 |
|
properties.errorMessage |
string |
SQL 脆弱性評価のエラー メッセージ。 |
properties.isTrimmed |
boolean |
SQL 脆弱性評価は、トリミングされたクエリ結果です。 |
properties.queryResults |
string[] |
実行された SQL 脆弱性評価クエリ結果。 |
properties.remediation |
SQL 脆弱性評価 修復の詳細。 |
|
properties.ruleId |
string |
SQL 脆弱性評価ルール ID。 |
properties.ruleMetadata |
SQL 脆弱性評価ルールのメタデータ。 |
|
properties.status |
SQL 脆弱性評価ルールの結果の状態。 |
|
systemData |
AdvancedThreatProtectionResource の SystemData。 |
|
type |
string |
リソースの種類。 |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |
VaRule
SQL 脆弱性評価ルールのメタデータの詳細。
名前 | 型 | 説明 |
---|---|---|
benchmarkReferences |
SQL 脆弱性評価ベンチマークのリファレンス。 |
|
category |
string |
SQL 脆弱性評価ルール カテゴリ。 |
description |
string |
SQL 脆弱性評価ルールの説明。 |
queryCheck |
SQL 脆弱性評価ルールのクエリの詳細。 |
|
rationale |
string |
SQL 脆弱性評価ルールの根拠。 |
ruleId |
string |
SQL 脆弱性評価ルール ID。 |
ruleType |
SQL 脆弱性評価ルールの種類。 |
|
severity |
SQL 脆弱性評価ルールの重大度。 |
|
title |
string |
SQL 脆弱性評価ルールのタイトル。 |