get Db Servers
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")
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 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
})
}
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. Thedb_servers
block supports:display_name
- User friendly name for the resource.properties
- Various properties of the databse server. Structure is documented below. Theproperties
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.
Return
A collection of values returned by getDbServers.
Parameters
A collection of arguments for invoking getDbServers.
Return
A collection of values returned by getDbServers.
Parameters
The Exadata Infrastructure id.
The location of resource.
The project to which the resource belongs. If it is not provided, the provider project is used.
See also
Return
A collection of values returned by getDbServers.
Parameters
Builder for com.pulumi.gcp.oracledatabase.kotlin.inputs.GetDbServersPlainArgs.