Oracle Cloud Infrastructure
getDbNode
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testDbNode = Output.Create(Oci.Database.GetDbNode.InvokeAsync(new Oci.Database.GetDbNodeArgs
{
DbNodeId = @var.Db_node_id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Db_node_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_db_node = oci.Database.get_db_node(db_node_id=var["db_node_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbNode = oci.Database.getDbNode({
dbNodeId: _var.db_node_id,
});
Coming soon!
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.
- 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.
- Fault
Domain string The name of the Fault Domain the instance is contained in.
- Host
Ip stringId The OCID of the host IP address associated with the database node.
- Hostname string
The host name for the database node.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- Fault
Domain string The name of the Fault Domain the instance is contained in.
- Host
Ip stringId The OCID of the host IP address associated with the database node.
- Hostname string
The host name for the database node.
- Id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- fault
Domain String The name of the Fault Domain the instance is contained in.
- host
Ip StringId The OCID of the host IP address associated with the database node.
- hostname String
The host name for the database node.
- id String
The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- fault
Domain string The name of the Fault Domain the instance is contained in.
- host
Ip stringId The OCID of the host IP address associated with the database node.
- hostname string
The host name for the database node.
- id string
The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- fault_
domain str The name of the Fault Domain the instance is contained in.
- host_
ip_ strid The OCID of the host IP address associated with the database node.
- hostname str
The host name for the database node.
- id str
The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- fault
Domain String The name of the Fault Domain the instance is contained in.
- host
Ip StringId The OCID of the host IP address associated with the database node.
- hostname String
The host name for the database node.
- id String
The provider-assigned unique ID for this managed resource.
- 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.
- vnic2id String
The OCID of the second VNIC.
- vnic
Id String The OCID of the VNIC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.