Skip to content

feat: add Scanner API endpoints#27

Open
derrickobedgiu1 wants to merge 2 commits into
InterWorks:mainfrom
derrickobedgiu1:feat/admin-scanner-api
Open

feat: add Scanner API endpoints#27
derrickobedgiu1 wants to merge 2 commits into
InterWorks:mainfrom
derrickobedgiu1:feat/admin-scanner-api

Conversation

@derrickobedgiu1

Copy link
Copy Markdown

Implements the three Power BI Scanner API endpoints for retrieving workspace metadata including dataset schema and RLS role definitions.

// Requires AdminServicePrincipal connector
$scan    = PowerBI::postWorkspaceInfo([$workspaceId], datasetSchema: true);
$status  = PowerBI::getScanStatus($scan->id);   // poll until $status->isSucceeded()
$result  = PowerBI::getScanResult($scan->id);

Requires the tenant setting "Allow service principals to use read-only admin APIs" to be enabled. datasetSchema / datasetExpressions additionally require "Enhanced metadata scanning".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant