Purview Distribution Service REST API Document (preview:2022-11-01)

2025/12/05 • 3 new methods

DatasourcePreferences_Get (new)
Description Get Datasource Preferences for a given scope.
Reference Link ¶

⚼ Request

GET:  /datasource-preferences
{
scope: string ,
isProjectGondor: boolean ,
api-version: string ,
}

⚐ Response (200)

{
consent:
{
properties:
{
scanner:
{
metadata: boolean ,
classification: boolean ,
}
,
dataUseGovernance: boolean ,
}
,
excludedScopes:
[
string ,
]
,
}
,
accountInfo:
{
id: string ,
name: string ,
location: string ,
tenantId: string ,
gatewayEndpoint: string ,
}
,
frequency: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
PolicyElements_List (new)
Description Get policies for given scope.
Reference Link ¶

⚼ Request

GET:  /policy-elements
{
scope: string ,
api-version: string ,
filter: string ,
}

⚐ Response (200)

{
count: integer ,
syncToken: string ,
elements:
[
{
id: string ,
scopes:
[
string ,
]
,
kind: string ,
updatedAt: string ,
version: integer ,
elementJson: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
PolicyEvents_List (new)
Description Get policy events for given scope.
Reference Link ¶

⚼ Request

GET:  /policy-events
{
scope: string ,
syncToken: string ,
api-version: string ,
}

⚐ Response (200)

{
count: integer ,
syncToken: string ,
elements:
[
{
id: string ,
scopes:
[
string ,
]
,
kind: string ,
updatedAt: string ,
version: integer ,
elementJson: string ,
eventType: string ,
}
,
]
,
}

⚐ Response (304)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}