Before you start
- An Owner has activated the Organization and set up the Environment in the app. Both happen once.
- Your tool calls the API with a workload identity that has
GV.APIContributor; see API authentication. Browse Endpoints in the sidebar for every operation’s schema. - Your tool makes Fabric API calls with an identity that has Admin or Member on the source and target workspaces. A service principal also needs your Fabric administrator to enable Service principals can call Fabric public APIs.
Create Tables, a Table Pair, and Tests
Save a reference to each existing Lakehouse or Warehouse Table withPOST /api/v1/fabric/tables, using the workspace, Lakehouse or Warehouse, and
Table path that Fabric’s API lists. Then create the Table Pair with
POST /api/v1/fabric/pairs and add Tests with POST /api/v1/fabric/tests.
GET /api/v1/fabric/catalog returns the fixed catalog of
the 12 validation functions.
Each create operation requires an id you choose (a new UUID). If a call times
out, send the same request again: the API returns what was saved and creates
nothing more, so scripts can rerun safely.
To share Tests across many Table Pairs, create a
test set with POST /api/v1/fabric/test-sets
containing its name, join keys, and Tests, then pass its ID as test_set_id
when creating each Table Pair. POST /api/v1/fabric/pairs/<pair-id>/test-set
saves an existing pair’s Tests as a new test set, and
POST /api/v1/fabric/pairs/<pair-id>/independent gives a pair its own copy of
its set’s Tests, matching Save as test set and Make independent in the
app.
POST /api/v1/fabric/tables.
Deleting a Table Pair archives it while keeping its Run history and Results. A
test set cannot be deleted while any Table Pair uses it.
Give the workspace identity read access
Your Environment’s workspace identity needs read access to each source and target Table outside the dedicated workspace before a Table Pair’s first Run. Ask the API what the pair needs:workspaces list means the pair needs no extra grants. Otherwise, in
Fabric, using an identity with Admin or Member on each listed workspace:
- Add the identity as Viewer on the workspace with
POST https://api.fabric.microsoft.com/v1/workspaces/<workspace-id>/roleAssignmentsand the body{"principal": {"id": "<identity_id>", "type": "ServicePrincipal"}, "role": "Viewer"}. A409response means the identity already has a role there; keep it. - For each Lakehouse, grant the identity Read on the listed paths through a
OneLake data access role. The app keeps them in the role named
data_access_role, so add the paths there to keep grants consolidated. Fabric’sPUT .../items/<lakehouse-id>/dataAccessRolesreplaces every role in the Lakehouse, so read the existing roles first and send the others back unchanged with theETagyou read.
SOURCE_WORKSPACE_IDS in the installer
notebook). Until access is in place, the pair’s Runs end with Could not read
a Table.