Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Database.getDbNode
Explore with Pulumi AI
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:
- db_
node_ strid - The database node OCID.
getDbNode Result
The following output properties are available:
- Additional
Details string - Additional information about the planned maintenance.
- Backup
Ip stringId - 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 string - The OCID of the second backup VNIC.
- Backup
Vnic stringId - The OCID of the backup VNIC.
- Cpu
Core intCount - The number of CPU cores enabled on the Db node.
- Db
Node stringId - Db
Node intStorage Size In Gbs - The allocated local node storage in GBs on the Db node.
- Db
Server stringId - The OCID of the Exacc Db server associated with the database node.
- Db
System stringId - The OCID of the DB system.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Fault
Domain string - The name of the Fault Domain the instance is contained in.
- 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"}
- Host
Ip stringId - 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.
- Lifecycle
Details string - Information about the current lifecycle state.
- Maintenance
Type string - The type of database node maintenance.
- Memory
Size intIn Gbs - The allocated memory in GBs on the Db node.
- Software
Storage intSize In Gb - 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.
- Time
Created string - The date and time that the database node was created.
- Time
Maintenance stringWindow End - End date and time of maintenance window.
- Time
Maintenance stringWindow Start - Start date and time of maintenance window.
- Total
Cpu intCore Count - The total number of CPU cores reserved on the Db node.
- Vnic2id string
- The OCID of the second VNIC.
- Vnic
Id string - The OCID of the VNIC.
- Additional
Details string - Additional information about the planned maintenance.
- Backup
Ip stringId - 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 string - The OCID of the second backup VNIC.
- Backup
Vnic stringId - The OCID of the backup VNIC.
- Cpu
Core intCount - The number of CPU cores enabled on the Db node.
- Db
Node stringId - Db
Node intStorage Size In Gbs - The allocated local node storage in GBs on the Db node.
- Db
Server stringId - The OCID of the Exacc Db server associated with the database node.
- Db
System stringId - The OCID of the DB system.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Fault
Domain string - The name of the Fault Domain the instance is contained in.
- 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"}
- Host
Ip stringId - 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.
- Lifecycle
Details string - Information about the current lifecycle state.
- Maintenance
Type string - The type of database node maintenance.
- Memory
Size intIn Gbs - The allocated memory in GBs on the Db node.
- Software
Storage intSize In Gb - 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.
- Time
Created string - The date and time that the database node was created.
- Time
Maintenance stringWindow End - End date and time of maintenance window.
- Time
Maintenance stringWindow Start - Start date and time of maintenance window.
- Total
Cpu intCore Count - The total number of CPU cores reserved on the Db node.
- Vnic2id string
- The OCID of the second VNIC.
- Vnic
Id string - The OCID of the VNIC.
- additional
Details String - Additional information about the planned maintenance.
- backup
Ip StringId - 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 String - The OCID of the second backup VNIC.
- backup
Vnic StringId - The OCID of the backup VNIC.
- cpu
Core IntegerCount - The number of CPU cores enabled on the Db node.
- db
Node StringId - db
Node IntegerStorage Size In Gbs - The allocated local node storage in GBs on the Db node.
- db
Server StringId - The OCID of the Exacc Db server associated with the database node.
- db
System StringId - The OCID of the DB system.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fault
Domain String - The name of the Fault Domain the instance is contained in.
- 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"}
- host
Ip StringId - 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.
- lifecycle
Details String - Information about the current lifecycle state.
- maintenance
Type String - The type of database node maintenance.
- memory
Size IntegerIn Gbs - The allocated memory in GBs on the Db node.
- software
Storage IntegerSize In Gb - 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.
- time
Created String - The date and time that the database node was created.
- time
Maintenance StringWindow End - End date and time of maintenance window.
- time
Maintenance StringWindow Start - Start date and time of maintenance window.
- total
Cpu IntegerCore Count - The total number of CPU cores reserved on the Db node.
- vnic2id String
- The OCID of the second VNIC.
- vnic
Id String - The OCID of the VNIC.
- additional
Details string - Additional information about the planned maintenance.
- backup
Ip stringId - 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 string - The OCID of the second backup VNIC.
- backup
Vnic stringId - The OCID of the backup VNIC.
- cpu
Core numberCount - The number of CPU cores enabled on the Db node.
- db
Node stringId - db
Node numberStorage Size In Gbs - The allocated local node storage in GBs on the Db node.
- db
Server stringId - The OCID of the Exacc Db server associated with the database node.
- db
System stringId - The OCID of the DB system.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fault
Domain string - The name of the Fault Domain the instance is contained in.
- {[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"}
- host
Ip stringId - 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.
- lifecycle
Details string - Information about the current lifecycle state.
- maintenance
Type string - The type of database node maintenance.
- memory
Size numberIn Gbs - The allocated memory in GBs on the Db node.
- software
Storage numberSize In Gb - 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.
- time
Created string - The date and time that the database node was created.
- time
Maintenance stringWindow End - End date and time of maintenance window.
- time
Maintenance stringWindow Start - Start date and time of maintenance window.
- total
Cpu numberCore Count - The total number of CPU cores reserved on the Db node.
- vnic2id string
- The OCID of the second VNIC.
- vnic
Id string - The OCID of the VNIC.
- additional_
details str - Additional information about the planned maintenance.
- backup_
ip_ strid - 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_ strid - The OCID of the backup VNIC.
- cpu_
core_ intcount - The number of CPU cores enabled on the Db node.
- db_
node_ strid - db_
node_ intstorage_ size_ in_ gbs - The allocated local node storage in GBs on the Db node.
- db_
server_ strid - The OCID of the Exacc Db server associated with the database node.
- db_
system_ strid - The OCID of the DB system.
- Mapping[str, str]
- 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.
- 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"}
- host_
ip_ strid - 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_ intin_ gbs - The allocated memory in GBs on the Db node.
- software_
storage_ intsize_ in_ gb - 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_ strwindow_ end - End date and time of maintenance window.
- time_
maintenance_ strwindow_ start - Start date and time of maintenance window.
- total_
cpu_ intcore_ count - 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.
- additional
Details String - Additional information about the planned maintenance.
- backup
Ip StringId - 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 String - The OCID of the second backup VNIC.
- backup
Vnic StringId - The OCID of the backup VNIC.
- cpu
Core NumberCount - The number of CPU cores enabled on the Db node.
- db
Node StringId - db
Node NumberStorage Size In Gbs - The allocated local node storage in GBs on the Db node.
- db
Server StringId - The OCID of the Exacc Db server associated with the database node.
- db
System StringId - The OCID of the DB system.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fault
Domain String - The name of the Fault Domain the instance is contained in.
- 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"}
- host
Ip StringId - 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.
- lifecycle
Details String - Information about the current lifecycle state.
- maintenance
Type String - The type of database node maintenance.
- memory
Size NumberIn Gbs - The allocated memory in GBs on the Db node.
- software
Storage NumberSize In Gb - 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.
- time
Created String - The date and time that the database node was created.
- time
Maintenance StringWindow End - End date and time of maintenance window.
- time
Maintenance StringWindow Start - Start date and time of maintenance window.
- total
Cpu NumberCore Count - The total number of CPU cores reserved on the Db node.
- vnic2id String
- The OCID of the second VNIC.
- vnic
Id 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.