1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNode
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.Database.getDbNode

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

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

    Gets information about the specified database node.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbNode = oci.Database.getDbNode({
        dbNodeId: dbNodeId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_node = oci.Database.get_db_node(db_node_id=db_node_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.GetDbNode(ctx, &database.GetDbNodeArgs{
    			DbNodeId: dbNodeId,
    		}, 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 testDbNode = Oci.Database.GetDbNode.Invoke(new()
        {
            DbNodeId = dbNodeId,
        });
    
    });
    
    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.GetDbNodeArgs;
    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 testDbNode = DatabaseFunctions.getDbNode(GetDbNodeArgs.builder()
                .dbNodeId(dbNodeId)
                .build());
    
        }
    }
    
    variables:
      testDbNode:
        fn::invoke:
          Function: oci:Database:getDbNode
          Arguments:
            dbNodeId: ${dbNodeId}
    

    Using getDbNode

    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 getDbNode(args: GetDbNodeArgs, opts?: InvokeOptions): Promise<GetDbNodeResult>
    function getDbNodeOutput(args: GetDbNodeOutputArgs, opts?: InvokeOptions): Output<GetDbNodeResult>
    def get_db_node(db_node_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDbNodeResult
    def get_db_node_output(db_node_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeResult]
    func GetDbNode(ctx *Context, args *GetDbNodeArgs, opts ...InvokeOption) (*GetDbNodeResult, error)
    func GetDbNodeOutput(ctx *Context, args *GetDbNodeOutputArgs, opts ...InvokeOption) GetDbNodeResultOutput

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

    public static class GetDbNode 
    {
        public static Task<GetDbNodeResult> InvokeAsync(GetDbNodeArgs args, InvokeOptions? opts = null)
        public static Output<GetDbNodeResult> Invoke(GetDbNodeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbNodeResult> getDbNode(GetDbNodeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getDbNode:getDbNode
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbNodeId string
    The database node OCID.
    DbNodeId string
    The database node OCID.
    dbNodeId String
    The database node OCID.
    dbNodeId string
    The database node OCID.
    db_node_id str
    The database node OCID.
    dbNodeId String
    The database node OCID.

    getDbNode Result

    The following output properties are available:

    AdditionalDetails string
    Additional information about the planned maintenance.
    BackupIpId string
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    BackupVnic2id string
    The OCID of the second backup VNIC.
    BackupVnicId string
    The OCID of the backup VNIC.
    CpuCoreCount int
    The number of CPU cores enabled on the Db node.
    DbNodeId string
    DbNodeStorageSizeInGbs int
    The allocated local node storage in GBs on the Db node.
    DbServerId string
    The OCID of the Exacc Db server associated with the database node.
    DbSystemId string
    The OCID of the DB system.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FaultDomain string
    The name of the Fault Domain the instance is contained in.
    FreeformTags Dictionary<string, object>
    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"}
    HostIpId string
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    Hostname string
    The host name for the database node.
    Id string
    The OCID of the database node.
    LifecycleDetails string
    Information about the current lifecycle state.
    MaintenanceType string
    The type of database node maintenance.
    MemorySizeInGbs int
    The allocated memory in GBs on the Db node.
    SoftwareStorageSizeInGb int
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    State string
    The current state of the database node.
    TimeCreated string
    The date and time that the database node was created.
    TimeMaintenanceWindowEnd string
    End date and time of maintenance window.
    TimeMaintenanceWindowStart string
    Start date and time of maintenance window.
    TotalCpuCoreCount int
    The total number of CPU cores reserved on the Db node.
    Vnic2id string
    The OCID of the second VNIC.
    VnicId string
    The OCID of the VNIC.
    AdditionalDetails string
    Additional information about the planned maintenance.
    BackupIpId string
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    BackupVnic2id string
    The OCID of the second backup VNIC.
    BackupVnicId string
    The OCID of the backup VNIC.
    CpuCoreCount int
    The number of CPU cores enabled on the Db node.
    DbNodeId string
    DbNodeStorageSizeInGbs int
    The allocated local node storage in GBs on the Db node.
    DbServerId string
    The OCID of the Exacc Db server associated with the database node.
    DbSystemId string
    The OCID of the DB system.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FaultDomain string
    The name of the Fault Domain the instance is contained in.
    FreeformTags map[string]interface{}
    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"}
    HostIpId string
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    Hostname string
    The host name for the database node.
    Id string
    The OCID of the database node.
    LifecycleDetails string
    Information about the current lifecycle state.
    MaintenanceType string
    The type of database node maintenance.
    MemorySizeInGbs int
    The allocated memory in GBs on the Db node.
    SoftwareStorageSizeInGb int
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    State string
    The current state of the database node.
    TimeCreated string
    The date and time that the database node was created.
    TimeMaintenanceWindowEnd string
    End date and time of maintenance window.
    TimeMaintenanceWindowStart string
    Start date and time of maintenance window.
    TotalCpuCoreCount int
    The total number of CPU cores reserved on the Db node.
    Vnic2id string
    The OCID of the second VNIC.
    VnicId string
    The OCID of the VNIC.
    additionalDetails String
    Additional information about the planned maintenance.
    backupIpId String
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    backupVnic2id String
    The OCID of the second backup VNIC.
    backupVnicId String
    The OCID of the backup VNIC.
    cpuCoreCount Integer
    The number of CPU cores enabled on the Db node.
    dbNodeId String
    dbNodeStorageSizeInGbs Integer
    The allocated local node storage in GBs on the Db node.
    dbServerId String
    The OCID of the Exacc Db server associated with the database node.
    dbSystemId String
    The OCID of the DB system.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    faultDomain String
    The name of the Fault Domain the instance is contained in.
    freeformTags Map<String,Object>
    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"}
    hostIpId String
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    hostname String
    The host name for the database node.
    id String
    The OCID of the database node.
    lifecycleDetails String
    Information about the current lifecycle state.
    maintenanceType String
    The type of database node maintenance.
    memorySizeInGbs Integer
    The allocated memory in GBs on the Db node.
    softwareStorageSizeInGb Integer
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    state String
    The current state of the database node.
    timeCreated String
    The date and time that the database node was created.
    timeMaintenanceWindowEnd String
    End date and time of maintenance window.
    timeMaintenanceWindowStart String
    Start date and time of maintenance window.
    totalCpuCoreCount Integer
    The total number of CPU cores reserved on the Db node.
    vnic2id String
    The OCID of the second VNIC.
    vnicId String
    The OCID of the VNIC.
    additionalDetails string
    Additional information about the planned maintenance.
    backupIpId string
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    backupVnic2id string
    The OCID of the second backup VNIC.
    backupVnicId string
    The OCID of the backup VNIC.
    cpuCoreCount number
    The number of CPU cores enabled on the Db node.
    dbNodeId string
    dbNodeStorageSizeInGbs number
    The allocated local node storage in GBs on the Db node.
    dbServerId string
    The OCID of the Exacc Db server associated with the database node.
    dbSystemId string
    The OCID of the DB system.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    faultDomain string
    The name of the Fault Domain the instance is contained in.
    freeformTags {[key: string]: any}
    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"}
    hostIpId string
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    hostname string
    The host name for the database node.
    id string
    The OCID of the database node.
    lifecycleDetails string
    Information about the current lifecycle state.
    maintenanceType string
    The type of database node maintenance.
    memorySizeInGbs number
    The allocated memory in GBs on the Db node.
    softwareStorageSizeInGb number
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    state string
    The current state of the database node.
    timeCreated string
    The date and time that the database node was created.
    timeMaintenanceWindowEnd string
    End date and time of maintenance window.
    timeMaintenanceWindowStart string
    Start date and time of maintenance window.
    totalCpuCoreCount number
    The total number of CPU cores reserved on the Db node.
    vnic2id string
    The OCID of the second VNIC.
    vnicId string
    The OCID of the VNIC.
    additional_details str
    Additional information about the planned maintenance.
    backup_ip_id str
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    backup_vnic2id str
    The OCID of the second backup VNIC.
    backup_vnic_id str
    The OCID of the backup VNIC.
    cpu_core_count int
    The number of CPU cores enabled on the Db node.
    db_node_id str
    db_node_storage_size_in_gbs int
    The allocated local node storage in GBs on the Db node.
    db_server_id str
    The OCID of the Exacc Db server associated with the database node.
    db_system_id str
    The OCID of the DB system.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    fault_domain str
    The name of the Fault Domain the instance is contained in.
    freeform_tags Mapping[str, Any]
    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"}
    host_ip_id str
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    hostname str
    The host name for the database node.
    id str
    The OCID of the database node.
    lifecycle_details str
    Information about the current lifecycle state.
    maintenance_type str
    The type of database node maintenance.
    memory_size_in_gbs int
    The allocated memory in GBs on the Db node.
    software_storage_size_in_gb int
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    state str
    The current state of the database node.
    time_created str
    The date and time that the database node was created.
    time_maintenance_window_end str
    End date and time of maintenance window.
    time_maintenance_window_start str
    Start date and time of maintenance window.
    total_cpu_core_count int
    The total number of CPU cores reserved on the Db node.
    vnic2id str
    The OCID of the second VNIC.
    vnic_id str
    The OCID of the VNIC.
    additionalDetails String
    Additional information about the planned maintenance.
    backupIpId String
    The OCID of the backup IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection.
    backupVnic2id String
    The OCID of the second backup VNIC.
    backupVnicId String
    The OCID of the backup VNIC.
    cpuCoreCount Number
    The number of CPU cores enabled on the Db node.
    dbNodeId String
    dbNodeStorageSizeInGbs Number
    The allocated local node storage in GBs on the Db node.
    dbServerId String
    The OCID of the Exacc Db server associated with the database node.
    dbSystemId String
    The OCID of the DB system.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    faultDomain String
    The name of the Fault Domain the instance is contained in.
    freeformTags Map<Any>
    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"}
    hostIpId String
    The OCID of the host IP address associated with the database node. Use this OCID with either the GetPrivateIp or the GetPublicIpByPrivateIpId API to get the IP address needed to make a database connection. Note: Applies only to Exadata Cloud Service.
    hostname String
    The host name for the database node.
    id String
    The OCID of the database node.
    lifecycleDetails String
    Information about the current lifecycle state.
    maintenanceType String
    The type of database node maintenance.
    memorySizeInGbs Number
    The allocated memory in GBs on the Db node.
    softwareStorageSizeInGb Number
    The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
    state String
    The current state of the database node.
    timeCreated String
    The date and time that the database node was created.
    timeMaintenanceWindowEnd String
    End date and time of maintenance window.
    timeMaintenanceWindowStart String
    Start date and time of maintenance window.
    totalCpuCoreCount Number
    The total number of CPU cores reserved on the Db node.
    vnic2id String
    The OCID of the second VNIC.
    vnicId String
    The OCID of the VNIC.

    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 v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi