1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Database
  6. DatabaseSnapshot
Viewing docs for Oracle Cloud Infrastructure v5.7.0
published on Thursday, Nov 12, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.7.0
published on Thursday, Nov 12, 2026 by Pulumi

    This resource provides the Database Snapshot resource in Oracle Cloud Infrastructure Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/DatabaseSnapshot

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database

    Creates a Database Snapshot

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseSnapshot = new oci.database.DatabaseSnapshot("test_database_snapshot", {
        databaseId: testDatabase.id,
        name: databaseSnapshotName,
        definedTags: databaseSnapshotDefinedTags,
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_snapshot = oci.database.DatabaseSnapshot("test_database_snapshot",
        database_id=test_database["id"],
        name=database_snapshot_name,
        defined_tags=database_snapshot_defined_tags,
        freeform_tags={
            "Department": "Finance",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.NewDatabaseSnapshot(ctx, "test_database_snapshot", &database.DatabaseSnapshotArgs{
    			DatabaseId:  pulumi.Any(testDatabase.Id),
    			Name:        pulumi.Any(databaseSnapshotName),
    			DefinedTags: pulumi.Any(databaseSnapshotDefinedTags),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    		})
    		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 testDatabaseSnapshot = new Oci.Database.DatabaseSnapshot("test_database_snapshot", new()
        {
            DatabaseId = testDatabase.Id,
            Name = databaseSnapshotName,
            DefinedTags = databaseSnapshotDefinedTags,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.DatabaseSnapshot;
    import com.pulumi.oci.Database.DatabaseSnapshotArgs;
    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 testDatabaseSnapshot = new DatabaseSnapshot("testDatabaseSnapshot", DatabaseSnapshotArgs.builder()
                .databaseId(testDatabase.get("id"))
                .name(databaseSnapshotName)
                .definedTags(databaseSnapshotDefinedTags)
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testDatabaseSnapshot:
        type: oci:Database:DatabaseSnapshot
        name: test_database_snapshot
        properties:
          databaseId: ${testDatabase.id}
          name: ${databaseSnapshotName}
          definedTags: ${databaseSnapshotDefinedTags}
          freeformTags:
            Department: Finance
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_database_database_snapshot" "test_database_snapshot" {
      lifecycle {
        create_before_destroy = true
      }
      database_id  = testDatabase.id
      name         = databaseSnapshotName
      defined_tags = databaseSnapshotDefinedTags
      freeform_tags = {
        "Department" = "Finance"
      }
    }
    

    Create DatabaseSnapshot Resource

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

    Constructor syntax

    new DatabaseSnapshot(name: string, args: DatabaseSnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def DatabaseSnapshot(resource_name: str,
                         args: DatabaseSnapshotArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DatabaseSnapshot(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         database_id: Optional[str] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None)
    func NewDatabaseSnapshot(ctx *Context, name string, args DatabaseSnapshotArgs, opts ...ResourceOption) (*DatabaseSnapshot, error)
    public DatabaseSnapshot(string name, DatabaseSnapshotArgs args, CustomResourceOptions? opts = null)
    public DatabaseSnapshot(String name, DatabaseSnapshotArgs args)
    public DatabaseSnapshot(String name, DatabaseSnapshotArgs args, CustomResourceOptions options)
    
    type: oci:Database:DatabaseSnapshot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_database_database_snapshot" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DatabaseSnapshotArgs
    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 DatabaseSnapshotArgs
    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 DatabaseSnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatabaseSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatabaseSnapshotArgs
    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 databaseSnapshotResource = new Oci.Database.DatabaseSnapshot("databaseSnapshotResource", new()
    {
        DatabaseId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        Name = "string",
    });
    
    example, err := database.NewDatabaseSnapshot(ctx, "databaseSnapshotResource", &database.DatabaseSnapshotArgs{
    	DatabaseId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    resource "oci_database_database_snapshot" "databaseSnapshotResource" {
      lifecycle {
        create_before_destroy = true
      }
      database_id = "string"
      defined_tags = {
        "string" = "string"
      }
      freeform_tags = {
        "string" = "string"
      }
      name = "string"
    }
    
    var databaseSnapshotResource = new DatabaseSnapshot("databaseSnapshotResource", DatabaseSnapshotArgs.builder()
        .databaseId("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .name("string")
        .build());
    
    database_snapshot_resource = oci.database.DatabaseSnapshot("databaseSnapshotResource",
        database_id="string",
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        name="string")
    
    const databaseSnapshotResource = new oci.database.DatabaseSnapshot("databaseSnapshotResource", {
        databaseId: "string",
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        name: "string",
    });
    
    type: oci:Database:DatabaseSnapshot
    properties:
        databaseId: string
        definedTags:
            string: string
        freeformTags:
            string: string
        name: string
    

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

    DatabaseId string
    The OCID of the Exadata Database.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DatabaseId string
    The OCID of the Exadata Database.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    database_id string
    The OCID of the Exadata Database.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    databaseId String
    The OCID of the Exadata Database.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    name String

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    databaseId string
    The OCID of the Exadata Database.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    database_id str
    The OCID of the Exadata Database.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    name str

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    databaseId String
    The OCID of the Exadata Database.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    name String

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

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

    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    State string
    The current state of the Exadata Database Snapshot.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    State string
    The current state of the Exadata Database Snapshot.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    cluster_id string
    The OCID of the VM cluster.
    compartment_id string
    The OCID of the compartment.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycle_details string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    state string
    The current state of the Exadata Database Snapshot.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    time_created string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    state String
    The current state of the Exadata Database Snapshot.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId string
    The OCID of the VM cluster.
    compartmentId string
    The OCID of the compartment.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    state string
    The current state of the Exadata Database Snapshot.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    cluster_id str
    The OCID of the VM cluster.
    compartment_id str
    The OCID of the compartment.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    state str
    The current state of the Exadata Database Snapshot.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    time_created str
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    state String
    The current state of the Exadata Database Snapshot.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z

    Look up Existing DatabaseSnapshot Resource

    Get an existing DatabaseSnapshot 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?: DatabaseSnapshotState, opts?: CustomResourceOptions): DatabaseSnapshot
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            compartment_id: Optional[str] = None,
            database_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            lifecycle_details: Optional[str] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None) -> DatabaseSnapshot
    func GetDatabaseSnapshot(ctx *Context, name string, id IDInput, state *DatabaseSnapshotState, opts ...ResourceOption) (*DatabaseSnapshot, error)
    public static DatabaseSnapshot Get(string name, Input<string> id, DatabaseSnapshotState? state, CustomResourceOptions? opts = null)
    public static DatabaseSnapshot get(String name, Output<String> id, DatabaseSnapshotState state, CustomResourceOptions options)
    resources:  _:    type: oci:Database:DatabaseSnapshot    get:      id: ${id}
    import {
      to = oci_database_database_snapshot.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:
    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    DatabaseId string
    The OCID of the Exadata Database.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    Name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The current state of the Exadata Database Snapshot.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    DatabaseId string
    The OCID of the Exadata Database.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    Name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The current state of the Exadata Database Snapshot.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    TimeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    cluster_id string
    The OCID of the VM cluster.
    compartment_id string
    The OCID of the compartment.
    database_id string
    The OCID of the Exadata Database.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    The current state of the Exadata Database Snapshot.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    time_created string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    databaseId String
    The OCID of the Exadata Database.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    name String

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The current state of the Exadata Database Snapshot.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId string
    The OCID of the VM cluster.
    compartmentId string
    The OCID of the compartment.
    databaseId string
    The OCID of the Exadata Database.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    name string

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    The current state of the Exadata Database Snapshot.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated string
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    cluster_id str
    The OCID of the VM cluster.
    compartment_id str
    The OCID of the compartment.
    database_id str
    The OCID of the Exadata Database.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details str
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    name str

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str
    The current state of the Exadata Database Snapshot.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    time_created str
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    databaseId String
    The OCID of the Exadata Database.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Snapshot.
    name String

    The user-friendly name for the Database Snapshot. The name should be unique.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The current state of the Exadata Database Snapshot.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    timeCreated String
    The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z

    Import

    DatabaseSnapshots can be imported using the id, e.g.

    $ pulumi import oci:Database/databaseSnapshot:DatabaseSnapshot test_database_snapshot "id"
    

    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.7.0
    published on Thursday, Nov 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial