gcp.oracledatabase.getDbNodes
Explore with Pulumi AI
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")
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
})
}
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 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.
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 forstate
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.
Using getDbNodes
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 getDbNodes(args: GetDbNodesArgs, opts?: InvokeOptions): Promise<GetDbNodesResult>
function getDbNodesOutput(args: GetDbNodesOutputArgs, opts?: InvokeOptions): Output<GetDbNodesResult>
def get_db_nodes(cloud_vm_cluster: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbNodesResult
def get_db_nodes_output(cloud_vm_cluster: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbNodesResult]
func GetDbNodes(ctx *Context, args *GetDbNodesArgs, opts ...InvokeOption) (*GetDbNodesResult, error)
func GetDbNodesOutput(ctx *Context, args *GetDbNodesOutputArgs, opts ...InvokeOption) GetDbNodesResultOutput
> Note: This function is named GetDbNodes
in the Go SDK.
public static class GetDbNodes
{
public static Task<GetDbNodesResult> InvokeAsync(GetDbNodesArgs args, InvokeOptions? opts = null)
public static Output<GetDbNodesResult> Invoke(GetDbNodesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbNodesResult> getDbNodes(GetDbNodesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:oracledatabase/getDbNodes:getDbNodes
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Vm stringCluster - The ID of the VM Cluster.
- Location string
- The location of the resource.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Cloud
Vm stringCluster - The ID of the VM Cluster.
- Location string
- The location of the resource.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Vm StringCluster - The ID of the VM Cluster.
- location String
- The location of the resource.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Vm stringCluster - The ID of the VM Cluster.
- location string
- The location of the resource.
- project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- cloud_
vm_ strcluster - The ID of the VM Cluster.
- location str
- The location of the resource.
- project str
- The project in which the resource belongs. If it is not provided, the provider project is used.
- cloud
Vm StringCluster - The ID of the VM Cluster.
- location String
- The location of the resource.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
getDbNodes Result
The following output properties are available:
- Cloud
Vm stringCluster - Db
Nodes List<GetDb Nodes Db Node> - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- Cloud
Vm stringCluster - Db
Nodes []GetDb Nodes Db Node - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- cloud
Vm StringCluster - db
Nodes List<GetDb Nodes Db Node> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- cloud
Vm stringCluster - db
Nodes GetDb Nodes Db Node[] - id string
- The provider-assigned unique ID for this managed resource.
- location string
- project string
- cloud_
vm_ strcluster - db_
nodes Sequence[GetDb Nodes Db Node] - id str
- The provider-assigned unique ID for this managed resource.
- location str
- project str
- cloud
Vm StringCluster - db
Nodes List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
Supporting Types
GetDbNodesDbNode
- Name string
- The dbnode name
- Properties
List<Get
Db Nodes Db Node Property>
- Name string
- The dbnode name
- Properties
[]Get
Db Nodes Db Node Property
- name String
- The dbnode name
- properties
List<Get
Db Nodes Db Node Property>
- name string
- The dbnode name
- properties
Get
Db Nodes Db Node Property[]
- name str
- The dbnode name
- properties
Sequence[Get
Db Nodes Db Node Property]
- name String
- The dbnode name
- properties List<Property Map>
GetDbNodesDbNodeProperty
- Db
Node intStorage Size Gb - Output only
- Db
Server stringOcid - Output only
- Hostname string
- Output only
- Memory
Size intGb - Output only
- Ocid string
- Output only
- Ocpu
Count int - Output only
- State string
- Output only
- Total
Cpu intCore Count - Output only
- Db
Node intStorage Size Gb - Output only
- Db
Server stringOcid - Output only
- Hostname string
- Output only
- Memory
Size intGb - Output only
- Ocid string
- Output only
- Ocpu
Count int - Output only
- State string
- Output only
- Total
Cpu intCore Count - Output only
- db
Node IntegerStorage Size Gb - Output only
- db
Server StringOcid - Output only
- hostname String
- Output only
- memory
Size IntegerGb - Output only
- ocid String
- Output only
- ocpu
Count Integer - Output only
- state String
- Output only
- total
Cpu IntegerCore Count - Output only
- db
Node numberStorage Size Gb - Output only
- db
Server stringOcid - Output only
- hostname string
- Output only
- memory
Size numberGb - Output only
- ocid string
- Output only
- ocpu
Count number - Output only
- state string
- Output only
- total
Cpu numberCore Count - Output only
- db_
node_ intstorage_ size_ gb - Output only
- db_
server_ strocid - Output only
- hostname str
- Output only
- memory_
size_ intgb - Output only
- ocid str
- Output only
- ocpu_
count int - Output only
- state str
- Output only
- total_
cpu_ intcore_ count - Output only
- db
Node NumberStorage Size Gb - Output only
- db
Server StringOcid - Output only
- hostname String
- Output only
- memory
Size NumberGb - Output only
- ocid String
- Output only
- ocpu
Count Number - Output only
- state String
- Output only
- total
Cpu NumberCore Count - Output only
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.