Skip to main content

purview_policies

Creates, updates, deletes, gets or lists a purview_policies resource.

Overview

Namepurview_policies
TypeResource
Idazure.purview_policy.purview_policies

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
decisionRulesarrayArray of decision rules for the policy
etagstringThe etag version of a policy
expiryTimestring (date-time)The timestamp of the expiry time of the policy (UTC).
kindstringThe policy kind
membersobjectMembers of the policy
requestorstringThe AAD member who requested the policy
scopesarrayArray of scopes where the policy is published
sourcestringThe policy source

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectscopeskipToken, $filterThe API lists the Azure purview RBAC policies affecting the scope. The scope can be any valid ARM resource id

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
scopestringThe scope at which the operation is performed.
$filterstringSupported filters : $filter=policyType eq SelfService, $filter=policyType eq SqlDevops. Returns only the policies of the specified type. If not specified, all policies are returned.
skipTokenstringPaging key to paginate to next page.

SELECT examples

The API lists the Azure purview RBAC policies affecting the scope. The scope can be any valid ARM resource id

SELECT
decisionRules,
etag,
expiryTime,
kind,
members,
requestor,
scopes,
source
FROM azure.purview_policy.purview_policies
WHERE scope = '{{ scope }}' -- required
AND skipToken = '{{ skipToken }}'
AND $filter = '{{ $filter }}'
;