Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
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 dictionarydata "oci_data_safe_get_subsetting_policy_subsetting_rule" "name" {
# arguments
}The following arguments are supported:
- Subsetting
Policy stringId - The OCID of the subsetting policy.
- Subsetting
Rule stringKey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- Subsetting
Policy stringId - The OCID of the subsetting policy.
- Subsetting
Rule stringKey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- subsetting_
policy_ stringid - The OCID of the subsetting policy.
- subsetting_
rule_ stringkey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- subsetting
Policy StringId - The OCID of the subsetting policy.
- subsetting
Rule StringKey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- subsetting
Policy stringId - The OCID of the subsetting policy.
- subsetting
Rule stringKey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- subsetting_
policy_ strid - The OCID of the subsetting policy.
- subsetting_
rule_ strkey - The unique key that identifies the subsetting rule. It's numeric and unique within a subsetting policy.
- subsetting
Policy StringId - The OCID of the subsetting policy.
- subsetting
Rule StringKey - 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
- 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 stringAction - Strategy to be applied while processing peer tables
- string
- Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - 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<Get
Subsetting Policy Subsetting Rule Scope> - The scope of the subset rule
- Subset
Rule List<GetEntries Subsetting Policy Subsetting Rule Subset Rule Entry> - The details of the subset rule
- Subsetting
Policy stringId - Subsetting
Rule stringKey
- 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 stringAction - Strategy to be applied while processing peer tables
- string
- Strategy to be applied while propagating subsetting rule to related tables
- Rule
Combination stringMode - 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
[]Get
Subsetting Policy Subsetting Rule Scope - The scope of the subset rule
- Subset
Rule []GetEntries Subsetting Policy Subsetting Rule Subset Rule Entry - The details of the subset rule
- Subsetting
Policy stringId - Subsetting
Rule stringKey
- 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_ stringaction - Strategy to be applied while processing peer tables
- string
- Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ stringmode - 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_ list(object)entries - The details of the subset rule
- subsetting_
policy_ stringid - subsetting_
rule_ stringkey
- 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 StringAction - Strategy to be applied while processing peer tables
- String
- Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - 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<Get
Subsetting Policy Subsetting Rule Scope> - The scope of the subset rule
- subset
Rule List<GetEntries Subsetting Policy Subsetting Rule Subset Rule Entry> - The details of the subset rule
- subsetting
Policy StringId - subsetting
Rule StringKey
- 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 stringAction - Strategy to be applied while processing peer tables
- string
- Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination stringMode - 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
Get
Subsetting Policy Subsetting Rule Scope[] - The scope of the subset rule
- subset
Rule GetEntries Subsetting Policy Subsetting Rule Subset Rule Entry[] - The details of the subset rule
- subsetting
Policy stringId - subsetting
Rule stringKey
- 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_ straction - Strategy to be applied while processing peer tables
- str
- Strategy to be applied while propagating subsetting rule to related tables
- rule_
combination_ strmode - 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[Get
Subsetting Policy Subsetting Rule Scope] - The scope of the subset rule
- subset_
rule_ Sequence[Getentries Subsetting Policy Subsetting Rule Subset Rule Entry] - The details of the subset rule
- subsetting_
policy_ strid - subsetting_
rule_ strkey
- 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 StringAction - Strategy to be applied while processing peer tables
- String
- Strategy to be applied while propagating subsetting rule to related tables
- rule
Combination StringMode - 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
- subset
Rule List<Property Map>Entries - The details of the subset rule
- subsetting
Policy StringId - subsetting
Rule StringKey
Supporting Types
GetSubsettingPolicySubsettingRuleScope
- 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
- 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
- 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
- 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
- schema
Name string - The name of the schema containing the specific object to be subsetted
- scope
Type 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
- schema
Name String - The name of the schema containing the specific object to be subsetted
- scope
Type String - Scope of a subsetting rule
GetSubsettingPolicySubsettingRuleSubsetRuleEntry
- 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 int
- The percentage of rows to retain in the subset (between 0 and 100)
- Rule
Type string - type of subset rule
- Sub
Partitions List<string>Lists - 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 []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)
- Rule
Type string - type of subset rule
- Sub
Partitions []stringLists - 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_ list(string)lists - 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 Integer
- The percentage of rows to retain in the subset (between 0 and 100)
- rule
Type String - type of subset rule
- sub
Partitions List<String>Lists - 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 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 string[]Lists - 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_ Sequence[str]lists - 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 List<String>Lists - 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
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi