次の方法で共有


Scan Result - Get Scan Status

インジェストの詳細を含むスキャン実行の状態を取得します。

GET {endpoint}/scan/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}?api-version=2023-09-01

URI パラメーター

名前 / 必須 説明
dataSourceName
path True

string

minLength: 3
maxLength: 63
pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$

dataSource 名。

endpoint
path True

string (url)

purview アカウントのスキャン エンドポイント。 例: https://{accountName}.purview.azure.com。

runId
path True

string

minLength: 36
maxLength: 36
pattern: ^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$

スキャン実行 ID。

scanName
path True

string

minLength: 3
maxLength: 63
pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$

スキャン名。

api-version
query True

string

使用する API バージョン。

応答

名前 説明
200 OK

ScanResultWithIngestion

成功。

Other Status Codes

ErrorResponseModel

スキャン サービスから受信したエラー応答。

ヘッダー

x-ms-error-code: string

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

ScanResult_GetScanStatus

要求のサンプル

GET {endpoint}/scan/datasources/DataSource1/scans/scan1/runs/7bcde71f-4a4e-4e01-9226-c99d15fa0f30?api-version=2023-09-01

応答のサンプル

x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
  "parentId": null,
  "id": "7bcde71f-4a4e-4e01-9226-c99d15fa0f30",
  "ingestionJobId": "7bcde71f-4a4e-4e01-9226-c99d15fa0f30",
  "resourceId": "/subscriptions/4ec8b4ae-b823-43c5-90d9-7ec52a84c0c5/resourceGroups/yongyu_scan_test/providers/Microsoft.Sql/servers/yongyu-sqlservers-0724",
  "status": "Succeeded",
  "diagnostics": {
    "notifications": [],
    "exceptionCountMap": {}
  },
  "startTime": "2023-07-31T01:40:22.6764952Z",
  "endTime": "2023-07-31T01:41:48.6834379Z",
  "scanRulesetVersion": 4,
  "scanRulesetType": "System",
  "scanLevelType": "Incremental",
  "errorMessage": null,
  "error": null,
  "runType": "Manual",
  "dataSourceType": "AzureSqlDatabase",
  "discoveryExecutionDetails": {
    "discoveryStartTime": "2023-07-31T01:41:14Z",
    "discoveryEndTime": "2023-07-31T01:41:14Z",
    "status": "Succeeded",
    "statistics": {
      "assets": {
        "discovered": 3,
        "classified": 0,
        "failed": 0
      }
    },
    "isErrorLogAvailable": false
  },
  "ingestionExecutionDetails": {
    "ingestionStartTime": "2023-07-31T01:41:10.8601338Z",
    "ingestionEndTime": "2023-07-31T01:41:48.6834379Z",
    "status": "Succeeded",
    "statistics": {
      "assets": {
        "succeeded": 2,
        "failed": 0,
        "processing": 0
      },
      "relationships": {
        "succeeded": 0,
        "failed": 0,
        "processing": 0
      }
    },
    "estimatedTimeRemainingInSeconds": 12,
    "isErrorLogAvailable": false
  }
}

定義

名前 説明
DataSourceType

データ ソースの種類。

DiscoveryExecutionDetails

検出の実行の詳細。

ErrorModel

エラー モデル。

ErrorResponseModel

エラー応答モデル。

IngestionExecutionDetails

インジェスト実行の詳細。

IngestionPhaseStatus

インジェストの状態。

Notification

通知モデル。

ScanDiagnostics

スキャン診断。

ScanLevelType

スキャン レベルの種類。

ScanResultWithIngestion

インジェストを含むスキャン結果。

ScanRulesetType

スキャン ルール セットの種類。

ScanRunStatus

スキャン結果の状態。

ScanStatus

検出の状態。

DataSourceType

データ ソースの種類。

