1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNodeConsoleHistories
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Database.getDbNodeConsoleHistories

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides the list of Db Node Console Histories in Oracle Cloud Infrastructure Database service.

Lists the console histories for the specified database node.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbNodeConsoleHistories = oci.Database.getDbNodeConsoleHistories({
    dbNodeId: testDbNode.id,
    displayName: dbNodeConsoleHistoryDisplayName,
    state: dbNodeConsoleHistoryState,
});
Copy
import pulumi
import pulumi_oci as oci

test_db_node_console_histories = oci.Database.get_db_node_console_histories(db_node_id=test_db_node["id"],
    display_name=db_node_console_history_display_name,
    state=db_node_console_history_state)
Copy
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.GetDbNodeConsoleHistories(ctx, &database.GetDbNodeConsoleHistoriesArgs{
			DbNodeId:    testDbNode.Id,
			DisplayName: pulumi.StringRef(dbNodeConsoleHistoryDisplayName),
			State:       pulumi.StringRef(dbNodeConsoleHistoryState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbNodeConsoleHistories = Oci.Database.GetDbNodeConsoleHistories.Invoke(new()
    {
        DbNodeId = testDbNode.Id,
        DisplayName = dbNodeConsoleHistoryDisplayName,
        State = dbNodeConsoleHistoryState,
    });

});
Copy
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.GetDbNodeConsoleHistoriesArgs;
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 testDbNodeConsoleHistories = DatabaseFunctions.getDbNodeConsoleHistories(GetDbNodeConsoleHistoriesArgs.builder()
            .dbNodeId(testDbNode.id())
            .displayName(dbNodeConsoleHistoryDisplayName)
            .state(dbNodeConsoleHistoryState)
            .build());

    }
}
Copy
variables:
  testDbNodeConsoleHistories:
    fn::invoke:
      function: oci:Database:getDbNodeConsoleHistories
      arguments:
        dbNodeId: ${testDbNode.id}
        displayName: ${dbNodeConsoleHistoryDisplayName}
        state: ${dbNodeConsoleHistoryState}
Copy

Using getDbNodeConsoleHistories

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 getDbNodeConsoleHistories(args: GetDbNodeConsoleHistoriesArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleHistoriesResult>
function getDbNodeConsoleHistoriesOutput(args: GetDbNodeConsoleHistoriesOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleHistoriesResult>
Copy
def get_db_node_console_histories(db_node_id: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  filters: Optional[Sequence[_database.GetDbNodeConsoleHistoriesFilter]] = None,
                                  state: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleHistoriesResult
def get_db_node_console_histories_output(db_node_id: Optional[pulumi.Input[str]] = None,
                                  display_name: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbNodeConsoleHistoriesFilterArgs]]]] = None,
                                  state: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleHistoriesResult]
Copy
func GetDbNodeConsoleHistories(ctx *Context, args *GetDbNodeConsoleHistoriesArgs, opts ...InvokeOption) (*GetDbNodeConsoleHistoriesResult, error)
func GetDbNodeConsoleHistoriesOutput(ctx *Context, args *GetDbNodeConsoleHistoriesOutputArgs, opts ...InvokeOption) GetDbNodeConsoleHistoriesResultOutput
Copy

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

