1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataSafe
  6. EstimateTableSizes
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 resource starts an asynchronous table-size estimation operation for a subsetting policy in Oracle Cloud Infrastructure Data Safe.

    The resource is an action resource: it starts the estimation during creation and is intentionally non-deletable. The resulting estimates can be read with oci.DataSafe.getSubsettingPolicyTableEstimates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testEstimateTableSizes = new oci.datasafe.EstimateTableSizes("test_estimate_table_sizes", {
        subsettingPolicyId: testSubsettingPolicy.id,
        targetId: targetId,
        targetCredentials: {
            userName: targetDatabaseUserName,
            password: targetDatabasePassword,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_estimate_table_sizes = oci.datasafe.EstimateTableSizes("test_estimate_table_sizes",
        subsetting_policy_id=test_subsetting_policy["id"],
        target_id=target_id,
        target_credentials={
            "user_name": target_database_user_name,
            "password": target_database_password,
        })
    
    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.NewEstimateTableSizes(ctx, "test_estimate_table_sizes", &datasafe.EstimateTableSizesArgs{
    			SubsettingPolicyId: pulumi.Any(testSubsettingPolicy.Id),
    			TargetId:           pulumi.Any(targetId),
    			TargetCredentials: &datasafe.EstimateTableSizesTargetCredentialsArgs{
    				UserName: pulumi.Any(targetDatabaseUserName),
    				Password: pulumi.Any(targetDatabasePassword),
    			},
    		})
    		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 testEstimateTableSizes = new Oci.DataSafe.EstimateTableSizes("test_estimate_table_sizes", new()
        {
            SubsettingPolicyId = testSubsettingPolicy.Id,
            TargetId = targetId,
            TargetCredentials = new Oci.DataSafe.Inputs.EstimateTableSizesTargetCredentialsArgs
            {
                UserName = targetDatabaseUserName,
                Password = targetDatabasePassword,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.EstimateTableSizes;
    import com.pulumi.oci.DataSafe.EstimateTableSizesArgs;
    import com.pulumi.oci.DataSafe.inputs.EstimateTableSizesTargetCredentialsArgs;
    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) {
            var testEstimateTableSizes = new EstimateTableSizes("testEstimateTableSizes", EstimateTableSizesArgs.builder()
                .subsettingPolicyId(testSubsettingPolicy.get("id"))
                .targetId(targetId)
                .targetCredentials(EstimateTableSizesTargetCredentialsArgs.builder()
                    .userName(targetDatabaseUserName)
                    .password(targetDatabasePassword)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testEstimateTableSizes:
        type: oci:DataSafe:EstimateTableSizes
        name: test_estimate_table_sizes
        properties:
          subsettingPolicyId: ${testSubsettingPolicy.id}
          targetId: ${targetId}
          targetCredentials:
            userName: ${targetDatabaseUserName}
            password: ${targetDatabasePassword}
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_data_safe_estimate_table_sizes" "test_estimate_table_sizes" {
      lifecycle {
        create_before_destroy = true
      }
      subsetting_policy_id = testSubsettingPolicy.id
      target_id            = targetId
      target_credentials = {
        user_name = targetDatabaseUserName
        password  = targetDatabasePassword
      }
    }
    

    Create EstimateTableSizes Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EstimateTableSizes(name: string, args: EstimateTableSizesArgs, opts?: CustomResourceOptions);
    @overload
    def EstimateTableSizes(resource_name: str,
                           args: EstimateTableSizesArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def EstimateTableSizes(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           subsetting_policy_id: Optional[str] = None,
                           target_credentials: Optional[EstimateTableSizesTargetCredentialsArgs] = None,
                           target_id: Optional[str] = None)
    func NewEstimateTableSizes(ctx *Context, name string, args EstimateTableSizesArgs, opts ...ResourceOption) (*EstimateTableSizes, error)
    public EstimateTableSizes(string name, EstimateTableSizesArgs args, CustomResourceOptions? opts = null)
    public EstimateTableSizes(String name, EstimateTableSizesArgs args)
    public EstimateTableSizes(String name, EstimateTableSizesArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:EstimateTableSizes
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_data_safe_estimate_table_sizes" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EstimateTableSizesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EstimateTableSizesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EstimateTableSizesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EstimateTableSizesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EstimateTableSizesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var estimateTableSizesResource = new Oci.DataSafe.EstimateTableSizes("estimateTableSizesResource", new()
    {
        SubsettingPolicyId = "string",
        TargetCredentials = new Oci.DataSafe.Inputs.EstimateTableSizesTargetCredentialsArgs
        {
            Password = "string",
            UserName = "string",
        },
        TargetId = "string",
    });
    
    example, err := datasafe.NewEstimateTableSizes(ctx, "estimateTableSizesResource", &datasafe.EstimateTableSizesArgs{
    	SubsettingPolicyId: pulumi.String("string"),
    	TargetCredentials: &datasafe.EstimateTableSizesTargetCredentialsArgs{
    		Password: pulumi.String("string"),
    		UserName: pulumi.String("string"),
    	},
    	TargetId: pulumi.String("string"),
    })
    
    resource "oci_data_safe_estimate_table_sizes" "estimateTableSizesResource" {
      lifecycle {
        create_before_destroy = true
      }
      subsetting_policy_id = "string"
      target_credentials = {
        password  = "string"
        user_name = "string"
      }
      target_id = "string"
    }
    
    var estimateTableSizesResource = new EstimateTableSizes("estimateTableSizesResource", EstimateTableSizesArgs.builder()
        .subsettingPolicyId("string")
        .targetCredentials(EstimateTableSizesTargetCredentialsArgs.builder()
            .password("string")
            .userName("string")
            .build())
        .targetId("string")
        .build());
    
    estimate_table_sizes_resource = oci.datasafe.EstimateTableSizes("estimateTableSizesResource",
        subsetting_policy_id="string",
        target_credentials={
            "password": "string",
            "user_name": "string",
        },
        target_id="string")
    
    const estimateTableSizesResource = new oci.datasafe.EstimateTableSizes("estimateTableSizesResource", {
        subsettingPolicyId: "string",
        targetCredentials: {
            password: "string",
            userName: "string",
        },
        targetId: "string",
    });
    
    type: oci:DataSafe:EstimateTableSizes
    properties:
        subsettingPolicyId: string
        targetCredentials:
            password: string
            userName: string
        targetId: string
    

    EstimateTableSizes Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EstimateTableSizes resource accepts the following input properties:

    SubsettingPolicyId string
    The OCID of the subsetting policy.
    TargetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    TargetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    SubsettingPolicyId string
    The OCID of the subsetting policy.
    TargetCredentials EstimateTableSizesTargetCredentialsArgs
    Credentials for connecting to the target database.
    TargetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsetting_policy_id string
    The OCID of the subsetting policy.
    target_credentials object
    Credentials for connecting to the target database.
    target_id string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    targetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    targetId String
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId string
    The OCID of the subsetting policy.
    targetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    targetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsetting_policy_id str
    The OCID of the subsetting policy.
    target_credentials EstimateTableSizesTargetCredentialsArgs
    Credentials for connecting to the target database.
    target_id str
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    targetCredentials Property Map
    Credentials for connecting to the target database.
    targetId String
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EstimateTableSizes resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EstimateTableSizes Resource

    Get an existing EstimateTableSizes resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EstimateTableSizesState, opts?: CustomResourceOptions): EstimateTableSizes
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            subsetting_policy_id: Optional[str] = None,
            target_credentials: Optional[EstimateTableSizesTargetCredentialsArgs] = None,
            target_id: Optional[str] = None) -> EstimateTableSizes
    func GetEstimateTableSizes(ctx *Context, name string, id IDInput, state *EstimateTableSizesState, opts ...ResourceOption) (*EstimateTableSizes, error)
    public static EstimateTableSizes Get(string name, Input<string> id, EstimateTableSizesState? state, CustomResourceOptions? opts = null)
    public static EstimateTableSizes get(String name, Output<String> id, EstimateTableSizesState state, CustomResourceOptions options)
    resources:  _:    type: oci:DataSafe:EstimateTableSizes    get:      id: ${id}
    import {
      to = oci_data_safe_estimate_table_sizes.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    SubsettingPolicyId string
    The OCID of the subsetting policy.
    TargetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    TargetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    SubsettingPolicyId string
    The OCID of the subsetting policy.
    TargetCredentials EstimateTableSizesTargetCredentialsArgs
    Credentials for connecting to the target database.
    TargetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsetting_policy_id string
    The OCID of the subsetting policy.
    target_credentials object
    Credentials for connecting to the target database.
    target_id string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    targetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    targetId String
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId string
    The OCID of the subsetting policy.
    targetCredentials EstimateTableSizesTargetCredentials
    Credentials for connecting to the target database.
    targetId string
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsetting_policy_id str
    The OCID of the subsetting policy.
    target_credentials EstimateTableSizesTargetCredentialsArgs
    Credentials for connecting to the target database.
    target_id str
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.
    subsettingPolicyId String
    The OCID of the subsetting policy.
    targetCredentials Property Map
    Credentials for connecting to the target database.
    targetId String
    The OCID of the target database. If omitted, the target is resolved from the subsetting policy.

    Supporting Types

    EstimateTableSizesTargetCredentials, EstimateTableSizesTargetCredentialsArgs

    Password string
    The password for the target database user.
    UserName string
    The user name for the target database.
    Password string
    The password for the target database user.
    UserName string
    The user name for the target database.
    password string
    The password for the target database user.
    user_name string
    The user name for the target database.
    password String
    The password for the target database user.
    userName String
    The user name for the target database.
    password string
    The password for the target database user.
    userName string
    The user name for the target database.
    password str
    The password for the target database user.
    user_name str
    The user name for the target database.
    password String
    The password for the target database user.
    userName String
    The user name for the target database.

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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