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 forstate
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:
- Cloud
Exadata 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 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 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 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.
- cloud
Exadata 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:
- Cloud
Exadata stringInfrastructure - Db
Servers List<GetDb Servers Db Server> - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- Cloud
Exadata stringInfrastructure - Db
Servers []GetDb Servers Db Server - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- cloud
Exadata StringInfrastructure - db
Servers List<GetDb Servers Db Server> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- cloud
Exadata stringInfrastructure - db
Servers 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
- cloud
Exadata StringInfrastructure - db
Servers List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
Supporting Types
GetDbServersDbServer
- Display
Name string - The Display name
- Properties
List<Get
Db Servers Db Server Property>
- Display
Name string - The Display name
- Properties
[]Get
Db Servers Db Server Property
- display
Name String - The Display name
- properties
List<Get
Db Servers Db Server Property>
- display
Name string - The Display name
- properties
Get
Db Servers Db Server Property[]
- display_
name str - The Display name
- properties
Sequence[Get
Db Servers Db Server Property]
- display
Name String - The Display name
- properties List<Property Map>
GetDbServersDbServerProperty
- Db
Node List<string>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 string
- Output only
- Ocpu
Count int - Output only
- State string
- Output only
- Vm
Count int - Output only
- Db
Node []stringIds - 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 string
- Output only
- Ocpu
Count int - Output only
- State string
- Output only
- Vm
Count int - Output only
- db
Node List<String>Ids - Output only
- db
Node IntegerStorage Size Gb - Output only
- max
Db IntegerNode Storage Size Gb - Output only
- max
Memory IntegerSize Gb - Output only
- max
Ocpu IntegerCount - Output only
- memory
Size IntegerGb - Output only
- ocid String
- Output only
- ocpu
Count Integer - Output only
- state String
- Output only
- vm
Count Integer - Output only
- db
Node string[]Ids - Output only
- db
Node numberStorage Size Gb - Output only
- max
Db numberNode Storage Size Gb - Output only
- max
Memory numberSize Gb - Output only
- max
Ocpu numberCount - Output only
- memory
Size numberGb - Output only
- ocid string
- Output only
- ocpu
Count number - Output only
- state string
- Output only
- vm
Count 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
- db
Node List<String>Ids - Output only
- db
Node NumberStorage Size Gb - Output only
- max
Db NumberNode Storage Size Gb - Output only
- max
Memory NumberSize Gb - Output only
- max
Ocpu NumberCount - Output only
- memory
Size NumberGb - Output only
- ocid String
- Output only
- ocpu
Count Number - Output only
- state String
- Output only
- vm
Count 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.