Scans - Create Or Update
Creates an instance of a scan
PUT {Endpoint}/scan/datasources/{dataSourceName}/scans/{scanName}?api-version=2022-07-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
data
|
path | True |
string |
|
Endpoint
|
path | True |
string |
The scanning endpoint of your purview account. Example: https://{accountName}.purview.azure.com |
scan
|
path | True |
string |
|
api-version
|
query | True |
string |
The api version to use. |
Request Body
The request body can be one of the following:
AdlsGen1CredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Adls |
|
properties |
AdlsGen1MsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Adls |
|
properties |
AdlsGen2CredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Adls |
|
properties |
AdlsGen2MsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Adls |
|
properties |
AmazonAccountCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Amazon |
|
properties |
AmazonPostgreSqlCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Amazon |
|
properties |
AmazonS3CredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
AmazonS3Credential |
|
properties |
AmazonS3RoleARNScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
AmazonS3RoleARN |
|
properties |
AmazonSqlCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Amazon |
|
properties |
AzureCosmosDbCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureDataExplorerCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureDataExplorerMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureFileServiceCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureMySqlCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzurePostgreSqlCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureResourceGroupCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureResourceGroupMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDatabaseCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDatabaseManagedInstanceCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDatabaseManagedInstanceMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDatabaseMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDataWarehouseCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSqlDataWarehouseMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureStorageCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureStorageMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSubscriptionCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSubscriptionMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSynapseCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSynapseMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSynapseWorkspaceCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
AzureSynapseWorkspaceMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Azure |
|
properties |
OracleOracleCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Oracle |
|
properties |
OracleOracleUserPassScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Oracle |
|
properties |
PowerBIDelegatedScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Power |
|
properties |
PowerBIMsiScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Power |
|
properties |
SapEccSapEccCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Sap |
|
properties |
SapEccSapEccUserPassScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Sap |
|
properties |
SapS4HanaSapS4HanaCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
SapS4Hana |
|
properties |
SapS4HanaSapS4HanaUserPassScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
SapS4Hana |
|
properties |
SqlServerDatabaseCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Sql |
|
properties |
TeradataTeradataCredentialScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Teradata |
|
properties |
TeradataTeradataUserPassScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Teradata |
|
properties |
TeradataUserPassScan
Name | Required | Type | Description |
---|---|---|---|
kind | True |
string:
Teradata |
|
properties |
Responses
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Scans_CreateOrUpdate
Sample Request
PUT {Endpoint}/scan/datasources/myDataSource/scans/myScanName?api-version=2022-07-01-preview
{
"kind": "AzureStorageCredential",
"properties": {
"credential": {
"referenceName": "CredentialAKV",
"credentialType": "AccountKey"
},
"connectedVia": null,
"scanRulesetName": "AzureStorage",
"scanRulesetType": "System",
"collection": {
"referenceName": "Collection-rZX"
}
}
}
Sample Response
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
"name": "myScanName",
"id": "datasources/myDataSource/scans/myScanName",
"kind": "AzureStorageCredential",
"properties": {
"credential": {
"referenceName": "CredentialAKV",
"credentialType": "AccountKey"
},
"connectedVia": null,
"scanRulesetName": "AzureStorage",
"scanRulesetType": "System",
"workers": null,
"collection": {
"lastModifiedAt": "2021-09-15T21:20:08.2944382Z",
"referenceName": "Collection-rZX",
"type": "CollectionReference"
}
},
"scanResults": null
}
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
"name": "myScanName",
"id": "datasources/myDataSource/scans/myScanName",
"kind": "AzureStorageCredential",
"properties": {
"credential": {
"referenceName": "CredentialAKV",
"credentialType": "AccountKey"
},
"scanRulesetName": "AzureStorage",
"scanRulesetType": "System",
"workers": null,
"collection": {
"lastModifiedAt": "2021-09-15T21:20:08.2944382Z",
"referenceName": "Collection-rZX",
"type": "CollectionReference"
}
},
"scanResults": null
}
Definitions
AdlsGen1CredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Adls |
|
name |
string |
|
properties | ||
scanResults |
AdlsGen1MsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Adls |
|
name |
string |
|
properties | ||
scanResults |
AdlsGen2CredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Adls |
|
name |
string |
|
properties | ||
scanResults |
AdlsGen2MsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Adls |
|
name |
string |
|
properties | ||
scanResults |
AmazonAccountCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Amazon |
|
name |
string |
|
properties | ||
scanResults |
AmazonPostgreSqlCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Amazon |
|
name |
string |
|
properties | ||
scanResults |
AmazonS3CredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
AmazonS3Credential |
|
name |
string |
|
properties | ||
scanResults |
AmazonS3RoleARNScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
AmazonS3RoleARN |
|
name |
string |
|
properties | ||
scanResults |
AmazonSqlCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Amazon |
|
name |
string |
|
properties | ||
scanResults |
AzureCosmosDbCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureDataExplorerCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureDataExplorerMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureFileServiceCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureMySqlCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzurePostgreSqlCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureResourceGroupCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureResourceGroupMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDatabaseCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDatabaseManagedInstanceCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDatabaseManagedInstanceMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDatabaseMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDataWarehouseCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSqlDataWarehouseMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureStorageCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureStorageMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSubscriptionCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSubscriptionMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSynapseCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSynapseMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSynapseWorkspaceCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
AzureSynapseWorkspaceMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Azure |
|
name |
string |
|
properties | ||
scanResults |
DataSourceType
Name | Type | Description |
---|---|---|
AdlsGen1 |
string |
|
AdlsGen2 |
string |
|
AmazonAccount |
string |
|
AmazonPostgreSql |
string |
|
AmazonS3 |
string |
|
AmazonSql |
string |
|
AzureCosmosDb |
string |
|
AzureDataExplorer |
string |
|
AzureFileService |
string |
|
AzureMySql |
string |
|
AzurePostgreSql |
string |
|
AzureResourceGroup |
string |
|
AzureSqlDataWarehouse |
string |
|
AzureSqlDatabase |
string |
|
AzureSqlDatabaseManagedInstance |
string |
|
AzureStorage |
string |
|
AzureSubscription |
string |
|
AzureSynapse |
string |
|
AzureSynapseWorkspace |
string |
|
None |
string |
|
Oracle |
string |
|
PowerBI |
string |
|
SapEcc |
string |
|
SapS4Hana |
string |
|
SqlServerDatabase |
string |
|
Teradata |
string |
Diagnostics
Name | Type | Description |
---|---|---|
exceptionCountMap |
object |
|
notifications |
Error
Name | Type | Description |
---|---|---|
code |
string |
|
details | ||
message |
string |
|
target |
string |
ErrorModel
Name | Type | Description |
---|---|---|
code |
string |
|
details | ||
message |
string |
|
target |
string |
ErrorResponseModel
Name | Type | Description |
---|---|---|
error |
Notification
Name | Type | Description |
---|---|---|
code |
integer |
|
message |
string |
OracleOracleCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Oracle |
|
name |
string |
|
properties | ||
scanResults |
OracleOracleUserPassScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Oracle |
|
name |
string |
|
properties | ||
scanResults |
PowerBIDelegatedScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Power |
|
name |
string |
|
properties | ||
scanResults |
PowerBIMsiScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Power |
|
name |
string |
|
properties | ||
scanResults |
Properties
Name | Type | Description |
---|---|---|
baseUrl |
string |
|
description |
string |
SapEccSapEccCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Sap |
|
name |
string |
|
properties | ||
scanResults |
SapEccSapEccUserPassScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Sap |
|
name |
string |
|
properties | ||
scanResults |
SapS4HanaSapS4HanaCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
SapS4Hana |
|
name |
string |
|
properties | ||
scanResults |
SapS4HanaSapS4HanaUserPassScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
SapS4Hana |
|
name |
string |
|
properties | ||
scanResults |
ScanLevelType
Name | Type | Description |
---|---|---|
Full |
string |
|
Incremental |
string |
ScanResult
Name | Type | Description |
---|---|---|
assetsClassified |
integer |
|
assetsDiscovered |
integer |
|
dataSourceType | ||
diagnostics | ||
endTime |
string |
|
error | ||
errorMessage |
string |
|
id |
string |
|
parentId |
string |
|
pipelineStartTime |
string |
|
queuedTime |
string |
|
resourceId |
string |
|
runType |
string |
|
scanLevelType | ||
scanRulesetType | ||
scanRulesetVersion |
integer |
|
startTime |
string |
|
status |
string |
ScanRulesetType
Name | Type | Description |
---|---|---|
Custom |
string |
|
System |
string |
SqlServerDatabaseCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Sql |
|
name |
string |
|
properties | ||
scanResults |
TeradataTeradataCredentialScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Teradata |
|
name |
string |
|
properties | ||
scanResults |
TeradataTeradataUserPassScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Teradata |
|
name |
string |
|
properties | ||
scanResults |
TeradataUserPassScan
Name | Type | Description |
---|---|---|
id |
string |
|
kind |
string:
Teradata |
|
name |
string |
|
properties | ||
scanResults |