powerplatform_data_loss_prevention_policies (Data Source)
Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See Manage data loss prevention policies for more information.
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
data "powerplatform_data_loss_prevention_policies" "tenant_data_loss_prevention_policies" {
}
Schema
Optional
timeouts(Attributes) (see below for nested schema)
Read-Only
id(String) Id of the read operationpolicies(Attributes List) List of Data Loss Prevention Policies (see below for nested schema)
Nested Schema for timeouts
Nested Schema for policies
Required:
environment_type(String) Default environment handling for the policy ("AllEnvironments", "ExceptEnvironments", "OnlyEnvironments")
Read-Only:
blocked_connectors(Attributes Set) Blocked connectors can’t be used where this policy is applied. (see below for nested schema)business_connectors(Attributes Set) Connectors for sensitive data (see below for nested schema)created_by(String) User who created the policycreated_time(String) Time when the policy was createdcustom_connectors_patterns(Attributes Set) Custom connectors patterns (see below for nested schema)default_connectors_classification(String) Default classification for connectors ("General", "Confidential", "Blocked")display_name(String) Display name of the policyenvironments(Set of String) Environment to which the policy is appliedid(String) Unique name of the policylast_modified_by(String) User who last modified the policylast_modified_time(String) Time when the policy was last modifiednon_business_connectors(Attributes Set) Connectors for non-sensitive data (see below for nested schema)
Nested Schema for policies.blocked_connectors
Optional:
action_rules(Attributes List) Action rules for the connector (see below for nested schema)default_action_rule_behavior(String) Default action rule behavior for the connector ("Allow", "Block")endpoint_rules(Attributes List) Endpoint rules for the connector (see below for nested schema)id(String) ID of the connector
Nested Schema for policies.blocked_connectors.action_rules
Required:
action_id(String) ID of the action rulebehavior(String) Behavior of the action rule ("Allow", "Block")
Nested Schema for policies.blocked_connectors.endpoint_rules
Required:
behavior(String) Behavior of the endpoint rule ("Allow", "Deny")endpoint(String) Endpoint of the endpoint ruleorder(Number) Order of the endpoint rule
Nested Schema for policies.business_connectors
Optional:
action_rules(Attributes List) Action rules for the connector (see below for nested schema)default_action_rule_behavior(String) Default action rule behavior for the connector ("Allow", "Block")endpoint_rules(Attributes List) Endpoint rules for the connector (see below for nested schema)id(String) ID of the connector
Nested Schema for policies.business_connectors.action_rules
Required:
action_id(String) ID of the action rulebehavior(String) Behavior of the action rule ("Allow", "Block")
Nested Schema for policies.business_connectors.endpoint_rules
Required:
behavior(String) Behavior of the endpoint rule ("Allow", "Deny")endpoint(String) Endpoint of the endpoint ruleorder(Number) Order of the endpoint rule
Nested Schema for policies.custom_connectors_patterns
Read-Only:
data_group(String) Data group of the connector ("Business", "NonBusiness", "Blocked", "Ignore")host_url_pattern(String) Pattern of the connectororder(Number) Order of the connector
Nested Schema for policies.non_business_connectors
Optional:
action_rules(Attributes List) Action rules for the connector (see below for nested schema)default_action_rule_behavior(String) Default action rule behavior for the connector ("Allow", "Block")endpoint_rules(Attributes List) Endpoint rules for the connector (see below for nested schema)id(String) ID of the connector
Nested Schema for policies.non_business_connectors.action_rules
Required:
action_id(String) ID of the action rulebehavior(String) Behavior of the action rule ("Allow", "Block")
Nested Schema for policies.non_business_connectors.endpoint_rules
Required:
behavior(String) Behavior of the endpoint rule ("Allow", "Deny")endpoint(String) Endpoint of the endpoint ruleorder(Number) Order of the endpoint rule