Rule Based Policies - Get Rule Based Policy By ID
Get rule based policy by ID.
Retrieves details about a specific policy based on the policy ID. The response includes rule sets, inputs, and other metadata related to the policy.
GET https://api.powerplatform.com/governance/ruleBasedPolicies/{policyId}?api-version=2022-03-01-preview
		URI Parameters
| Name | In | Required | Type | Description | 
|---|---|---|---|---|
| 
						 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.  | 
|
| 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 | 
|---|---|
| Policy | |
| 
							Rule | 
						
Policy
| Name | Type | Description | 
|---|---|---|
| id | 
			 string  | 
	
		 The unique identifier of the policy assignment.  | 
| lastModified | 
			 string (date-time)  | 
	
		 The date and time when the policy was last modified.  | 
| name | 
			 string  | 
	
		 The name of the policy.  | 
| ruleSetCount | 
			 integer  | 
	
		 The number of rule sets associated with this policy.  | 
| ruleSets | 
			 
					Rule  | 
	|
| tenantId | 
			 string  | 
	
		 The unique identifier of the tenant.  | 
RuleSet 
			
			
				| Name | Type | Description | 
|---|---|---|
| id | 
			 string  | 
	
		 The unique identifier of the rule set.  | 
| inputs | 
			 object  | 
	
		 The inputs for the rule set, which may vary based on the rule.  | 
| version | 
			 string  | 
	
		 The version of the rule set.  |