Admin - WorkspaceInfo GetScanResult
Gets scan result for the specified scan (should be called only after getting status Succeeded in the scan status API). Scan result will be available for up to 24 hours
Note: The user must have administrator rights (such as Microsoft 365 Global Administrator or Power BI Service Administrator) to call this API or authenticate via service principal.
This API allows a maximum of 500 requests per hour.
Required scope: Tenant.Read.All or Tenant.ReadWrite.All
To set the permissions scope, see Register an app.
GET https://api.powerbi.com/v1.0/myorg/admin/workspaces/scanResult/{scanId}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
scan
|
path | True |
|
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
Example
Sample Request
GET https://api.powerbi.com/v1.0/myorg/admin/workspaces/scanResult/e7d03602-4873-4760-b37e-1563ef5358e3
Sample Response
{
"workspaces": [
{
"id": "d507422c-8d6d-4361-ac7a-30074a8cd0a1",
"name": "V2 shared",
"type": "Workspace",
"state": "Active",
"isOnDedicatedCapacity": false,
"reports": [
{
"id": "c6d072d1-ed20-4b60-8329-16c4b934203b",
"name": "CompositeModelParams-RLS",
"datasetId": "132593c4-bf8d-4548-8f25-1ebb16a1613c",
"createdDateTime": "2020-06-16T08:22:49.14",
"modifiedDateTime": "2020-06-16T08:22:49.14",
"modifiedBy": "john@contoso.com",
"reportType": "PaginatedReport",
"endorsementDetails": {
"endorsement": "Certified",
"certifiedBy": "john@contoso.com"
},
"sensitivityLabel": {
"labelId": "85b38049-4259-43a2-8feb-244e222d96c0"
}
}
],
"dashboards": [
{
"id": "80814ece-9302-49e3-b6bc-bad2f7a86c1a",
"displayName": "CompositeModelParamsDashboard",
"isReadOnly": false,
"tiles": [
{
"id": "e687cc21-5b32-48f5-8c5e-4b844f190579",
"title": "CompositeModelParamsDashboard",
"reportId": "c6d072d1-ed20-4b60-8329-16c4b934203b",
"datasetId": "132593c4-bf8d-4548-8f25-1ebb16a1613c"
}
],
"sensitivityLabel": {
"labelId": "d9b9581a-0594-4c39-81c5-91ddf40baeda"
}
}
],
"datasets": [
{
"id": "e7e8a355-e77b-4418-a7b8-ae5972fdaa03",
"name": "ExportB",
"tables": [],
"relationships": [],
"configuredBy": "john@contoso.com",
"targetStorageMode": "Abf",
"endorsementDetails": {
"endorsement": "Certified",
"certifiedBy": "john@contoso.com"
},
"upstreamDataflows": [
{
"targetDataflowId": "a842dbb1-32ca-46b0-9648-498b2c2d5e38",
"groupId": "b7416115-7421-42c0-b525-1505ce40d2f0"
},
{
"targetDataflowId": "06898194-2eaf-4122-bacc-133db1f8585d",
"groupId": "7263838d-80d7-4b8d-a1f6-50fc27e74a97"
}
],
"datasourceUsages": [
{
"datasourceInstanceId": "c79ad907-df19-43fe-a0f7-d9f365d67070"
}
],
"sensitivityLabel": {
"labelId": "bf3dc57d-d796-41c0-bbe9-a47f5ee3331e"
}
}
],
"dataflows": [
{
"objectId": "a842dbb1-32ca-46b0-9648-498b2c2d5e38",
"name": "Azure SQL",
"description": "Azure SQL dataflow",
"configuredBy": "john@contoso.com",
"modifiedBy": "john@contoso.com",
"modifiedDateTime": "2020-06-16T08:27:47.783Z",
"endorsementDetails": {
"endorsement": "Certified",
"certifiedBy": "john@contoso.com"
},
"datasourceUsages": [
{
"datasourceInstanceId": "c79ad907-df19-43fe-a0f7-d9f365d67070"
}
],
"sensitivityLabel": {
"labelId": "5c9f8c24-2a94-4fd2-a105-9a8b096c5af1"
}
}
]
}
],
"datasourceInstances": [
{
"datasourceType": "Sql",
"connectionDetails": {
"server": "qlserver.database.windows.net",
"database": "dbo.largest_table"
},
"datasourceId": "c79ad907-df19-43fe-a0f7-d9f365d67070",
"gatewayId": "e820592e-f8cf-4a6f-b1ed-566799d29565"
}
]
}
Definitions
Dashboard |
A Power BI dashboard. Below is a list of properties that may be returned for a dashboard. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Dataflow |
The metadata of a dataflow. Below is a list of properties that may be returned for a dataflow. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Dataset |
A Power BI dataset. Below is a list of properties that may be returned for a dataset. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Datasource |
A Power BI datasource |
Datasource |
A Power BI datasource connection details |
Datasource |
Datasource usage |
Dependent |
A Power BI Dependent dataflow |
Encryption |
Encryption information for a dataset |
Encryption |
Dataset encryption status |
Endorsement |
Power BI endorsement details |
Report |
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Sensitivity |
Artifact sensitivity label info |
Tile |
A Power BI tile |
Workspace |
Workspace info details |
Workspace |
Workspace info response |
Dashboard
A Power BI dashboard. Below is a list of properties that may be returned for a dashboard. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
dataClassification |
|
The data classification tag of the dashboard |
displayName |
|
The dashboard display name |
embedUrl |
|
The dashboard embed url |
id |
|
The dashboard id |
isReadOnly |
|
Is ReadOnly dashboard |
sensitivityLabel |
The dashboard sensitivity label |
|
tiles |
|
The tiles that belong to the dashboard. |
Dataflow
The metadata of a dataflow. Below is a list of properties that may be returned for a dataflow. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
configuredBy |
|
The dataflow owner |
datasourceUsages |
Datasource usages |
|
description |
|
The dataflow description |
endorsementDetails |
The dataflow endorsement details |
|
modelUrl |
|
A URL to the dataflow definition file (model.json) |
modifiedBy |
|
The user that modified this dataflow |
modifiedDateTime |
|
modification date time |
name |
|
The dataflow name |
objectId |
|
The dataflow id |
sensitivityLabel |
The dataflow sensitivity label |
|
upstreamDataflows |
Upstream Dataflows |
Dataset
A Power BI dataset. Below is a list of properties that may be returned for a dataset. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
ContentProviderType |
|
The content provider type for the dataset |
CreateReportEmbedURL |
|
The dataset create report embed url |
CreatedDate |
|
DateTime of creation of this dataset |
Encryption |
The dataset encryption information (Only applicable when $expand is specified) |
|
IsEffectiveIdentityRequired |
|
Whether the dataset requires an effective identity. This indicates that you must send an effective identity using the GenerateToken API. |
IsEffectiveIdentityRolesRequired |
|
Whether RLS is defined inside the PBIX file. This indicates that you must specify a role. |
IsOnPremGatewayRequired |
|
Dataset requires an On-premises Data Gateway |
IsRefreshable |
|
Can this dataset be refreshed |
QnaEmbedURL |
|
The dataset qna embed url |
addRowsAPIEnabled |
|
Whether the dataset allows adding new rows |
configuredBy |
|
The dataset owner |
datasourceUsages |
Datasource usages |
|
description |
|
The dataset description |
endorsementDetails |
The dataset endorsement details |
|
id |
|
The dataset id |
name |
|
The dataset name |
sensitivityLabel |
The dataset sensitivity label |
|
upstreamDataflows |
Upstream Dataflows |
|
webUrl |
|
The dataset web url |
Datasource
A Power BI datasource
Name | Type | Description |
---|---|---|
connectionDetails |
The datasource connection details |
|
connectionString |
|
(Deprecated) The datasource connection string. Available only for DirectQuery. |
datasourceId |
|
The bound datasource id. Empty when not bound to a gateway. |
datasourceType |
|
The datasource type |
gatewayId |
|
The bound gateway id. Empty when not bound to a gateway. |
name |
|
(Deprecated) The datasource name. Available only for DirectQuery. |
DatasourceConnectionDetails
A Power BI datasource connection details
Name | Type | Description |
---|---|---|
database |
|
The connection database. |
server |
|
The connection server. |
url |
|
The connection url |
DatasourceUsage
Datasource usage
Name | Type | Description |
---|---|---|
datasourceInstanceId |
|
The datasource instance ID |
DependentDataflow
A Power BI Dependent dataflow
Name | Type | Description |
---|---|---|
groupId |
|
The target group id |
targetDataflowId |
|
The target dataflow id |
Encryption
Encryption information for a dataset
Name | Type | Description |
---|---|---|
EncryptionStatus |
Dataset encryption status |
EncryptionStatus
Dataset encryption status
Name | Type | Description |
---|---|---|
InSyncWithWorkspace |
|
Encryption is supported and is in sync with the encryption settings |
NotInSyncWithWorkspace |
|
Encryption is supported and not in sync with the encryption settings |
NotSupported |
|
Encryption is not supported for this dataset |
Unknown |
|
Unable to determine state due to dataset corruption |
EndorsementDetails
Power BI endorsement details
Name | Type | Description |
---|---|---|
certifiedBy |
|
The user that certified the artifact |
endorsement |
|
The endorsement status |
Report
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
createdBy |
|
The report owner |
createdDateTime |
|
The report created date time. |
datasetId |
|
The dataset id |
description |
|
The report description |
embedUrl |
|
The report embed url |
endorsementDetails |
The report endorsement details |
|
id |
|
The report id |
modifiedBy |
|
The user that modified this report |
modifiedDateTime |
|
The report modified date time. |
name |
|
The report name |
reportType |
enum:
|
The report type |
sensitivityLabel |
The report sensitivity label |
|
webUrl |
|
The report web url |
SensitivityLabel
Artifact sensitivity label info
Name | Type | Description |
---|---|---|
labelId |
|
The sensitivity label ID |
Tile
A Power BI tile
Name | Type | Description |
---|---|---|
colSpan |
|
number of columns a tile should span |
datasetId |
|
The dataset id. Available only for tiles created from a report or using a dataset; for example, Q&A tiles. |
embedData |
|
The tile embed data |
embedUrl |
|
The tile embed url |
id |
|
The tile id |
reportId |
|
The report id. Available only for tiles created from a report. |
rowSpan |
|
number of rows a tile should span |
title |
|
The dashboard display name |
WorkspaceInfo
Workspace info details
Name | Type | Description |
---|---|---|
capacityId |
|
The workspace capacity ID |
dashboards |
The dashboards associated with this workspace. The list of properties returned varies between APIs, thus you may not see them all as part of the API response. |
|
dataRetrievalState |
|
The workspace data retrieval state |
dataflows |
|
The dataflows associated with this workspace. The list of properties returned varies between APIs, thus you may not see them all as part of the API response. |
datasets |
|
The datasets associated with this workspace. The list of properties returned varies between APIs, thus you may not see them all as part of the API response. |
description |
|
The workspace description |
id |
|
The workspace object ID |
isOnDedicatedCapacity |
|
Whether the workspace is on dedicated capacity |
name |
|
The workspace name |
reports |
|
The reports associated with this workspace. The list of properties returned varies between APIs, thus you may not see them all as part of the API response. |
state |
|
The workspace state |
type |
|
The workspace type |
WorkspaceInfoResponse
Workspace info response
Name | Type | Description |
---|---|---|
datasourceInstances |
The datasources' instances associated with this scan |
|
workspaces |
The workspace info associated with this scan |