1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataSafe
  6. getSubsettingPolicySubsettingRule
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi

    This data source provides details about a specific Subsetting Policy Subsetting Rule resource in Oracle Cloud Infrastructure Data Safe service.

    Gets the details of the specified subsetting rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSubsettingPolicySubsettingRule = oci.datasafe.getSubsettingPolicySubsettingRule({
        subsettingPolicyId: testSubsettingPolicy.id,
        subsettingRuleKey: subsettingPolicySubsettingRuleSubsettingRuleKey,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_subsetting_policy_subsetting_rule = oci.datasafe.get_subsetting_policy_subsetting_rule(subsetting_policy_id=test_subsetting_policy["id"],
        subsetting_rule_key=subsetting_policy_subsetting_rule_subsetting_rule_key)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetSubsettingPolicySubsettingRule(ctx, &datasafe.GetSubsettingPolicySubsettingRuleArgs{
    			SubsettingPolicyId: testSubsettingPolicy.Id,
    			SubsettingRuleKey:  subsettingPolicySubsettingRuleSubsettingRuleKey,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSubsettingPolicySubsettingRule = Oci.DataSafe.GetSubsettingPolicySubsettingRule.Invoke(new()
        {
            SubsettingPolicyId = testSubsettingPolicy.Id,
            SubsettingRuleKey = subsettingPolicySubsettingRuleSubsettingRuleKey,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.DataSafeFunctions;
    import com.pulumi.oci.DataSafe.inputs.GetSubsettingPolicySubsettingRuleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testSubsettingPolicySubsettingRule = DataSafeFunctions.getSubsettingPolicySubsettingRule(GetSubsettingPolicySubsettingRuleArgs.builder()
                .subsettingPolicyId(testSubsettingPolicy.get("id"))
                .subsettingRuleKey(subsettingPolicySubsettingRuleSubsettingRuleKey)
                .build());
    
        }
    }
    
    variables:
      testSubsettingPolicySubsettingRule:
        fn::invoke:
          function: oci:DataSafe:getSubsettingPolicySubsettingRule
          arguments:
            subsettingPolicyId: ${testSubsettingPolicy.id}
            subsettingRuleKey: ${subsettingPolicySubsettingRuleSubsettingRuleKey}
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_data_safe_subsetting_policy_subsetting_rule" "testSubsettingPolicySubsettingRule" {
      subsetting_policy_id = testSubsettingPolicy.id
      subsetting_rule_key  = subsettingPolicySubsettingRuleSubsettingRuleKey
    }
    

    Using getSubsettingPolicySubsettingRule

    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 getSubsettingPolicySubsettingRule(args: GetSubsettingPolicySubsettingRuleArgs, opts?: InvokeOptions): Promise<GetSubsettingPolicySubsettingRuleResult>
    function getSubsettingPolicySubsettingRuleOutput(args: GetSubsettingPolicySubsettingRuleOutputArgs, opts?: InvokeOutputOptions): Output<GetSubsettingPolicySubsettingRuleResult>
    def get_subsetting_policy_subsetting_rule(subsetting_policy_id: Optional[str] = None,
                                              subsetting_rule_key: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetSubsettingPolicySubsettingRuleResult
    def get_subsetting_policy_subsetting_rule_output(subsetting_policy_id: pulumi.Input[Optional[str]] = None,
                                              subsetting_rule_key: pulumi.Input[Optional[str]] = None,
                                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetSubsettingPolicySubsettingRuleResult]
    func LookupSubsettingPolicySubsettingRule(ctx *Context, args *LookupSubsettingPolicySubsettingRuleArgs, opts ...InvokeOption) (*LookupSubsettingPolicySubsettingRuleResult, error)
    func LookupSubsettingPolicySubsettingRuleOutput(ctx *Context, args *LookupSubsettingPolicySubsettingRuleOutputArgs, opts ...InvokeOption) LookupSubsettingPolicySubsettingRuleResultOutput

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

    public static class GetSubsettingPolicySubsettingRule 
    {
        public static Task<GetSubsettingPolicySubsettingRuleResult> InvokeAsync(GetSubsettingPolicySubsettingRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetSubsettingPolicySubsettingRuleResult> Invoke(GetSubsettingPolicySubsettingRuleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSubsettingPolicySubsettingRuleResult> Invoke(GetSubsettingPolicySubsettingRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSubsettingPolicySubsettingRuleResult> getSubsettingPolicySubsettingRule(GetSubsettingPolicySubsettingRuleArgs args, InvokeOptions options)
    public static Output<GetSubsettingPolicySubsettingRuleResult> getSubsettingPolicySubsettingRule(GetSubsettingPolicySubsettingRuleArgs args, InvokeOptions options)
    public static Output<GetSubsettingPolicySubsettingRuleResult> getSubsettingPolicySubsettingRule(GetSubsettingPolicySubsettingRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getSubsettingPolicySubsettingRule:getSubsettingPolicySubsettingRule
      arguments:
        # arguments dictionary
    data "oci_data_safe_get_subsetting_policy_subsetting_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    SubsettingPolicyId string
    The OCID of the subsetting policy.
    SubsettingRuleKey string
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    SubsettingPolicyId string
    The OCID of the subsetting policy.
    SubsettingRuleKey string
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    subsetting_policy_id string
    The OCID of the subsetting policy.
    subsetting_rule_key string
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    subsettingRuleKey String
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    subsettingPolicyId string
    The OCID of the subsetting policy.
    subsettingRuleKey string
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    subsetting_policy_id str
    The OCID of the subsetting policy.
    subsetting_rule_key str
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    subsettingRuleKey String
    The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.

    getSubsettingPolicySubsettingRule Result

    The following output properties are available:

    Description string
    The description of the subset rule
    DisplayName string
    The display name of the subset rule
    Id string
    Key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    PeerTablesAction string
    Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    Scopes List<GetSubsettingPolicySubsettingRuleScope>
    The scope of the subset rule
    SubsetRuleEntries List<GetSubsettingPolicySubsettingRuleSubsetRuleEntry>
    The details of the subset rule
    SubsettingPolicyId string
    SubsettingRuleKey string
    Description string
    The description of the subset rule
    DisplayName string
    The display name of the subset rule
    Id string
    Key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    PeerTablesAction string
    Strategy to be applied while processing peer tables
    RelatedTablesPropagation string
    Strategy to be applied while propagating subsetting rule to related tables
    RuleCombinationMode string
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    Scopes []GetSubsettingPolicySubsettingRuleScope
    The scope of the subset rule
    SubsetRuleEntries []GetSubsettingPolicySubsettingRuleSubsetRuleEntry
    The details of the subset rule
    SubsettingPolicyId string
    SubsettingRuleKey string
    description string
    The description of the subset rule
    display_name string
    The display name of the subset rule
    id string
    key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    peer_tables_action string
    Strategy to be applied while processing peer tables
    related_tables_propagation string
    Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode string
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    scopes list(object)
    The scope of the subset rule
    subset_rule_entries list(object)
    The details of the subset rule
    subsetting_policy_id string
    subsetting_rule_key string
    description String
    The description of the subset rule
    displayName String
    The display name of the subset rule
    id String
    key String
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    peerTablesAction String
    Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    scopes List<GetSubsettingPolicySubsettingRuleScope>
    The scope of the subset rule
    subsetRuleEntries List<GetSubsettingPolicySubsettingRuleSubsetRuleEntry>
    The details of the subset rule
    subsettingPolicyId String
    subsettingRuleKey String
    description string
    The description of the subset rule
    displayName string
    The display name of the subset rule
    id string
    key string
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    peerTablesAction string
    Strategy to be applied while processing peer tables
    relatedTablesPropagation string
    Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode string
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    scopes GetSubsettingPolicySubsettingRuleScope[]
    The scope of the subset rule
    subsetRuleEntries GetSubsettingPolicySubsettingRuleSubsetRuleEntry[]
    The details of the subset rule
    subsettingPolicyId string
    subsettingRuleKey string
    description str
    The description of the subset rule
    display_name str
    The display name of the subset rule
    id str
    key str
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    peer_tables_action str
    Strategy to be applied while processing peer tables
    related_tables_propagation str
    Strategy to be applied while propagating subsetting rule to related tables
    rule_combination_mode str
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    scopes Sequence[GetSubsettingPolicySubsettingRuleScope]
    The scope of the subset rule
    subset_rule_entries Sequence[GetSubsettingPolicySubsettingRuleSubsetRuleEntry]
    The details of the subset rule
    subsetting_policy_id str
    subsetting_rule_key str
    description String
    The description of the subset rule
    displayName String
    The display name of the subset rule
    id String
    key String
    The unique key that identifies a subsetting rule. The key is numeric and unique within a subsetting policy
    peerTablesAction String
    Strategy to be applied while processing peer tables
    relatedTablesPropagation String
    Strategy to be applied while propagating subsetting rule to related tables
    ruleCombinationMode String
    Specifies how this rule combines with other rules. UNION evaluates this rule independently and adds matching rows to the result set. SERIAL applies this rule sequentially to filter rows selected by a compatible preceding rule.
    scopes List<Property Map>
    The scope of the subset rule
    subsetRuleEntries List<Property Map>
    The details of the subset rule
    subsettingPolicyId String
    subsettingRuleKey String

    Supporting Types

    GetSubsettingPolicySubsettingRuleScope

    Object string
    The name of the specific object (e.g., table) to be subsetted
    SchemaName string
    The name of the schema containing the specific object to be subsetted
    ScopeType string
    Scope of a subsetting rule
    Object string
    The name of the specific object (e.g., table) to be subsetted
    SchemaName string
    The name of the schema containing the specific object to be subsetted
    ScopeType string
    Scope of a subsetting rule
    object string
    The name of the specific object (e.g., table) to be subsetted
    schema_name string
    The name of the schema containing the specific object to be subsetted
    scope_type string
    Scope of a subsetting rule
    object String
    The name of the specific object (e.g., table) to be subsetted
    schemaName String
    The name of the schema containing the specific object to be subsetted
    scopeType String
    Scope of a subsetting rule
    object string
    The name of the specific object (e.g., table) to be subsetted
    schemaName string
    The name of the schema containing the specific object to be subsetted
    scopeType string
    Scope of a subsetting rule
    object str
    The name of the specific object (e.g., table) to be subsetted
    schema_name str
    The name of the schema containing the specific object to be subsetted
    scope_type str
    Scope of a subsetting rule
    object String
    The name of the specific object (e.g., table) to be subsetted
    schemaName String
    The name of the schema containing the specific object to be subsetted
    scopeType String
    Scope of a subsetting rule

    GetSubsettingPolicySubsettingRuleSubsetRuleEntry

    Condition string
    The SQL WHERE clause condition used to filter rows for the subset
    PartitionsLists List<string>
    A list of partition names which are to be part of the subset data
    Percent int
    The percentage of rows to retain in the subset (between 0 and 100)
    RuleType string
    type of subset rule
    SubPartitionsLists List<string>
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    Condition string
    The SQL WHERE clause condition used to filter rows for the subset
    PartitionsLists []string
    A list of partition names which are to be part of the subset data
    Percent int
    The percentage of rows to retain in the subset (between 0 and 100)
    RuleType string
    type of subset rule
    SubPartitionsLists []string
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    condition string
    The SQL WHERE clause condition used to filter rows for the subset
    partitions_lists list(string)
    A list of partition names which are to be part of the subset data
    percent number
    The percentage of rows to retain in the subset (between 0 and 100)
    rule_type string
    type of subset rule
    sub_partitions_lists list(string)
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    condition String
    The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists List<String>
    A list of partition names which are to be part of the subset data
    percent Integer
    The percentage of rows to retain in the subset (between 0 and 100)
    ruleType String
    type of subset rule
    subPartitionsLists List<String>
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    condition string
    The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists string[]
    A list of partition names which are to be part of the subset data
    percent number
    The percentage of rows to retain in the subset (between 0 and 100)
    ruleType string
    type of subset rule
    subPartitionsLists string[]
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    condition str
    The SQL WHERE clause condition used to filter rows for the subset
    partitions_lists Sequence[str]
    A list of partition names which are to be part of the subset data
    percent int
    The percentage of rows to retain in the subset (between 0 and 100)
    rule_type str
    type of subset rule
    sub_partitions_lists Sequence[str]
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot
    condition String
    The SQL WHERE clause condition used to filter rows for the subset
    partitionsLists List<String>
    A list of partition names which are to be part of the subset data
    percent Number
    The percentage of rows to retain in the subset (between 0 and 100)
    ruleType String
    type of subset rule
    subPartitionsLists List<String>
    A list of sub-partition names which are to be part of the subset data. The sub-partition names should have the partition name also, separated by a dot

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.3.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial