Rule Based Policies - Create Enviornment Group Rule Based Assignment
Create environment group rule based assignment.
Create new rule based policy assignment for an environment group. The input includes rule sets, inputs, and other metadata related to the policy.
POST https://api.powerplatform.com/governance/ruleBasedPolicies/{policyId}/environmentGroups/{groupId}/assignments?api-version=2022-03-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
group
|
path | True |
string |
The unique identifier of the environment group. |
policy
|
path | True |
string |
The unique identifier of the policy. |
api-version
|
query | True |
string |
The API version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The details of the policy. |
|
201 Created |
Record created |
|
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
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. |