public static class GetDbNodeConsoleHistories 
{
    public static Task<GetDbNodeConsoleHistoriesResult> InvokeAsync(GetDbNodeConsoleHistoriesArgs args, InvokeOptions? opts = null)
    public static Output<GetDbNodeConsoleHistoriesResult> Invoke(GetDbNodeConsoleHistoriesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbNodeConsoleHistoriesResult> getDbNodeConsoleHistories(GetDbNodeConsoleHistoriesArgs args, InvokeOptions options)
public static Output<GetDbNodeConsoleHistoriesResult> getDbNodeConsoleHistories(GetDbNodeConsoleHistoriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getDbNodeConsoleHistories:getDbNodeConsoleHistories
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DbNodeId This property is required. string
The database node OCID.
DisplayName string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
Filters Changes to this property will trigger replacement. List<GetDbNodeConsoleHistoriesFilter>
State string
A filter to return only resources that match the given lifecycle state exactly.
DbNodeId This property is required. string
The database node OCID.
DisplayName string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
Filters Changes to this property will trigger replacement. []GetDbNodeConsoleHistoriesFilter
State string
A filter to return only resources that match the given lifecycle state exactly.
dbNodeId This property is required. String
The database node OCID.
displayName String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
filters Changes to this property will trigger replacement. List<GetDbNodeConsoleHistoriesFilter>
state String
A filter to return only resources that match the given lifecycle state exactly.
dbNodeId This property is required. string
The database node OCID.
displayName string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
filters Changes to this property will trigger replacement. GetDbNodeConsoleHistoriesFilter[]
state string
A filter to return only resources that match the given lifecycle state exactly.
db_node_id This property is required. str
The database node OCID.
display_name str
A filter to return only resources that match the entire display name given. The match is not case sensitive.
filters Changes to this property will trigger replacement. Sequence[database.GetDbNodeConsoleHistoriesFilter]
state str
A filter to return only resources that match the given lifecycle state exactly.
dbNodeId This property is required. String
The database node OCID.
displayName String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
filters Changes to this property will trigger replacement. List<Property Map>
state String
A filter to return only resources that match the given lifecycle state exactly.

getDbNodeConsoleHistories Result

The following output properties are available:

ConsoleHistoryCollections List<GetDbNodeConsoleHistoriesConsoleHistoryCollection>
The list of console_history_collection.
DbNodeId string
The OCID of the database node.
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
The user-friendly name for the console history. The name does not need to be unique.
Filters List<GetDbNodeConsoleHistoriesFilter>
State string
The current state of the console history.
ConsoleHistoryCollections []GetDbNodeConsoleHistoriesConsoleHistoryCollection
The list of console_history_collection.
DbNodeId string
The OCID of the database node.
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
The user-friendly name for the console history. The name does not need to be unique.
Filters []GetDbNodeConsoleHistoriesFilter
State string
The current state of the console history.
consoleHistoryCollections List<GetDbNodeConsoleHistoriesConsoleHistoryCollection>
The list of console_history_collection.
dbNodeId String
The OCID of the database node.
id String
The provider-assigned unique ID for this managed resource.
displayName String
The user-friendly name for the console history. The name does not need to be unique.
filters List<GetDbNodeConsoleHistoriesFilter>
state String
The current state of the console history.
consoleHistoryCollections GetDbNodeConsoleHistoriesConsoleHistoryCollection[]
The list of console_history_collection.
dbNodeId string
The OCID of the database node.
id string
The provider-assigned unique ID for this managed resource.
displayName string
The user-friendly name for the console history. The name does not need to be unique.
filters GetDbNodeConsoleHistoriesFilter[]
state string
The current state of the console history.
console_history_collections Sequence[database.GetDbNodeConsoleHistoriesConsoleHistoryCollection]
The list of console_history_collection.
db_node_id str
The OCID of the database node.
id str
The provider-assigned unique ID for this managed resource.
display_name str
The user-friendly name for the console history. The name does not need to be unique.
filters Sequence[database.GetDbNodeConsoleHistoriesFilter]
state str
The current state of the console history.
consoleHistoryCollections List<Property Map>
The list of console_history_collection.
dbNodeId String
The OCID of the database node.
id String
The provider-assigned unique ID for this managed resource.
displayName String
The user-friendly name for the console history. The name does not need to be unique.
filters List<Property Map>
state String
The current state of the console history.

Supporting Types

GetDbNodeConsoleHistoriesConsoleHistoryCollection

items This property is required. List<Property Map>

GetDbNodeConsoleHistoriesConsoleHistoryCollectionItem

CompartmentId This property is required. string
The OCID of the compartment containing the console history.
DbNodeId This property is required. string
The database node OCID.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
FreeformTags This property is required. 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 This property is required. string
The OCID of the console history.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state.
State This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
TimeCreated This property is required. string
The date and time the console history was created.
CompartmentId This property is required. string
The OCID of the compartment containing the console history.
DbNodeId This property is required. string
The database node OCID.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
FreeformTags This property is required. 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 This property is required. string
The OCID of the console history.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state.
State This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
TimeCreated This property is required. string
The date and time the console history was created.
compartmentId This property is required. String
The OCID of the compartment containing the console history.
dbNodeId This property is required. String
The database node OCID.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
freeformTags This property is required. 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 This property is required. String
The OCID of the console history.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state.
state This property is required. String
A filter to return only resources that match the given lifecycle state exactly.
timeCreated This property is required. String
The date and time the console history was created.
compartmentId This property is required. string
The OCID of the compartment containing the console history.
dbNodeId This property is required. string
The database node OCID.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
freeformTags This property is required. {[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 This property is required. string
The OCID of the console history.
lifecycleDetails This property is required. string
Additional information about the current lifecycle state.
state This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
timeCreated This property is required. string
The date and time the console history was created.
compartment_id This property is required. str
The OCID of the compartment containing the console history.
db_node_id This property is required. str
The database node OCID.
defined_tags This property is required. 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 This property is required. str
A filter to return only resources that match the entire display name given. The match is not case sensitive.
freeform_tags This property is required. 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 This property is required. str
The OCID of the console history.
lifecycle_details This property is required. str
Additional information about the current lifecycle state.
state This property is required. str
A filter to return only resources that match the given lifecycle state exactly.
time_created This property is required. str
The date and time the console history was created.
compartmentId This property is required. String
The OCID of the compartment containing the console history.
dbNodeId This property is required. String
The database node OCID.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
freeformTags This property is required. 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 This property is required. String
The OCID of the console history.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state.
state This property is required. String
A filter to return only resources that match the given lifecycle state exactly.
timeCreated This property is required. String
The date and time the console history was created.

GetDbNodeConsoleHistoriesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi