1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. getDlpPolicies
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin
powerplatform logo
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin

    Lists all rule-based DLP (Data Loss Prevention) policies in the tenant.

    Using getDlpPolicies

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDlpPolicies(args: GetDlpPoliciesArgs, opts?: InvokeOptions): Promise<GetDlpPoliciesResult>
    function getDlpPoliciesOutput(args: GetDlpPoliciesOutputArgs, opts?: InvokeOptions): Output<GetDlpPoliciesResult>
    def get_dlp_policies(opts: Optional[InvokeOptions] = None) -> GetDlpPoliciesResult
    def get_dlp_policies_output(opts: Optional[InvokeOptions] = None) -> Output[GetDlpPoliciesResult]
    func GetDlpPolicies(ctx *Context, args *GetDlpPoliciesArgs, opts ...InvokeOption) (*GetDlpPoliciesResult, error)
    func GetDlpPoliciesOutput(ctx *Context, args *GetDlpPoliciesOutputArgs, opts ...InvokeOption) GetDlpPoliciesResultOutput

    > Note: This function is named GetDlpPolicies in the Go SDK.

    public static class GetDlpPolicies 
    {
        public static Task<GetDlpPoliciesResult> InvokeAsync(GetDlpPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetDlpPoliciesResult> Invoke(GetDlpPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlpPoliciesResult> getDlpPolicies(GetDlpPoliciesArgs args, InvokeOptions options)
    public static Output<GetDlpPoliciesResult> getDlpPolicies(GetDlpPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: powerplatform:getDlpPolicies
      arguments:
        # arguments dictionary
    data "powerplatform_getdlppolicies" "name" {
        # arguments
    }

    The following arguments are supported:

    getDlpPolicies Result

    The following output properties are available:

    Policies List<DlpPolicySummary>
    The list of DLP policies.
    Policies []DlpPolicySummary
    The list of DLP policies.
    policies list(object)
    The list of DLP policies.
    policies List<DlpPolicySummary>
    The list of DLP policies.
    policies DlpPolicySummary[]
    The list of DLP policies.
    policies Sequence[DlpPolicySummary]
    The list of DLP policies.
    policies List<Property Map>
    The list of DLP policies.

    Supporting Types

    DlpPolicySummary

    Id string
    The unique identifier of the DLP policy.
    LastModified string
    The ISO 8601 timestamp when the policy was last modified.
    Name string
    The display name of the DLP policy.
    RuleSetCount int
    The total number of rule sets in the policy.
    RuleSets List<RuleSet>
    The rule sets that define the DLP policy rules.
    TenantId string
    The ID of the tenant owning the DLP policy.
    Id string
    The unique identifier of the DLP policy.
    LastModified string
    The ISO 8601 timestamp when the policy was last modified.
    Name string
    The display name of the DLP policy.
    RuleSetCount int
    The total number of rule sets in the policy.
    RuleSets []RuleSet
    The rule sets that define the DLP policy rules.
    TenantId string
    The ID of the tenant owning the DLP policy.
    id string
    The unique identifier of the DLP policy.
    last_modified string
    The ISO 8601 timestamp when the policy was last modified.
    name string
    The display name of the DLP policy.
    rule_set_count number
    The total number of rule sets in the policy.
    rule_sets list(object)
    The rule sets that define the DLP policy rules.
    tenant_id string
    The ID of the tenant owning the DLP policy.
    id String
    The unique identifier of the DLP policy.
    lastModified String
    The ISO 8601 timestamp when the policy was last modified.
    name String
    The display name of the DLP policy.
    ruleSetCount Integer
    The total number of rule sets in the policy.
    ruleSets List<RuleSet>
    The rule sets that define the DLP policy rules.
    tenantId String
    The ID of the tenant owning the DLP policy.
    id string
    The unique identifier of the DLP policy.
    lastModified string
    The ISO 8601 timestamp when the policy was last modified.
    name string
    The display name of the DLP policy.
    ruleSetCount number
    The total number of rule sets in the policy.
    ruleSets RuleSet[]
    The rule sets that define the DLP policy rules.
    tenantId string
    The ID of the tenant owning the DLP policy.
    id str
    The unique identifier of the DLP policy.
    last_modified str
    The ISO 8601 timestamp when the policy was last modified.
    name str
    The display name of the DLP policy.
    rule_set_count int
    The total number of rule sets in the policy.
    rule_sets Sequence[RuleSet]
    The rule sets that define the DLP policy rules.
    tenant_id str
    The ID of the tenant owning the DLP policy.
    id String
    The unique identifier of the DLP policy.
    lastModified String
    The ISO 8601 timestamp when the policy was last modified.
    name String
    The display name of the DLP policy.
    ruleSetCount Number
    The total number of rule sets in the policy.
    ruleSets List<Property Map>
    The rule sets that define the DLP policy rules.
    tenantId String
    The ID of the tenant owning the DLP policy.

    RuleSet

    Id string
    The unique identifier of the rule set.
    Inputs Dictionary<string, object>
    The inputs for the rule set, which may vary based on the rule.
    Version string
    The version of the rule set.
    Id string
    The unique identifier of the rule set.
    Inputs map[string]interface{}
    The inputs for the rule set, which may vary based on the rule.
    Version string
    The version of the rule set.
    id string
    The unique identifier of the rule set.
    inputs map(any)
    The inputs for the rule set, which may vary based on the rule.
    version string
    The version of the rule set.
    id String
    The unique identifier of the rule set.
    inputs Map<String,Object>
    The inputs for the rule set, which may vary based on the rule.
    version String
    The version of the rule set.
    id string
    The unique identifier of the rule set.
    inputs {[key: string]: any}
    The inputs for the rule set, which may vary based on the rule.
    version string
    The version of the rule set.
    id str
    The unique identifier of the rule set.
    inputs Mapping[str, Any]
    The inputs for the rule set, which may vary based on the rule.
    version str
    The version of the rule set.
    id String
    The unique identifier of the rule set.
    inputs Map<Any>
    The inputs for the rule set, which may vary based on the rule.
    version String
    The version of the rule set.

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo
    Viewing docs for Power Platform v0.4.1
    published on Monday, Jun 15, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial