Rule Based Policies - List Rule Assignments
List rule based policy assignments.
Retrieves a list of rule assignments for a tenant. This operation provides details about the policy assignments, including rule sets and associated resource types.
GET https://api.powerplatform.com/governance/ruleBasedPolicies/assignments?includeRuleSetCounts={includeRuleSetCounts}&api-version=2022-03-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
api-version
|
query | True |
string |
The API version. |
|
include
|
query | True |
boolean |
Flag to include rule set counts in the response. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
A list of policy assignments. |
|
| 400 Bad Request |
Bad Request - The query parameters are invalid. |
|
| 401 Unauthorized |
Unauthorized - Invalid credentials or missing authentication. |
|
| 404 Not Found |
Not Found - The specified resource does not exist. |
|
| 500 Internal Server Error |
Internal Server Error - Unexpected server error. |
Security
oauth2
Microsoft Entra ID OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com
Scopes
| Name | Description |
|---|---|
| .default | .default |
Definitions
| Name | Description |
|---|---|
|
Rule |
|
|
Rule |
RuleAssignment
| Name | Type | Description |
|---|---|---|
| policyId |
string |
The unique identifier of the policy. |
| resourceId |
string |
The unique identifier of the resource. |
| resourceType |
enum:
|
The type of resource assigned to the rule. |
| ruleSetCount |
integer |
The count of rule sets assigned. |
| tenantId |
string |
The unique identifier of the tenant. |
RuleAssignmentsResponse
| Name | Type | Description |
|---|---|---|
| value |