Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getDbNodeConsoleHistory
Explore with Pulumi AI
This data source provides details about a specific Db Node Console History resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified database node console history.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbNodeConsoleHistory = oci.Database.getDbNodeConsoleHistory({
consoleHistoryId: testConsoleHistory.id,
dbNodeId: testDbNode.id,
});
import pulumi
import pulumi_oci as oci
test_db_node_console_history = oci.Database.get_db_node_console_history(console_history_id=test_console_history["id"],
db_node_id=test_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.GetDbNodeConsoleHistory(ctx, &database.GetDbNodeConsoleHistoryArgs{
ConsoleHistoryId: testConsoleHistory.Id,
DbNodeId: testDbNode.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 testDbNodeConsoleHistory = Oci.Database.GetDbNodeConsoleHistory.Invoke(new()
{
ConsoleHistoryId = testConsoleHistory.Id,
DbNodeId = testDbNode.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.GetDbNodeConsoleHistoryArgs;
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 testDbNodeConsoleHistory = DatabaseFunctions.getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs.builder()
.consoleHistoryId(testConsoleHistory.id())
.dbNodeId(testDbNode.id())
.build());
}
}
variables:
testDbNodeConsoleHistory:
fn::invoke:
Function: oci:Database:getDbNodeConsoleHistory
Arguments:
consoleHistoryId: ${testConsoleHistory.id}
dbNodeId: ${testDbNode.id}
Using getDbNodeConsoleHistory
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 getDbNodeConsoleHistory(args: GetDbNodeConsoleHistoryArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleHistoryResult>
function getDbNodeConsoleHistoryOutput(args: GetDbNodeConsoleHistoryOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleHistoryResult>
def get_db_node_console_history(console_history_id: Optional[str] = None,
db_node_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleHistoryResult
def get_db_node_console_history_output(console_history_id: Optional[pulumi.Input[str]] = None,
db_node_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleHistoryResult]
func GetDbNodeConsoleHistory(ctx *Context, args *GetDbNodeConsoleHistoryArgs, opts ...InvokeOption) (*GetDbNodeConsoleHistoryResult, error)
func GetDbNodeConsoleHistoryOutput(ctx *Context, args *GetDbNodeConsoleHistoryOutputArgs, opts ...InvokeOption) GetDbNodeConsoleHistoryResultOutput
> Note: This function is named GetDbNodeConsoleHistory
in the Go SDK.
public static class GetDbNodeConsoleHistory
{
public static Task<GetDbNodeConsoleHistoryResult> InvokeAsync(GetDbNodeConsoleHistoryArgs args, InvokeOptions? opts = null)
public static Output<GetDbNodeConsoleHistoryResult> Invoke(GetDbNodeConsoleHistoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbNodeConsoleHistory:getDbNodeConsoleHistory
arguments:
# arguments dictionary
The following arguments are supported:
- Console
History stringId - The OCID of the console history.
- Db
Node stringId - The database node OCID.
- Console
History stringId - The OCID of the console history.
- Db
Node stringId - The database node OCID.
- console
History StringId - The OCID of the console history.
- db
Node StringId - The database node OCID.
- console
History stringId - The OCID of the console history.
- db
Node stringId - The database node OCID.
- console_
history_ strid - The OCID of the console history.
- db_
node_ strid - The database node OCID.
- console
History StringId - The OCID of the console history.
- db
Node StringId - The database node OCID.
getDbNodeConsoleHistory Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the console history.
- Console
History stringId - Db
Node stringId - The OCID of the database node.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-friendly name for the console history. The name does not need to be unique.
- 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 console history.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the console history.
- Time
Created string - The date and time the console history was created.
- Compartment
Id string - The OCID of the compartment containing the console history.
- Console
History stringId - Db
Node stringId - The OCID of the database node.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-friendly name for the console history. The name does not need to be unique.
- 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 console history.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current state of the console history.
- Time
Created string - The date and time the console history was created.
- compartment
Id String - The OCID of the compartment containing the console history.
- console
History StringId - db
Node StringId - The OCID of the database node.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-friendly name for the console history. The name does not need to be unique.
- 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 console history.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the console history.
- time
Created String - The date and time the console history was created.
- compartment
Id string - The OCID of the compartment containing the console history.
- console
History stringId - db
Node stringId - The OCID of the database node.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string - The user-friendly name for the console history. The name does not need to be unique.
- {[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 console history.
- lifecycle
Details string - Additional information about the current lifecycle state.
- state string
- The current state of the console history.
- time
Created string - The date and time the console history was created.
- compartment_
id str - The OCID of the compartment containing the console history.
- console_
history_ strid - db_
node_ strid - The OCID of the database node.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_
name str - The user-friendly name for the console history. The name does not need to be unique.
- 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 console history.
- lifecycle_
details str - Additional information about the current lifecycle state.
- state str
- The current state of the console history.
- time_
created str - The date and time the console history was created.
- compartment
Id String - The OCID of the compartment containing the console history.
- console
History StringId - db
Node StringId - The OCID of the database node.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-friendly name for the console history. The name does not need to be unique.
- 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 console history.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current state of the console history.
- time
Created String - The date and time the console history was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.