1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNodeSnapshot
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.Database.getDbNodeSnapshot

Start a Neo task
Explain and create an oci.Database.getDbNodeSnapshot resource
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

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

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbNodeSnapshot = oci.Database.getDbNodeSnapshot({
        dbnodeSnapshotId: testSnapshot.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_node_snapshot = oci.Database.get_db_node_snapshot(dbnode_snapshot_id=test_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.GetDbNodeSnapshot(ctx, &database.GetDbNodeSnapshotArgs{
    			DbnodeSnapshotId: testSnapshot.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 testDbNodeSnapshot = Oci.Database.GetDbNodeSnapshot.Invoke(new()
        {
            DbnodeSnapshotId = testSnapshot.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.GetDbNodeSnapshotArgs;
    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 testDbNodeSnapshot = DatabaseFunctions.getDbNodeSnapshot(GetDbNodeSnapshotArgs.builder()
                .dbnodeSnapshotId(testSnapshot.id())
                .build());
    
        }
    }
    
    variables:
      testDbNodeSnapshot:
        fn::invoke:
          function: oci:Database:getDbNodeSnapshot
          arguments:
            dbnodeSnapshotId: ${testSnapshot.id}
    

    Using getDbNodeSnapshot

    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 getDbNodeSnapshot(args: GetDbNodeSnapshotArgs, opts?: InvokeOptions): Promise<GetDbNodeSnapshotResult>
    function getDbNodeSnapshotOutput(args: GetDbNodeSnapshotOutputArgs, opts?: InvokeOptions): Output<GetDbNodeSnapshotResult>
    def get_db_node_snapshot(dbnode_snapshot_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDbNodeSnapshotResult
    def get_db_node_snapshot_output(dbnode_snapshot_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeSnapshotResult]
    func LookupDbNodeSnapshot(ctx *Context, args *LookupDbNodeSnapshotArgs, opts ...InvokeOption) (*LookupDbNodeSnapshotResult, error)
    func LookupDbNodeSnapshotOutput(ctx *Context, args *LookupDbNodeSnapshotOutputArgs, opts ...InvokeOption) LookupDbNodeSnapshotResultOutput

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

    public static class GetDbNodeSnapshot 
    {
        public static Task<GetDbNodeSnapshotResult> InvokeAsync(GetDbNodeSnapshotArgs args, InvokeOptions? opts = null)
        public static Output<GetDbNodeSnapshotResult> Invoke(GetDbNodeSnapshotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbNodeSnapshotResult> getDbNodeSnapshot(GetDbNodeSnapshotArgs args, InvokeOptions options)
    public static Output<GetDbNodeSnapshotResult> getDbNodeSnapshot(GetDbNodeSnapshotArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Database/getDbNodeSnapshot:getDbNodeSnapshot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbnodeSnapshotId string
    The Exadata Database Node Snapshot OCID.
    DbnodeSnapshotId string
    The Exadata Database Node Snapshot OCID.
    dbnodeSnapshotId String
    The Exadata Database Node Snapshot OCID.
    dbnodeSnapshotId string
    The Exadata Database Node Snapshot OCID.
    dbnode_snapshot_id str
    The Exadata Database Node Snapshot OCID.
    dbnodeSnapshotId String
    The Exadata Database Node Snapshot OCID.

    getDbNodeSnapshot Result

    The following output properties are available:

    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    DbnodeSnapshotId string
    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 Database Node Snapshot.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    MountDbnodeId string
    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_id will be "null".
    MountPoints List<GetDbNodeSnapshotMountPoint>
    Details of the mount points
    Name string
    Volume Name
    SourceDbnodeId string
    The OCID of the Exadata Database Node.
    State string
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    Volumes List<GetDbNodeSnapshotVolume>
    Details of the volumes
    ClusterId string
    The OCID of the VM cluster.
    CompartmentId string
    The OCID of the compartment.
    DbnodeSnapshotId string
    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 Database Node Snapshot.
    LifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    MountDbnodeId string
    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_id will be "null".
    MountPoints []GetDbNodeSnapshotMountPoint
    Details of the mount points
    Name string
    Volume Name
    SourceDbnodeId string
    The OCID of the Exadata Database Node.
    State string
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    Volumes []GetDbNodeSnapshotVolume
    Details of the volumes
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    dbnodeSnapshotId String
    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 Database Node Snapshot.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    mountDbnodeId String
    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_id will be "null".
    mountPoints List<GetDbNodeSnapshotMountPoint>
    Details of the mount points
    name String
    Volume Name
    sourceDbnodeId String
    The OCID of the Exadata Database Node.
    state String
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    volumes List<GetDbNodeSnapshotVolume>
    Details of the volumes
    clusterId string
    The OCID of the VM cluster.
    compartmentId string
    The OCID of the compartment.
    dbnodeSnapshotId string
    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 Database Node Snapshot.
    lifecycleDetails string
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    mountDbnodeId string
    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_id will be "null".
    mountPoints GetDbNodeSnapshotMountPoint[]
    Details of the mount points
    name string
    Volume Name
    sourceDbnodeId string
    The OCID of the Exadata Database Node.
    state string
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    volumes GetDbNodeSnapshotVolume[]
    Details of the volumes
    cluster_id str
    The OCID of the VM cluster.
    compartment_id str
    The OCID of the compartment.
    dbnode_snapshot_id str
    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 Database Node Snapshot.
    lifecycle_details str
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    mount_dbnode_id str
    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_id will be "null".
    mount_points Sequence[GetDbNodeSnapshotMountPoint]
    Details of the mount points
    name str
    Volume Name
    source_dbnode_id str
    The OCID of the Exadata Database Node.
    state str
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    volumes Sequence[GetDbNodeSnapshotVolume]
    Details of the volumes
    clusterId String
    The OCID of the VM cluster.
    compartmentId String
    The OCID of the compartment.
    dbnodeSnapshotId String
    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 Database Node Snapshot.
    lifecycleDetails String
    Additional information about the current lifecycle state of the Exadata Database Node Snapshot.
    mountDbnodeId String
    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_id will be "null".
    mountPoints List<Property Map>
    Details of the mount points
    name String
    Volume Name
    sourceDbnodeId String
    The OCID of the Exadata Database Node.
    state String
    The current state of the Exadata Database Node 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 Node Snapshot was created.
    volumes List<Property Map>
    Details of the volumes

    Supporting Types

    GetDbNodeSnapshotMountPoint

    DbNodeId string
    The OCID of the Exadata Database Node where snapshot was mounted.
    Name string
    Volume Name
    DbNodeId string
    The OCID of the Exadata Database Node where snapshot was mounted.
    Name string
    Volume Name
    dbNodeId String
    The OCID of the Exadata Database Node where snapshot was mounted.
    name String
    Volume Name
    dbNodeId string
    The OCID of the Exadata Database Node where snapshot was mounted.
    name string
    Volume Name
    db_node_id str
    The OCID of the Exadata Database Node where snapshot was mounted.
    name str
    Volume Name
    dbNodeId String
    The OCID of the Exadata Database Node where snapshot was mounted.
    name String
    Volume Name

    GetDbNodeSnapshotVolume

    Name string
    Volume Name
    Size int
    Volume Size
    Name string
    Volume Name
    Size int
    Volume Size
    name String
    Volume Name
    size Integer
    Volume Size
    name string
    Volume Name
    size number
    Volume Size
    name str
    Volume Name
    size int
    Volume Size
    name String
    Volume Name
    size Number
    Volume Size

    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.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate