GetDatabaseCluster
Provides information on a DigitalOcean database cluster resource.
Example Usage
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(DigitalOcean.GetDatabaseCluster.InvokeAsync(new DigitalOcean.GetDatabaseClusterArgs
{
Name = "example-cluster",
}));
this.DatabaseOutput = example.Apply(example => example.Uri);
}
[Output("databaseOutput")]
public Output<string> DatabaseOutput { get; set; }
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_database_cluster(name="example-cluster")
pulumi.export("databaseOutput", example.uri)import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getDatabaseCluster({
name: "example-cluster",
});
export const databaseOutput = example.then(example => example.uri);Using GetDatabaseCluster
function getDatabaseCluster(args: GetDatabaseClusterArgs, opts?: InvokeOptions): Promise<GetDatabaseClusterResult>function get_database_cluster(name=None, tags=None, opts=None)func LookupDatabaseCluster(ctx *Context, args *LookupDatabaseClusterArgs, opts ...InvokeOption) (*LookupDatabaseClusterResult, error)Note: This function is named
LookupDatabaseClusterin the Go SDK.
public static class GetDatabaseCluster {
public static Task<GetDatabaseClusterResult> InvokeAsync(GetDatabaseClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the database cluster.
- List<string>
GetDatabaseCluster Result
The following output properties are available:
- Database string
Name of the cluster’s default database.
- Engine string
Database engine used by the cluster (ex.
pgfor PostreSQL).- Host string
Database cluster’s hostname.
- Id string
The provider-assigned unique ID for this managed resource.
- Maintenance
Windows List<Pulumi.Digital Ocean. Outputs. Get Database Cluster Maintenance Window> Defines when the automatic maintenance should be performed for the database cluster.
- Name string
- Node
Count int Number of nodes that will be included in the cluster.
- Password string
Password for the cluster’s default user.
- Port int
Network port that the database cluster is listening on.
- Private
Host string Same as
host, but only accessible from resources within the account and in the same region.- Private
Network stringUuid The ID of the VPC where the database cluster is located.
- Private
Uri string Same as
uri, but only accessible from resources within the account and in the same region.- Region string
DigitalOcean region where the cluster will reside.
- Size string
Database droplet size associated with the cluster (ex.
db-s-1vcpu-1gb).- Uri string
The full URI for connecting to the database cluster.
- Urn string
The uniform resource name of the database cluster.
- User string
Username for the cluster’s default user.
- Version string
Engine version used by the cluster (ex.
11for PostgreSQL 11).- List<string>
- Database string
Name of the cluster’s default database.
- Engine string
Database engine used by the cluster (ex.
pgfor PostreSQL).- Host string
Database cluster’s hostname.
- Id string
The provider-assigned unique ID for this managed resource.
- Maintenance
Windows []GetDatabase Cluster Maintenance Window Defines when the automatic maintenance should be performed for the database cluster.
- Name string
- Node
Count int Number of nodes that will be included in the cluster.
- Password string
Password for the cluster’s default user.
- Port int
Network port that the database cluster is listening on.
- Private
Host string Same as
host, but only accessible from resources within the account and in the same region.- Private
Network stringUuid The ID of the VPC where the database cluster is located.
- Private
Uri string Same as
uri, but only accessible from resources within the account and in the same region.- Region string
DigitalOcean region where the cluster will reside.
- Size string
Database droplet size associated with the cluster (ex.
db-s-1vcpu-1gb).- Uri string
The full URI for connecting to the database cluster.
- Urn string
The uniform resource name of the database cluster.
- User string
Username for the cluster’s default user.
- Version string
Engine version used by the cluster (ex.
11for PostgreSQL 11).- []string
- database string
Name of the cluster’s default database.
- engine string
Database engine used by the cluster (ex.
pgfor PostreSQL).- host string
Database cluster’s hostname.
- id string
The provider-assigned unique ID for this managed resource.
- maintenance
Windows GetDatabase Cluster Maintenance Window[] Defines when the automatic maintenance should be performed for the database cluster.
- name string
- node
Count number Number of nodes that will be included in the cluster.
- password string
Password for the cluster’s default user.
- port number
Network port that the database cluster is listening on.
- private
Host string Same as
host, but only accessible from resources within the account and in the same region.- private
Network stringUuid The ID of the VPC where the database cluster is located.
- private
Uri string Same as
uri, but only accessible from resources within the account and in the same region.- region string
DigitalOcean region where the cluster will reside.
- size string
Database droplet size associated with the cluster (ex.
db-s-1vcpu-1gb).- uri string
The full URI for connecting to the database cluster.
- urn string
The uniform resource name of the database cluster.
- user string
Username for the cluster’s default user.
- version string
Engine version used by the cluster (ex.
11for PostgreSQL 11).- string[]
- database str
Name of the cluster’s default database.
- engine str
Database engine used by the cluster (ex.
pgfor PostreSQL).- host str
Database cluster’s hostname.
- id str
The provider-assigned unique ID for this managed resource.
- maintenance_
windows List[GetDatabase Cluster Maintenance Window] Defines when the automatic maintenance should be performed for the database cluster.
- name str
- node_
count float Number of nodes that will be included in the cluster.
- password str
Password for the cluster’s default user.
- port float
Network port that the database cluster is listening on.
- private_
host str Same as
host, but only accessible from resources within the account and in the same region.- private_
network_ struuid The ID of the VPC where the database cluster is located.
- private_
uri str Same as
uri, but only accessible from resources within the account and in the same region.- region str
DigitalOcean region where the cluster will reside.
- size str
Database droplet size associated with the cluster (ex.
db-s-1vcpu-1gb).- uri str
The full URI for connecting to the database cluster.
- urn str
The uniform resource name of the database cluster.
- user str
Username for the cluster’s default user.
- version str
Engine version used by the cluster (ex.
11for PostgreSQL 11).- List[str]
Supporting Types
GetDatabaseClusterMaintenanceWindow
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.