Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Database.getDbNodeSnapshots
Start a Neo task
Explain and create an oci.Database.getDbNodeSnapshots resource
This data source provides the list of Db Node Snapshots in Oracle Cloud Infrastructure Database service.
Gets a list of the Exadata Database Node Snapshots in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbNodeSnapshots = oci.Database.getDbNodeSnapshots({
compartmentId: compartmentId,
clusterId: testDbNodeSnapshotManagement.exadbVmClusterId,
name: testDbNodeSnapshotManagement.snapshots[0].name,
sourceDbnodeId: testDbNodeSnapshotManagement.snapshots[0].sourceDbnodeId,
state: testDbNodeSnapshotManagement.snapshots[0].state,
});
import pulumi
import pulumi_oci as oci
test_db_node_snapshots = oci.Database.get_db_node_snapshots(compartment_id=compartment_id,
cluster_id=test_db_node_snapshot_management["exadbVmClusterId"],
name=test_db_node_snapshot_management["snapshots"][0]["name"],
source_dbnode_id=test_db_node_snapshot_management["snapshots"][0]["sourceDbnodeId"],
state=test_db_node_snapshot_management["snapshots"][0]["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.GetDbNodeSnapshots(ctx, &database.GetDbNodeSnapshotsArgs{
CompartmentId: compartmentId,
ClusterId: pulumi.StringRef(testDbNodeSnapshotManagement.ExadbVmClusterId),
Name: pulumi.StringRef(testDbNodeSnapshotManagement.Snapshots[0].Name),
SourceDbnodeId: pulumi.StringRef(testDbNodeSnapshotManagement.Snapshots[0].SourceDbnodeId),
State: pulumi.StringRef(testDbNodeSnapshotManagement.Snapshots[0].State),
}, 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 testDbNodeSnapshots = Oci.Database.GetDbNodeSnapshots.Invoke(new()
{
CompartmentId = compartmentId,
ClusterId = testDbNodeSnapshotManagement.ExadbVmClusterId,
Name = testDbNodeSnapshotManagement.Snapshots[0].Name,
SourceDbnodeId = testDbNodeSnapshotManagement.Snapshots[0].SourceDbnodeId,
State = testDbNodeSnapshotManagement.Snapshots[0].State,
});
});
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.GetDbNodeSnapshotsArgs;
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 testDbNodeSnapshots = DatabaseFunctions.getDbNodeSnapshots(GetDbNodeSnapshotsArgs.builder()
.compartmentId(compartmentId)
.clusterId(testDbNodeSnapshotManagement.exadbVmClusterId())
.name(testDbNodeSnapshotManagement.snapshots()[0].name())
.sourceDbnodeId(testDbNodeSnapshotManagement.snapshots()[0].sourceDbnodeId())
.state(testDbNodeSnapshotManagement.snapshots()[0].state())
.build());
}
}
variables:
testDbNodeSnapshots:
fn::invoke:
function: oci:Database:getDbNodeSnapshots
arguments:
compartmentId: ${compartmentId}
clusterId: ${testDbNodeSnapshotManagement.exadbVmClusterId}
name: ${testDbNodeSnapshotManagement.snapshots[0].name}
sourceDbnodeId: ${testDbNodeSnapshotManagement.snapshots[0].sourceDbnodeId}
state: ${testDbNodeSnapshotManagement.snapshots[0].state}
Using getDbNodeSnapshots
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 getDbNodeSnapshots(args: GetDbNodeSnapshotsArgs, opts?: InvokeOptions): Promise<GetDbNodeSnapshotsResult>
function getDbNodeSnapshotsOutput(args: GetDbNodeSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetDbNodeSnapshotsResult>def get_db_node_snapshots(cluster_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetDbNodeSnapshotsFilter]] = None,
name: Optional[str] = None,
source_dbnode_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbNodeSnapshotsResult
def get_db_node_snapshots_output(cluster_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbNodeSnapshotsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
source_dbnode_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeSnapshotsResult]func GetDbNodeSnapshots(ctx *Context, args *GetDbNodeSnapshotsArgs, opts ...InvokeOption) (*GetDbNodeSnapshotsResult, error)
func GetDbNodeSnapshotsOutput(ctx *Context, args *GetDbNodeSnapshotsOutputArgs, opts ...InvokeOption) GetDbNodeSnapshotsResultOutput> Note: This function is named GetDbNodeSnapshots in the Go SDK.
public static class GetDbNodeSnapshots
{
public static Task<GetDbNodeSnapshotsResult> InvokeAsync(GetDbNodeSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetDbNodeSnapshotsResult> Invoke(GetDbNodeSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbNodeSnapshotsResult> getDbNodeSnapshots(GetDbNodeSnapshotsArgs args, InvokeOptions options)
public static Output<GetDbNodeSnapshotsResult> getDbNodeSnapshots(GetDbNodeSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getDbNodeSnapshots:getDbNodeSnapshots
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Filters
List<Get
Db Node Snapshots Filter> - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- State string
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
- Compartment
Id string - The compartment OCID.
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Filters
[]Get
Db Node Snapshots Filter - Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- State string
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
- compartment
Id String - The compartment OCID.
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- filters
List<Get
Db Node Snapshots Filter> - name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode StringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state String
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
- compartment
Id string - The compartment OCID.
- cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- filters
Get
Db Node Snapshots Filter[] - name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state string
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
- compartment_
id str - The compartment OCID.
- cluster_
id str - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- filters
Sequence[Get
Db Node Snapshots Filter] - name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source_
dbnode_ strid - A filter to return only Exadata Database Snapshots that match the given database node.
- state str
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
- compartment
Id String - The compartment OCID.
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- filters List<Property Map>
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode StringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state String
- A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.
getDbNodeSnapshots Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Dbnode
Snapshots List<GetDb Node Snapshots Dbnode Snapshot> - The list of dbnode_snapshots.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Id string - The OCID of the VM cluster.
- Filters
List<Get
Db Node Snapshots Filter> - Name string
- Volume Name
- Source
Dbnode stringId - The OCID of the Exadata Database Node.
- State string
- The current state of the Exadata Database Node Snapshot.
- Compartment
Id string - The OCID of the compartment.
- Dbnode
Snapshots []GetDb Node Snapshots Dbnode Snapshot - The list of dbnode_snapshots.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Id string - The OCID of the VM cluster.
- Filters
[]Get
Db Node Snapshots Filter - Name string
- Volume Name
- Source
Dbnode stringId - The OCID of the Exadata Database Node.
- State string
- The current state of the Exadata Database Node Snapshot.
- compartment
Id String - The OCID of the compartment.
- dbnode
Snapshots List<GetDb Node Snapshots Dbnode Snapshot> - The list of dbnode_snapshots.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Id String - The OCID of the VM cluster.
- filters
List<Get
Db Node Snapshots Filter> - name String
- Volume Name
- source
Dbnode StringId - The OCID of the Exadata Database Node.
- state String
- The current state of the Exadata Database Node Snapshot.
- compartment
Id string - The OCID of the compartment.
- dbnode
Snapshots GetDb Node Snapshots Dbnode Snapshot[] - The list of dbnode_snapshots.
- id string
- The provider-assigned unique ID for this managed resource.
- cluster
Id string - The OCID of the VM cluster.
- filters
Get
Db Node Snapshots Filter[] - name string
- Volume Name
- source
Dbnode stringId - The OCID of the Exadata Database Node.
- state string
- The current state of the Exadata Database Node Snapshot.
- compartment_
id str - The OCID of the compartment.
- dbnode_
snapshots Sequence[GetDb Node Snapshots Dbnode Snapshot] - The list of dbnode_snapshots.
- id str
- The provider-assigned unique ID for this managed resource.
- cluster_
id str - The OCID of the VM cluster.
- filters
Sequence[Get
Db Node Snapshots Filter] - name str
- Volume Name
- source_
dbnode_ strid - The OCID of the Exadata Database Node.
- state str
- The current state of the Exadata Database Node Snapshot.
- compartment
Id String - The OCID of the compartment.
- dbnode
Snapshots List<Property Map> - The list of dbnode_snapshots.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Id String - The OCID of the VM cluster.
- filters List<Property Map>
- name String
- Volume Name
- source
Dbnode StringId - The OCID of the Exadata Database Node.
- state String
- The current state of the Exadata Database Node Snapshot.
Supporting Types
GetDbNodeSnapshotsDbnodeSnapshot
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- Dbnode
Snapshot stringId - The OCID of the Exadata Database Node Snapshot.
- 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 Database Node Snapshot.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- Mount
Dbnode stringId - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - Mount
Points List<GetDb Node Snapshots Dbnode Snapshot Mount Point> - Details of the mount points
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- State string
- A filter to return only Exadata 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 Database Node Snapshot was created.
- Volumes
List<Get
Db Node Snapshots Dbnode Snapshot Volume> - Details of the volumes
- Cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- Compartment
Id string - The compartment OCID.
- Dbnode
Snapshot stringId - The OCID of the Exadata Database Node Snapshot.
- 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 Database Node Snapshot.
- Lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- Mount
Dbnode stringId - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - Mount
Points []GetDb Node Snapshots Dbnode Snapshot Mount Point - Details of the mount points
- Name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- Source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- State string
- A filter to return only Exadata 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 Database Node Snapshot was created.
- Volumes
[]Get
Db Node Snapshots Dbnode Snapshot Volume - Details of the volumes
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- dbnode
Snapshot StringId - The OCID of the Exadata Database Node Snapshot.
- 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 Database Node Snapshot.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- mount
Dbnode StringId - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - mount
Points List<GetDb Node Snapshots Dbnode Snapshot Mount Point> - Details of the mount points
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode StringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state String
- A filter to return only Exadata 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 Database Node Snapshot was created.
- volumes
List<Get
Db Node Snapshots Dbnode Snapshot Volume> - Details of the volumes
- cluster
Id string - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id string - The compartment OCID.
- dbnode
Snapshot stringId - The OCID of the Exadata Database Node Snapshot.
- {[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 Database Node Snapshot.
- lifecycle
Details string - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- mount
Dbnode stringId - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - mount
Points GetDb Node Snapshots Dbnode Snapshot Mount Point[] - Details of the mount points
- name string
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode stringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state string
- A filter to return only Exadata 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 Database Node Snapshot was created.
- volumes
Get
Db Node Snapshots Dbnode Snapshot Volume[] - Details of the volumes
- cluster_
id str - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment_
id str - The compartment OCID.
- dbnode_
snapshot_ strid - The OCID of the Exadata Database Node Snapshot.
- 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 Database Node Snapshot.
- lifecycle_
details str - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- mount_
dbnode_ strid - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - mount_
points Sequence[GetDb Node Snapshots Dbnode Snapshot Mount Point] - Details of the mount points
- name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source_
dbnode_ strid - A filter to return only Exadata Database Snapshots that match the given database node.
- state str
- A filter to return only Exadata 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 Database Node Snapshot was created.
- volumes
Sequence[Get
Db Node Snapshots Dbnode Snapshot Volume] - Details of the volumes
- cluster
Id String - A filter to return only Exadata Database Node Snapshots that match the given VM cluster.
- compartment
Id String - The compartment OCID.
- dbnode
Snapshot StringId - The OCID of the Exadata Database Node Snapshot.
- 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 Database Node Snapshot.
- lifecycle
Details String - Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
- mount
Dbnode StringId - The OCID of the Exadata Database Node to which the snapshot is mounted. If the snapshot is not mounted to any node, then the value of
mount_dbnode_idwill be"null". - mount
Points List<Property Map> - Details of the mount points
- name String
- A filter to return only resources that match the entire name given. The match is not case sensitive.
- source
Dbnode StringId - A filter to return only Exadata Database Snapshots that match the given database node.
- state String
- A filter to return only Exadata 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 Database Node Snapshot was created.
- volumes List<Property Map>
- Details of the volumes
GetDbNodeSnapshotsDbnodeSnapshotMountPoint
- db_
node_ strid - The OCID of the Exadata Database Node where snapshot was mounted.
- name str
- A filter to return only resources that match the entire name given. The match is not case sensitive.
GetDbNodeSnapshotsDbnodeSnapshotVolume
GetDbNodeSnapshotsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
