Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Database.getPluggableDatabaseSnapshots
This data source provides the list of Pluggable Database Snapshots in Oracle Cloud Infrastructure Database service.
Gets a list of the Exadata Pluggable Database Snapshots in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPluggableDatabaseSnapshots = oci.Database.getPluggableDatabaseSnapshots({
clusterId: testCluster.id,
compartmentId: compartmentId,
name: pluggableDatabaseSnapshotName,
pluggableDatabaseId: testPluggableDatabase.id,
state: pluggableDatabaseSnapshotState,
});
import pulumi
import pulumi_oci as oci
test_pluggable_database_snapshots = oci.Database.get_pluggable_database_snapshots(cluster_id=test_cluster["id"],
compartment_id=compartment_id,
name=pluggable_database_snapshot_name,
pluggable_database_id=test_pluggable_database["id"],
state=pluggable_database_snapshot_state)
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.GetPluggableDatabaseSnapshots(ctx, &database.GetPluggableDatabaseSnapshotsArgs{
ClusterId: pulumi.StringRef(testCluster.Id),
CompartmentId: pulumi.StringRef(compartmentId),
Name: pulumi.StringRef(pluggableDatabaseSnapshotName),
PluggableDatabaseId: pulumi.StringRef(testPluggableDatabase.Id),
State: pulumi.StringRef(pluggableDatabaseSnapshotState),
}, 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 testPluggableDatabaseSnapshots = Oci.Database.GetPluggableDatabaseSnapshots.Invoke(new()
{
ClusterId = testCluster.Id,
CompartmentId = compartmentId,
Name = pluggableDatabaseSnapshotName,
PluggableDatabaseId = testPluggableDatabase.Id,
State = pluggableDatabaseSnapshotState,
});
});
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.GetPluggableDatabaseSnapshotsArgs;
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 testPluggableDatabaseSnapshots = DatabaseFunctions.getPluggableDatabaseSnapshots(GetPluggableDatabaseSnapshotsArgs.builder()
.clusterId(testCluster.id())
.compartmentId(compartmentId)
.name(pluggableDatabaseSnapshotName)
.pluggableDatabaseId(testPluggableDatabase.id())
.state(pluggableDatabaseSnapshotState)
.build());
}
}
variables:
testPluggableDatabaseSnapshots:
fn::invoke:
function: oci:Database:getPluggableDatabaseSnapshots
arguments:
clusterId: ${testCluster.id}
compartmentId: ${compartmentId}
name: ${pluggableDatabaseSnapshotName}
pluggableDatabaseId: ${testPluggableDatabase.id}
state: ${pluggableDatabaseSnapshotState}
Using getPluggableDatabaseSnapshots
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 getPluggableDatabaseSnapshots(args: GetPluggableDatabaseSnapshotsArgs, opts?: InvokeOptions): Promise<GetPluggableDatabaseSnapshotsResult>
function getPluggableDatabaseSnapshotsOutput(args: GetPluggableDatabaseSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetPluggableDatabaseSnapshotsResult>def get_pluggable_database_snapshots(cluster_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetPluggableDatabaseSnapshotsFilter]] = None,
name: Optional[str] = None,
pluggable_database_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPluggableDatabaseSnapshotsResult
def get_pluggable_database_snapshots_output(cluster_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPluggableDatabaseSnapshotsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
pluggable_database_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPluggableDatabaseSnapshotsResult]func GetPluggableDatabaseSnapshots(ctx *Context, args *GetPluggableDatabaseSnapshotsArgs, opts ...InvokeOption) (*GetPluggableDatabaseSnapshotsResult, error)
func GetPluggableDatabaseSnapshotsOutput(ctx *Context, args *GetPluggableDatabaseSnapshotsOutputArgs, opts ...InvokeOption) GetPluggableDatabaseSnapshotsResultOutput> Note: This function is named GetPluggableDatabaseSnapshots in the Go SDK.
public static class GetPluggableDatabaseSnapshots
{
public static Task<GetPluggableDatabaseSnapshotsResult> InvokeAsync(GetPluggableDatabaseSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetPluggableDatabaseSnapshotsResult> Invoke(GetPluggableDatabaseSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPluggableDatabaseSnapshotsResult> getPluggableDatabaseSnapshots(GetPluggableDatabaseSnapshotsArgs args, InvokeOptions options)
public static Output<GetPluggableDatabaseSnapshotsResult> getPluggableDatabaseSnapshots(GetPluggableDatabaseSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getPluggableDatabaseSnapshots:getPluggableDatabaseSnapshots
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- Filters
List<Get
Pluggable Database Snapshots Filter> - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- State string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- Filters
[]Get
Pluggable Database Snapshots Filter - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- State string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- filters
List<Get
Pluggable Snapshots Filter> - name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database StringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state String
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id string - The compartment OCID.
- filters
Get
Pluggable Database Snapshots Filter[] - name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- cluster_
id str - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment_
id str - The compartment OCID.
- filters
Sequence[Get
Pluggable Database Snapshots Filter] - name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable_
database_ strid - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state str
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- filters List<Property Map>
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database StringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state String
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
getPluggableDatabaseSnapshots Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Pluggable
Database List<GetSnapshots Pluggable Database Snapshots Pluggable Database Snapshot> - The list of pluggable_database_snapshots.
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Pluggable Database Snapshots Filter> - Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- Pluggable
Database stringId - The OCID of the Exadata Pluggable Database.
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pluggable
Database []GetSnapshots Pluggable Database Snapshots Pluggable Database Snapshot - The list of pluggable_database_snapshots.
- Cluster
Id string - The OCID of the VM cluster.
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Pluggable Database Snapshots Filter - Name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- Pluggable
Database stringId - The OCID of the Exadata Pluggable Database.
- State string
- The current state of the Exadata Pluggable Database Snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- pluggable
Database List<GetSnapshots Pluggable Snapshots Pluggable Snapshot> - The list of pluggable_database_snapshots.
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Pluggable Snapshots Filter> - name String
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId - The OCID of the Exadata Pluggable Database.
- state String
- The current state of the Exadata Pluggable Database Snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- pluggable
Database GetSnapshots Pluggable Database Snapshots Pluggable Database Snapshot[] - The list of pluggable_database_snapshots.
- cluster
Id string - The OCID of the VM cluster.
- compartment
Id string - The OCID of the compartment.
- filters
Get
Pluggable Database Snapshots Filter[] - name string
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database stringId - The OCID of the Exadata Pluggable Database.
- state string
- The current state of the Exadata Pluggable Database Snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- pluggable_
database_ Sequence[Getsnapshots Pluggable Database Snapshots Pluggable Database Snapshot] - The list of pluggable_database_snapshots.
- cluster_
id str - The OCID of the VM cluster.
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[Get
Pluggable Database Snapshots Filter] - name str
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable_
database_ strid - The OCID of the Exadata Pluggable Database.
- state str
- The current state of the Exadata Pluggable Database Snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- pluggable
Database List<Property Map>Snapshots - The list of pluggable_database_snapshots.
- cluster
Id String - The OCID of the VM cluster.
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
- name String
- The user-friendly name for the Database Snapshot. The name should be unique.
- pluggable
Database StringId - The OCID of the Exadata Pluggable Database.
- state String
- The current state of the Exadata Pluggable Database Snapshot.
Supporting Types
GetPluggableDatabaseSnapshotsFilter
GetPluggableDatabaseSnapshotsPluggableDatabaseSnapshot
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- State string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- Dictionary<string, 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 Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- State string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- map[string]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 Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database StringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state String
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- Map<String,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 Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id string - The compartment OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[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.
- lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database stringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state string
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- {[key: string]: 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 Pluggable Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z
- cluster_
id str - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment_
id str - The compartment OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource 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
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable_
database_ strid - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state str
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- 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
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Pluggable Database Snapshot.
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- pluggable
Database StringId - A filter to return only Exadata Pluggable Database Snapshots that match the given database OCID.
- state String
- A filter to return only Exadata Pluggable Database Snapshots that match the given lifecycle state exactly.
- 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 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
ociTerraform Provider.
