getDbNodes

List all DbNodes of a Cloud VmCluster. For more information see the API.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myDbNodes = gcp.oracledatabase.getDbNodes({
location: "us-east4",
cloudVmCluster: "vmcluster-id",
});
import pulumi
import pulumi_gcp as gcp
my_db_nodes = gcp.oracledatabase.get_db_nodes(location="us-east4",
cloud_vm_cluster="vmcluster-id")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myDbNodes = Gcp.OracleDatabase.GetDbNodes.Invoke(new()
{
Location = "us-east4",
CloudVmCluster = "vmcluster-id",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/oracledatabase"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oracledatabase.GetDbNodes(ctx, &oracledatabase.GetDbNodesArgs{
Location: "us-east4",
CloudVmCluster: "vmcluster-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
import com.pulumi.gcp.oracledatabase.inputs.GetDbNodesArgs;
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 myDbNodes = OracledatabaseFunctions.getDbNodes(GetDbNodesArgs.builder()
.location("us-east4")
.cloudVmCluster("vmcluster-id")
.build());
}
}
variables:
myDbNodes:
fn::invoke:
function: gcp:oracledatabase:getDbNodes
arguments:
location: us-east4
cloudVmCluster: vmcluster-id

Attributes reference

The following attributes are exported:

  • db_nodes - List of dbNodes. Structure is documented below. The db_nodes block supports:

  • name - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node}

  • properties - Various properties of the database node. Structure is documented below. The properties block supports:

  • ocid- OCID of database node.

  • ocpu_count - OCPU count per database node.

  • memory_size_gb - The allocated memory in GBs on the database node.

  • db_node_storage_size_gb - The allocated local node storage in GBs on the database node.

  • db_server_ocid - The OCID of the Database server associated with the database node.

  • hostname - The host name for the database node.

  • state - State of the database node. Possible values for state are:
    PROVISIONING - Indicates that the resource is being provisioned.
    AVAILABLE - Indicates that the resource is available.
    UPDATING - Indicates that the resource is being updated.
    STOPPING - Indicates that the resource is being stopped.
    STOPPED - Indicates that the resource is stopped.
    STARTING - Indicates that the resource is being started.
    TERMINATING - Indicates that the resource is being terminated.
    TERMINATED - Indicates that the resource is terminated.
    FAILED - Indicates that the resource has failed.

  • total_cpu_core_count - The total number of CPU cores reserved on the database node.

Return

A collection of values returned by getDbNodes.

Parameters

argument

A collection of arguments for invoking getDbNodes.


suspend fun getDbNodes(cloudVmCluster: String, location: String, project: String? = null): GetDbNodesResult

Return

A collection of values returned by getDbNodes.

Parameters

cloudVmCluster

The ID of the VM Cluster.

location

The location of the resource.

project

The project in which the resource belongs. If it is not provided, the provider project is used.

See also


suspend fun getDbNodes(argument: suspend GetDbNodesPlainArgsBuilder.() -> Unit): GetDbNodesResult

Return

A collection of values returned by getDbNodes.

Parameters

argument

Builder for com.pulumi.gcp.oracledatabase.kotlin.inputs.GetDbNodesPlainArgs.

See also