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

gcp.oracledatabase.getDbServers

Explore with Pulumi AI

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

    List all DbServers of a Cloud Exdata Infrastructure.

    For more information see the API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const myDbServers = gcp.oracledatabase.getDbServers({
        location: "us-east4",
        cloudExadataInfrastructure: "exadata-id",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_db_servers = gcp.oracledatabase.get_db_servers(location="us-east4",
        cloud_exadata_infrastructure="exadata-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.GetDbServers(ctx, &oracledatabase.GetDbServersArgs{
    			Location:                   "us-east4",
    			CloudExadataInfrastructure: "exadata-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 myDbServers = Gcp.OracleDatabase.GetDbServers.Invoke(new()
        {
            Location = "us-east4",
            CloudExadataInfrastructure = "exadata-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.GetDbServersArgs;
    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 myDbServers = OracledatabaseFunctions.getDbServers(GetDbServersArgs.builder()
                .location("us-east4")
                .cloudExadataInfrastructure("exadata-id")
                .build());
    
        }
    }
    
    variables:
      myDbServers:
        fn::invoke:
          Function: gcp:oracledatabase:getDbServers
          Arguments:
            location: us-east4
            cloudExadataInfrastructure: exadata-id
    

    Attributes reference

    The following attributes are exported:

    • db_servers - List of dbServers. Structure is documented below.

    The db_servers block supports:

    • display_name - User friendly name for the resource.

    • properties - Various properties of the databse server. Structure is documented below.

    The properties block supports:

    • ocid - The OCID of database server.

    • ocpu_count - The OCPU count per database.

    • max_ocpu_count - The total number of CPU cores available.

    • memory_size_gb - The allocated memory in gigabytes on the database server.

    • max_memory_size_gb - The total memory available in gigabytes.

    • db_node_storage_size_gb - The local storage per VM.

    • max_db_node_storage_size_gb - The total local node storage available in GBs.

    • vm_count - The VM count per database.

    • state - The current state of the database server. Allowed values for state are:
      CREATING - Indicates that the resource is being created.
      AVAILABLE - Indicates that the resource is available.
      UNAVAILABLE - Indicates that the resource is unavailable.
      DELETING - Indicates that the resource is being deleted.
      DELETED - Indicates that the resource has been deleted.

    • db_node_ids - The OCID of database nodes associated with the database server.

    Using getDbServers

    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 getDbServers(args: GetDbServersArgs, opts?: InvokeOptions): Promise<GetDbServersResult>
    function getDbServersOutput(args: GetDbServersOutputArgs, opts?: InvokeOptions): Output<GetDbServersResult>
    def get_db_servers(cloud_exadata_infrastructure: Optional[str] = None,
                       location: Optional[str] = None,
                       project: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDbServersResult
    def get_db_servers_output(cloud_exadata_infrastructure: Optional[pulumi.Input[str]] = None,
                       location: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDbServersResult]
    func GetDbServers(ctx *Context, args *GetDbServersArgs, opts ...InvokeOption) (*GetDbServersResult, error)
    func GetDbServersOutput(ctx *Context, args *GetDbServersOutputArgs, opts ...InvokeOption) GetDbServersResultOutput

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

    public static class GetDbServers 
    {
        public static Task<GetDbServersResult> InvokeAsync(GetDbServersArgs args, InvokeOptions? opts = null)
        public static Output<GetDbServersResult> Invoke(GetDbServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbServersResult> getDbServers(GetDbServersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:oracledatabase/getDbServers:getDbServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudExadataInfrastructure string
    The Exadata Infrastructure id.
    Location string
    The location of resource.
    Project string
    The project to which the resource belongs. If it is not provided, the provider project is used.
    CloudExadataInfrastructure string
    The Exadata Infrastructure id.
    Location string
    The location of resource.
    Project string
    The project to which the resource belongs. If it is not provided, the provider project is used.
    cloudExadataInfrastructure String
    The Exadata Infrastructure id.
    location String
    The location of resource.
    project String
    The project to which the resource belongs. If it is not provided, the provider project is used.
    cloudExadataInfrastructure string
    The Exadata Infrastructure id.
    location string
    The location of resource.
    project string
    The project to which the resource belongs. If it is not provided, the provider project is used.
    cloud_exadata_infrastructure str
    The Exadata Infrastructure id.
    location str
    The location of resource.
    project str
    The project to which the resource belongs. If it is not provided, the provider project is used.
    cloudExadataInfrastructure String
    The Exadata Infrastructure id.
    location String
    The location of resource.
    project String
    The project to which the resource belongs. If it is not provided, the provider project is used.

    getDbServers Result

    The following output properties are available:

    CloudExadataInfrastructure string
    DbServers List<GetDbServersDbServer>
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    CloudExadataInfrastructure string
    DbServers []GetDbServersDbServer
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    cloudExadataInfrastructure String
    dbServers List<GetDbServersDbServer>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String
    cloudExadataInfrastructure string
    dbServers GetDbServersDbServer[]
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    project string
    cloud_exadata_infrastructure str
    db_servers Sequence[GetDbServersDbServer]
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    project str
    cloudExadataInfrastructure String
    dbServers List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String

    Supporting Types

    GetDbServersDbServer

    GetDbServersDbServerProperty

    DbNodeIds List<string>
    Output only
    DbNodeStorageSizeGb int
    Output only
    MaxDbNodeStorageSizeGb int
    Output only
    MaxMemorySizeGb int
    Output only
    MaxOcpuCount int
    Output only
    MemorySizeGb int
    Output only
    Ocid string
    Output only
    OcpuCount int
    Output only
    State string
    Output only
    VmCount int
    Output only
    DbNodeIds []string
    Output only
    DbNodeStorageSizeGb int
    Output only
    MaxDbNodeStorageSizeGb int
    Output only
    MaxMemorySizeGb int
    Output only
    MaxOcpuCount int
    Output only
    MemorySizeGb int
    Output only
    Ocid string
    Output only
    OcpuCount int
    Output only
    State string
    Output only
    VmCount int
    Output only
    dbNodeIds List<String>
    Output only
    dbNodeStorageSizeGb Integer
    Output only
    maxDbNodeStorageSizeGb Integer
    Output only
    maxMemorySizeGb Integer
    Output only
    maxOcpuCount Integer
    Output only
    memorySizeGb Integer
    Output only
    ocid String
    Output only
    ocpuCount Integer
    Output only
    state String
    Output only
    vmCount Integer
    Output only
    dbNodeIds string[]
    Output only
    dbNodeStorageSizeGb number
    Output only
    maxDbNodeStorageSizeGb number
    Output only
    maxMemorySizeGb number
    Output only
    maxOcpuCount number
    Output only
    memorySizeGb number
    Output only
    ocid string
    Output only
    ocpuCount number
    Output only
    state string
    Output only
    vmCount number
    Output only
    db_node_ids Sequence[str]
    Output only
    db_node_storage_size_gb int
    Output only
    max_db_node_storage_size_gb int
    Output only
    max_memory_size_gb int
    Output only
    max_ocpu_count int
    Output only
    memory_size_gb int
    Output only
    ocid str
    Output only
    ocpu_count int
    Output only
    state str
    Output only
    vm_count int
    Output only
    dbNodeIds List<String>
    Output only
    dbNodeStorageSizeGb Number
    Output only
    maxDbNodeStorageSizeGb Number
    Output only
    maxMemorySizeGb Number
    Output only
    maxOcpuCount Number
    Output only
    memorySizeGb Number
    Output only
    ocid String
    Output only
    ocpuCount Number
    Output only
    state String
    Output only
    vmCount 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