1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getPluggableDatabaseSnapshot
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.Database.getPluggableDatabaseSnapshot

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This data source provides details about a specific Pluggable Database Snapshot resource in Oracle Cloud Infrastructure Database service.

    Gets information about the specified Exadata Pluggable Database Snapshot in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPluggableDatabaseSnapshot = oci.Database.getPluggableDatabaseSnapshot({
        pluggableDatabaseSnapshotId: testPluggableDatabaseSnapshotOciDatabasePluggableDatabaseSnapshot.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_pluggable_database_snapshot = oci.Database.get_pluggable_database_snapshot(pluggable_database_snapshot_id=test_pluggable_database_snapshot_oci_database_pluggable_database_snapshot["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.GetPluggableDatabaseSnapshot(ctx, &database.GetPluggableDatabaseSnapshotArgs{
    			PluggableDatabaseSnapshotId: testPluggableDatabaseSnapshotOciDatabasePluggableDatabaseSnapshot.Id,
    		}, 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 testPluggableDatabaseSnapshot = Oci.Database.GetPluggableDatabaseSnapshot.Invoke(new()
        {
            PluggableDatabaseSnapshotId = testPluggableDatabaseSnapshotOciDatabasePluggableDatabaseSnapshot.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.DatabaseFunctions;
    import com.pulumi.oci.Database.inputs.GetPluggableDatabaseSnapshotArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 testPluggableDatabaseSnapshot = DatabaseFunctions.getPluggableDatabaseSnapshot(GetPluggableDatabaseSnapshotArgs.builder()
                .pluggableDatabaseSnapshotId(testPluggableDatabaseSnapshotOciDatabasePluggableDatabaseSnapshot.id())
                .build());
    
        }
    }
    
    variables:
      testPluggableDatabaseSnapshot:
        fn::invoke:
          function: oci:Database:getPluggableDatabaseSnapshot
          arguments:
            pluggableDatabaseSnapshotId: ${testPluggableDatabaseSnapshotOciDatabasePluggableDatabaseSnapshot.id}
    

    Using getPluggableDatabaseSnapshot

    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 getPluggableDatabaseSnapshot(args: GetPluggableDatabaseSnapshotArgs, opts?: InvokeOptions): Promise<GetPluggableDatabaseSnapshotResult>
    function getPluggableDatabaseSnapshotOutput(args: GetPluggableDatabaseSnapshotOutputArgs, opts?: InvokeOptions): Output<GetPluggableDatabaseSnapshotResult>
    def get_pluggable_database_snapshot(pluggable_database_snapshot_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetPluggableDatabaseSnapshotResult
    def get_pluggable_database_snapshot_output(pluggable_database_snapshot_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetPluggableDatabaseSnapshotResult]
    func LookupPluggableDatabaseSnapshot(ctx *Context, args *LookupPluggableDatabaseSnapshotArgs, opts ...InvokeOption) (*LookupPluggableDatabaseSnapshotResult, error)
    func LookupPluggableDatabaseSnapshotOutput(ctx *Context, args *LookupPluggableDatabaseSnapshotOutputArgs, opts ...InvokeOption) LookupPluggableDatabaseSnapshotResultOutput

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

    public static class GetPluggableDatabaseSnapshot 
    {
        public static Task<GetPluggableDatabaseSnapshotResult> InvokeAsync(GetPluggableDatabaseSnapshotArgs args, InvokeOptions? opts = null)
        public static Output<GetPluggableDatabaseSnapshotResult> Invoke(GetPluggableDatabaseSnapshotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPluggableDatabaseSnapshotResult> getPluggableDatabaseSnapshot(GetPluggableDatabaseSnapshotArgs args, InvokeOptions options)
    public static Output<GetPluggableDatabaseSnapshotResult> getPluggableDatabaseSnapshot(GetPluggableDatabaseSnapshotArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Database/getPluggableDatabaseSnapshot:getPluggableDatabaseSnapshot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PluggableDatabaseSnapshotId string
    The Exadata Pluggable Database Snapshot OCID.
    PluggableDatabaseSnapshotId string
    The Exadata Pluggable Database Snapshot OCID.
    pluggableDatabaseSnapshotId String
    The Exadata Pluggable Database Snapshot OCID.
    pluggableDatabaseSnapshotId string
    The Exadata Pluggable Database Snapshot OCID.
    pluggable_database_snapshot_id str
    The Exadata Pluggable Database Snapshot OCID.
    pluggableDatabaseSnapshotId String
    The Exadata Pluggable Database Snapshot OCID.

    getPluggableDatabaseSnapshot Result

    The following output properties are available:

    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, string>
    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"}
    Id string
    The OCID of the Exadata Pluggable Database Snapshot.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    Name string
    The user-friendly name for the Database Snapshot. The name should be unique.
    PluggableDatabaseId string
    The OCID of the Exadata Pluggable Database.
    PluggableDatabaseSnapshotId string
    State string
    The current state of the Exadata Pluggable 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 Pluggable 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.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]string
    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"}
    Id string
    The OCID of the Exadata Pluggable Database Snapshot.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    Name string
    The user-friendly name for the Database Snapshot. The name should be unique.
    PluggableDatabaseId string
    The OCID of the Exadata Pluggable Database.
    PluggableDatabaseSnapshotId string
    State string
    The current state of the Exadata Pluggable 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 Pluggable 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.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,String>
    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"}
    id String
    The OCID of the Exadata Pluggable Database Snapshot.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    name String
    The user-friendly name for the Database Snapshot. The name should be unique.
    pluggableDatabaseId String
    The OCID of the Exadata Pluggable Database.
    pluggableDatabaseSnapshotId String
    state String
    The current state of the Exadata Pluggable 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 Pluggable 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.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: string}
    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"}
    id string
    The OCID of the Exadata Pluggable Database Snapshot.
    lifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    name string
    The user-friendly name for the Database Snapshot. The name should be unique.
    pluggableDatabaseId string
    The OCID of the Exadata Pluggable Database.
    pluggableDatabaseSnapshotId string
    state string
    The current state of the Exadata Pluggable 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 Pluggable 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.
    defined_tags Mapping[str, str]
    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]
    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"}
    id str
    The OCID of the Exadata Pluggable Database Snapshot.
    lifecycle_details str
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    name str
    The user-friendly name for the Database Snapshot. The name should be unique.
    pluggable_database_id str
    The OCID of the Exadata Pluggable Database.
    pluggable_database_snapshot_id str
    state str
    The current state of the Exadata Pluggable 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 Pluggable 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.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String>
    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"}
    id String
    The OCID of the Exadata Pluggable Database Snapshot.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
    name String
    The user-friendly name for the Database Snapshot. The name should be unique.
    pluggableDatabaseId String
    The OCID of the Exadata Pluggable Database.
    pluggableDatabaseSnapshotId String
    state String
    The current state of the Exadata Pluggable 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 Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z

    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.7.0 published on Saturday, Sep 13, 2025 by Pulumi