gcp.oracledatabase.getDbServers
Explore with Pulumi AI
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- stateare:- 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)
public static Output<GetDbServersResult> getDbServers(GetDbServersArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:oracledatabase/getDbServers:getDbServers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CloudExadata stringInfrastructure 
- 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.
- CloudExadata stringInfrastructure 
- 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.
- cloudExadata StringInfrastructure 
- 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.
- cloudExadata stringInfrastructure 
- 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_ strinfrastructure 
- 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.
- cloudExadata StringInfrastructure 
- 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:
- CloudExadata stringInfrastructure 
- DbServers List<GetDb Servers Db Server> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- CloudExadata stringInfrastructure 
- DbServers []GetDb Servers Db Server 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- cloudExadata StringInfrastructure 
- dbServers List<GetDb Servers Db Server> 
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- cloudExadata stringInfrastructure 
- dbServers GetDb Servers Db Server[] 
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- project string
- cloud_exadata_ strinfrastructure 
- db_servers Sequence[GetDb Servers Db Server] 
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- project str
- cloudExadata StringInfrastructure 
- dbServers List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
Supporting Types
GetDbServersDbServer    
- DisplayName string
- The Display name
- Properties
List<GetDb Servers Db Server Property> 
- DisplayName string
- The Display name
- Properties
[]GetDb Servers Db Server Property 
- displayName String
- The Display name
- properties
List<GetDb Servers Db Server Property> 
- displayName string
- The Display name
- properties
GetDb Servers Db Server Property[] 
- display_name str
- The Display name
- properties
Sequence[GetDb Servers Db Server Property] 
- displayName String
- The Display name
- properties List<Property Map>
GetDbServersDbServerProperty     
- DbNode List<string>Ids 
- Output only
- DbNode intStorage Size Gb 
- Output only
- MaxDb intNode Storage Size Gb 
- Output only
- MaxMemory intSize Gb 
- Output only
- MaxOcpu intCount 
- Output only
- MemorySize intGb 
- Output only
- Ocid string
- Output only
- OcpuCount int
- Output only
- State string
- Output only
- VmCount int
- Output only
- DbNode []stringIds 
- Output only
- DbNode intStorage Size Gb 
- Output only
- MaxDb intNode Storage Size Gb 
- Output only
- MaxMemory intSize Gb 
- Output only
- MaxOcpu intCount 
- Output only
- MemorySize intGb 
- Output only
- Ocid string
- Output only
- OcpuCount int
- Output only
- State string
- Output only
- VmCount int
- Output only
- dbNode List<String>Ids 
- Output only
- dbNode IntegerStorage Size Gb 
- Output only
- maxDb IntegerNode Storage Size Gb 
- Output only
- maxMemory IntegerSize Gb 
- Output only
- maxOcpu IntegerCount 
- Output only
- memorySize IntegerGb 
- Output only
- ocid String
- Output only
- ocpuCount Integer
- Output only
- state String
- Output only
- vmCount Integer
- Output only
- dbNode string[]Ids 
- Output only
- dbNode numberStorage Size Gb 
- Output only
- maxDb numberNode Storage Size Gb 
- Output only
- maxMemory numberSize Gb 
- Output only
- maxOcpu numberCount 
- Output only
- memorySize numberGb 
- Output only
- ocid string
- Output only
- ocpuCount number
- Output only
- state string
- Output only
- vmCount number
- Output only
- db_node_ Sequence[str]ids 
- Output only
- db_node_ intstorage_ size_ gb 
- Output only
- max_db_ intnode_ storage_ size_ gb 
- Output only
- max_memory_ intsize_ gb 
- Output only
- max_ocpu_ intcount 
- Output only
- memory_size_ intgb 
- Output only
- ocid str
- Output only
- ocpu_count int
- Output only
- state str
- Output only
- vm_count int
- Output only
- dbNode List<String>Ids 
- Output only
- dbNode NumberStorage Size Gb 
- Output only
- maxDb NumberNode Storage Size Gb 
- Output only
- maxMemory NumberSize Gb 
- Output only
- maxOcpu NumberCount 
- Output only
- memorySize NumberGb 
- 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-betaTerraform Provider.