1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. getDlpPolicyMigrationConfig
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

    Reads an existing DLP policy by ID and returns its configuration ready for use with ResDlpPolicy or powerplatform:index:DlpPolicy. This function is the Pulumi equivalent of the utl-dlppolicy-replicator Terraform module. It is advisory-only: no enforcement or reclassification is applied.

    Using getDlpPolicyMigrationConfig

    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 getDlpPolicyMigrationConfig(args: GetDlpPolicyMigrationConfigArgs, opts?: InvokeOptions): Promise<GetDlpPolicyMigrationConfigResult>
    function getDlpPolicyMigrationConfigOutput(args: GetDlpPolicyMigrationConfigOutputArgs, opts?: InvokeOptions): Output<GetDlpPolicyMigrationConfigResult>
    def get_dlp_policy_migration_config(source_policy_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetDlpPolicyMigrationConfigResult
    def get_dlp_policy_migration_config_output(source_policy_id: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetDlpPolicyMigrationConfigResult]
    func GetDlpPolicyMigrationConfig(ctx *Context, args *GetDlpPolicyMigrationConfigArgs, opts ...InvokeOption) (*GetDlpPolicyMigrationConfigResult, error)
    func GetDlpPolicyMigrationConfigOutput(ctx *Context, args *GetDlpPolicyMigrationConfigOutputArgs, opts ...InvokeOption) GetDlpPolicyMigrationConfigResultOutput

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

    public static class GetDlpPolicyMigrationConfig 
    {
        public static Task<GetDlpPolicyMigrationConfigResult> InvokeAsync(GetDlpPolicyMigrationConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetDlpPolicyMigrationConfigResult> Invoke(GetDlpPolicyMigrationConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlpPolicyMigrationConfigResult> getDlpPolicyMigrationConfig(GetDlpPolicyMigrationConfigArgs args, InvokeOptions options)
    public static Output<GetDlpPolicyMigrationConfigResult> getDlpPolicyMigrationConfig(GetDlpPolicyMigrationConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: powerplatform:getDlpPolicyMigrationConfig
      arguments:
        # arguments dictionary
    data "powerplatform_getdlppolicymigrationconfig" "name" {
        # arguments
    }

    The following arguments are supported:

    SourcePolicyId string
    The ID of the source DLP policy to read migration configuration from.
    SourcePolicyId string
    The ID of the source DLP policy to read migration configuration from.
    source_policy_id string
    The ID of the source DLP policy to read migration configuration from.
    sourcePolicyId String
    The ID of the source DLP policy to read migration configuration from.
    sourcePolicyId string
    The ID of the source DLP policy to read migration configuration from.
    source_policy_id str
    The ID of the source DLP policy to read migration configuration from.
    sourcePolicyId String
    The ID of the source DLP policy to read migration configuration from.

    getDlpPolicyMigrationConfig Result

    The following output properties are available:

    DisplayName string
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    Name string
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    RuleSets List<RuleSet>
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    DisplayName string
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    Name string
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    RuleSets []RuleSet
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    display_name string
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    name string
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    rule_sets list(object)
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    displayName String
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    name String
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    ruleSets List<RuleSet>
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    displayName string
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    name string
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    ruleSets RuleSet[]
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    display_name str
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    name str
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    rule_sets Sequence[RuleSet]
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.
    displayName String
    Display name of the source DLP policy. Use as the displayName input for ResDlpPolicy.
    name String
    Display name of the source DLP policy. Use as the name input for powerplatform:index:DlpPolicy.
    ruleSets List<Property Map>
    Rule set configurations from the source policy, ready for input to ResDlpPolicy or DlpPolicy.

    Supporting Types

    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