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 operation
- policies(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 policy
- created_time(String) Time when the policy was created
- custom_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 policy
- environments(Set of String) Environment to which the policy is applied
- id(String) Unique name of the policy
- last_modified_by(String) User who last modified the policy
- last_modified_time(String) Time when the policy was last modified
- non_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 rule
- behavior(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 rule
- order(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 rule
- behavior(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 rule
- order(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 connector
- order(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 rule
- behavior(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 rule
- order(Number) Order of the endpoint rule