説明
AdlsGen1
AdlsGen2
AmazonAccount
AmazonPostgreSql
AmazonRedShift
AmazonS3
AmazonSql
ArcEnabledSqlServer
AzureCosmosDb
AzureDataExplorer
AzureFileService
AzureMySql
AzurePostgreSql
AzureResourceGroup
AzureSqlDataWarehouse
AzureSqlDatabase
AzureSqlDatabaseManagedInstance
AzureStorage
AzureSubscription
AzureSynapse
AzureSynapseWorkspace
Databricks
DatabricksHms
DatabricksUnityCatalog
Dataverse
Fabric
Hdfs
None
Oracle
PostgreSql
PowerBI
SapEcc
SapS4Hana
Snowflake
SqlServerDatabase
TableauServer
Teradata
Trident

DiscoveryExecutionDetails

検出の実行の詳細。

名前 説明
discoveryEndTime

string (date-time)

検出の終了時刻。

discoveryStartTime

string (date-time)

検出の開始時刻。

isErrorLogAvailable

boolean

エラー ログが使用可能かどうかを示します。

statistics

検出の統計情報。

status

ScanStatus

検出の状態。

ErrorModel

エラー モデル。

名前 説明
code

string

特定のエラーを識別する一意のエラー コード。

details

ErrorModel[]

追加のエラーの詳細を提供する入れ子になった ErrorModel オブジェクトの配列。

message

string

エラーの詳細を示す、人間が判読できるエラー メッセージ。

target

string

エラーが関連付けられている特定のコンポーネント。

ErrorResponseModel

エラー応答モデル。

名前 説明
error

ErrorModel

エラー モデル。

IngestionExecutionDetails

インジェスト実行の詳細。

名前 説明
estimatedTimeRemainingInSeconds

integer (int64)

推定残り時間 (秒)。

ingestionEndTime

string (date-time)

インジェストの終了時刻。

ingestionStartTime

string (date-time)

インジェストの開始時刻。

isErrorLogAvailable

boolean

エラー ログが使用可能かどうかを示します。

lastUpdatedAt

string (date-time)

最後に更新された時刻。

statistics

インジェストの統計情報。

status

IngestionPhaseStatus

インジェストの状態。

IngestionPhaseStatus

インジェストの状態。

説明
Canceled
Canceling
Failed
InProgress
None
PartialSucceeded
Queued
SourceUnknown
Succeeded

Notification

通知モデル。

名前 説明
code

integer (int32)

通知コード。

message

string

通知メッセージ。

ScanDiagnostics

スキャン診断。

名前 説明
exceptionCountMap

object

例外カウント マップ。

notifications

Notification[]

通知。

ScanLevelType

スキャン レベルの種類。

説明
Full

スキャンがフル スキャンである

Incremental

スキャンが増分スキャンである

ScanResultWithIngestion

インジェストを含むスキャン結果。

名前 説明
dataSourceType

DataSourceType

データ ソースの種類。

diagnostics

ScanDiagnostics

スキャン診断。

discoveryExecutionDetails

DiscoveryExecutionDetails

検出の実行の詳細。

endTime

string (date-time)

スキャンの終了時刻。

error

ErrorModel

エラー。

errorMessage

string

エラー メッセージ。

id

string

スキャン結果識別子。

ingestionExecutionDetails

IngestionExecutionDetails

インジェスト実行の詳細。

ingestionJobId

string

インジェスト ジョブ識別子。

parentId

string

親スキャン結果識別子。

resourceId

string

リソース識別子。

runType

string

実行の種類。

scanLevelType

ScanLevelType

スキャン レベルの種類。

scanRulesetType

ScanRulesetType

スキャン ルール セットの種類。

scanRulesetVersion

integer (int32)

スキャン ルールセットのバージョン。

startTime

string (date-time)

スキャンの開始時刻。

status

ScanRunStatus

スキャン結果の状態。

ScanRulesetType

スキャン ルール セットの種類。

説明
Custom

スキャン ルールセットの種類がカスタムである

System

スキャン ルールセットの種類がシステムの既定値です

ScanRunStatus

スキャン結果の状態。

説明
Accepted

スキャンが受け入れられる

Canceled

スキャンが取り消された

Failed

スキャンに失敗しました

InProgress

スキャンが InProgress である

Succeeded

スキャンが成功しました

TransientFailure

スキャンが一時的なエラーである

ScanStatus

検出の状態。

説明
Cancelled
CompleteWithWarning
CompletedWithExceptions
Delayed
Failed
Queued
Running
Succeeded
Throttled