1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. DataPatch
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    Create DataPatch Resource

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

    Constructor syntax

    new DataPatch(name: string, args: DataPatchArgs, opts?: CustomResourceOptions);
    @overload
    def DataPatch(resource_name: str,
                  args: DataPatchArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataPatch(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  action: Optional[str] = None,
                  database_id: Optional[str] = None,
                  data_patch_options: Optional[Sequence[DataPatchDataPatchOptionArgs]] = None,
                  pluggable_databases: Optional[Sequence[str]] = None)
    func NewDataPatch(ctx *Context, name string, args DataPatchArgs, opts ...ResourceOption) (*DataPatch, error)
    public DataPatch(string name, DataPatchArgs args, CustomResourceOptions? opts = null)
    public DataPatch(String name, DataPatchArgs args)
    public DataPatch(String name, DataPatchArgs args, CustomResourceOptions options)
    
    type: oci:Database:DataPatch
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DataPatchArgs
    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 DataPatchArgs
    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 DataPatchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataPatchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataPatchArgs
    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 dataPatchResource = new Oci.Database.DataPatch("dataPatchResource", new()
    {
        Action = "string",
        DatabaseId = "string",
        DataPatchOptions = new[]
        {
            new Oci.Database.Inputs.DataPatchDataPatchOptionArgs
            {
                ShouldSkipClosedPdbs = false,
            },
        },
        PluggableDatabases = new[]
        {
            "string",
        },
    });
    
    example, err := database.NewDataPatch(ctx, "dataPatchResource", &database.DataPatchArgs{
    	Action:     pulumi.String("string"),
    	DatabaseId: pulumi.String("string"),
    	DataPatchOptions: database.DataPatchDataPatchOptionArray{
    		&database.DataPatchDataPatchOptionArgs{
    			ShouldSkipClosedPdbs: pulumi.Bool(false),
    		},
    	},
    	PluggableDatabases: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var dataPatchResource = new DataPatch("dataPatchResource", DataPatchArgs.builder()
        .action("string")
        .databaseId("string")
        .dataPatchOptions(DataPatchDataPatchOptionArgs.builder()
            .shouldSkipClosedPdbs(false)
            .build())
        .pluggableDatabases("string")
        .build());
    
    data_patch_resource = oci.database.DataPatch("dataPatchResource",
        action="string",
        database_id="string",
        data_patch_options=[{
            "should_skip_closed_pdbs": False,
        }],
        pluggable_databases=["string"])
    
    const dataPatchResource = new oci.database.DataPatch("dataPatchResource", {
        action: "string",
        databaseId: "string",
        dataPatchOptions: [{
            shouldSkipClosedPdbs: false,
        }],
        pluggableDatabases: ["string"],
    });
    
    type: oci:Database:DataPatch
    properties:
        action: string
        dataPatchOptions:
            - shouldSkipClosedPdbs: false
        databaseId: string
        pluggableDatabases:
            - string
    

    DataPatch 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 DataPatch resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DataPatch 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DataPatch Resource

    Get an existing DataPatch 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?: DataPatchState, opts?: CustomResourceOptions): DataPatch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            data_patch_options: Optional[Sequence[DataPatchDataPatchOptionArgs]] = None,
            database_id: Optional[str] = None,
            pluggable_databases: Optional[Sequence[str]] = None) -> DataPatch
    func GetDataPatch(ctx *Context, name string, id IDInput, state *DataPatchState, opts ...ResourceOption) (*DataPatch, error)
    public static DataPatch Get(string name, Input<string> id, DataPatchState? state, CustomResourceOptions? opts = null)
    public static DataPatch get(String name, Output<String> id, DataPatchState state, CustomResourceOptions options)
    resources:  _:    type: oci:Database:DataPatch    get:      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.

    Supporting Types

    DataPatchDataPatchOption, DataPatchDataPatchOptionArgs

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate