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 for- stateare:- 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)
public static Output<GetDbNodesResult> getDbNodes(GetDbNodesArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:oracledatabase/getDbNodes:getDbNodes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CloudVm 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.
- CloudVm 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.
- cloudVm 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.
- cloudVm 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.
- cloudVm 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:
- CloudVm stringCluster 
- DbNodes List<GetDb Nodes Db Node> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- CloudVm stringCluster 
- DbNodes []GetDb Nodes Db Node 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- cloudVm StringCluster 
- dbNodes List<GetDb Nodes Db Node> 
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- cloudVm stringCluster 
- dbNodes 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
- cloudVm StringCluster 
- dbNodes 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<GetDb Nodes Db Node Property> 
- Name string
- The dbnode name
- Properties
[]GetDb Nodes Db Node Property 
- name String
- The dbnode name
- properties
List<GetDb Nodes Db Node Property> 
- name string
- The dbnode name
- properties
GetDb Nodes Db Node Property[] 
- name str
- The dbnode name
- properties
Sequence[GetDb Nodes Db Node Property] 
- name String
- The dbnode name
- properties List<Property Map>
GetDbNodesDbNodeProperty     
- DbNode intStorage Size Gb 
- Output only
- DbServer stringOcid 
- Output only
- Hostname string
- Output only
- MemorySize intGb 
- Output only
- Ocid string
- Output only
- OcpuCount int
- Output only
- State string
- Output only
- TotalCpu intCore Count 
- Output only
- DbNode intStorage Size Gb 
- Output only
- DbServer stringOcid 
- Output only
- Hostname string
- Output only
- MemorySize intGb 
- Output only
- Ocid string
- Output only
- OcpuCount int
- Output only
- State string
- Output only
- TotalCpu intCore Count 
- Output only
- dbNode IntegerStorage Size Gb 
- Output only
- dbServer StringOcid 
- Output only
- hostname String
- Output only
- memorySize IntegerGb 
- Output only
- ocid String
- Output only
- ocpuCount Integer
- Output only
- state String
- Output only
- totalCpu IntegerCore Count 
- Output only
- dbNode numberStorage Size Gb 
- Output only
- dbServer stringOcid 
- Output only
- hostname string
- Output only
- memorySize numberGb 
- Output only
- ocid string
- Output only
- ocpuCount number
- Output only
- state string
- Output only
- totalCpu 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
- dbNode NumberStorage Size Gb 
- Output only
- dbServer StringOcid 
- Output only
- hostname String
- Output only
- memorySize NumberGb 
- Output only
- ocid String
- Output only
- ocpuCount Number
- Output only
- state String
- Output only
- totalCpu 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-betaTerraform Provider.