1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. oracledatabase
  5. getDbNodes
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.oracledatabase.getDbNodes

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    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.

    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.

    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:

    CloudVmCluster string
    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.
    CloudVmCluster string
    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.
    cloudVmCluster String
    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.
    cloudVmCluster string
    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_cluster str
    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.
    cloudVmCluster String
    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:

    CloudVmCluster string
    DbNodes List<GetDbNodesDbNode>
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    CloudVmCluster string
    DbNodes []GetDbNodesDbNode
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    cloudVmCluster String
    dbNodes List<GetDbNodesDbNode>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String
    cloudVmCluster string
    dbNodes GetDbNodesDbNode[]
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    project string
    cloud_vm_cluster str
    db_nodes Sequence[GetDbNodesDbNode]
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    project str
    cloudVmCluster String
    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<Property Map>

    GetDbNodesDbNodeProperty

    DbNodeStorageSizeGb int
    Output only
    DbServerOcid string
    Output only
    Hostname string
    Output only
    MemorySizeGb int
    Output only
    Ocid string
    Output only
    OcpuCount int
    Output only
    State string
    Output only
    TotalCpuCoreCount int
    Output only
    DbNodeStorageSizeGb int
    Output only
    DbServerOcid string
    Output only
    Hostname string
    Output only
    MemorySizeGb int
    Output only
    Ocid string
    Output only
    OcpuCount int
    Output only
    State string
    Output only
    TotalCpuCoreCount int
    Output only
    dbNodeStorageSizeGb Integer
    Output only
    dbServerOcid String
    Output only
    hostname String
    Output only
    memorySizeGb Integer
    Output only
    ocid String
    Output only
    ocpuCount Integer
    Output only
    state String
    Output only
    totalCpuCoreCount Integer
    Output only
    dbNodeStorageSizeGb number
    Output only
    dbServerOcid string
    Output only
    hostname string
    Output only
    memorySizeGb number
    Output only
    ocid string
    Output only
    ocpuCount number
    Output only
    state string
    Output only
    totalCpuCoreCount number
    Output only
    db_node_storage_size_gb int
    Output only
    db_server_ocid str
    Output only
    hostname str
    Output only
    memory_size_gb int
    Output only
    ocid str
    Output only
    ocpu_count int
    Output only
    state str
    Output only
    total_cpu_core_count int
    Output only
    dbNodeStorageSizeGb Number
    Output only
    dbServerOcid String
    Output only
    hostname String
    Output only
    memorySizeGb Number
    Output only
    ocid String
    Output only
    ocpuCount Number
    Output only
    state String
    Output only
    totalCpuCoreCount Number
    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.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi