vultr.DatabaseReplica
Explore with Pulumi AI
Provides a Vultr database replica resource. This can be used to create, read, modify, and delete managed database read replicas on your Vultr account.
Example Usage
Create a new database replica:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@ediri/vultr";
const myDatabaseReplica = new vultr.DatabaseReplica("myDatabaseReplica", {
databaseId: vultr_database.my_database.id,
region: "sea",
label: "my_database_replica_label",
tag: "test tag",
});
import pulumi
import ediri_vultr as vultr
my_database_replica = vultr.DatabaseReplica("myDatabaseReplica",
database_id=vultr_database["my_database"]["id"],
region="sea",
label="my_database_replica_label",
tag="test tag")
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.NewDatabaseReplica(ctx, "myDatabaseReplica", &vultr.DatabaseReplicaArgs{
DatabaseId: pulumi.Any(vultr_database.My_database.Id),
Region: pulumi.String("sea"),
Label: pulumi.String("my_database_replica_label"),
Tag: pulumi.String("test tag"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = ediri.Vultr;
return await Deployment.RunAsync(() =>
{
var myDatabaseReplica = new Vultr.DatabaseReplica("myDatabaseReplica", new()
{
DatabaseId = vultr_database.My_database.Id,
Region = "sea",
Label = "my_database_replica_label",
Tag = "test tag",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.DatabaseReplica;
import com.pulumi.vultr.DatabaseReplicaArgs;
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) {
var myDatabaseReplica = new DatabaseReplica("myDatabaseReplica", DatabaseReplicaArgs.builder()
.databaseId(vultr_database.my_database().id())
.region("sea")
.label("my_database_replica_label")
.tag("test tag")
.build());
}
}
resources:
myDatabaseReplica:
type: vultr:DatabaseReplica
properties:
databaseId: ${vultr_database.my_database.id}
region: sea
label: my_database_replica_label
tag: test tag
Create DatabaseReplica Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseReplica(name: string, args: DatabaseReplicaArgs, opts?: CustomResourceOptions);
@overload
def DatabaseReplica(resource_name: str,
args: DatabaseReplicaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseReplica(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
region: Optional[str] = None,
label: Optional[str] = None,
mysql_sql_modes: Optional[Sequence[str]] = None,
mysql_require_primary_key: Optional[bool] = None,
mysql_slow_query_log: Optional[bool] = None,
mysql_long_query_time: Optional[int] = None,
plan_disk: Optional[int] = None,
public_host: Optional[str] = None,
redis_eviction_policy: Optional[str] = None,
ferretdb_credentials: Optional[Mapping[str, Any]] = None,
tag: Optional[str] = None,
trusted_ips: Optional[Sequence[str]] = None)
func NewDatabaseReplica(ctx *Context, name string, args DatabaseReplicaArgs, opts ...ResourceOption) (*DatabaseReplica, error)
public DatabaseReplica(string name, DatabaseReplicaArgs args, CustomResourceOptions? opts = null)
public DatabaseReplica(String name, DatabaseReplicaArgs args)
public DatabaseReplica(String name, DatabaseReplicaArgs args, CustomResourceOptions options)
type: vultr:DatabaseReplica
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatabaseReplicaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseReplicaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseReplicaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databaseReplicaResource = new Vultr.DatabaseReplica("databaseReplicaResource", new()
{
DatabaseId = "string",
Region = "string",
Label = "string",
MysqlSqlModes = new[]
{
"string",
},
MysqlRequirePrimaryKey = false,
MysqlSlowQueryLog = false,
MysqlLongQueryTime = 0,
PlanDisk = 0,
PublicHost = "string",
RedisEvictionPolicy = "string",
FerretdbCredentials =
{
{ "string", "any" },
},
Tag = "string",
TrustedIps = new[]
{
"string",
},
});
example, err := vultr.NewDatabaseReplica(ctx, "databaseReplicaResource", &vultr.DatabaseReplicaArgs{
DatabaseId: pulumi.String("string"),
Region: pulumi.String("string"),
Label: pulumi.String("string"),
MysqlSqlModes: pulumi.StringArray{
pulumi.String("string"),
},
MysqlRequirePrimaryKey: pulumi.Bool(false),
MysqlSlowQueryLog: pulumi.Bool(false),
MysqlLongQueryTime: pulumi.Int(0),
PlanDisk: pulumi.Int(0),
PublicHost: pulumi.String("string"),
RedisEvictionPolicy: pulumi.String("string"),
FerretdbCredentials: pulumi.Map{
"string": pulumi.Any("any"),
},
Tag: pulumi.String("string"),
TrustedIps: pulumi.StringArray{
pulumi.String("string"),
},
})
var databaseReplicaResource = new DatabaseReplica("databaseReplicaResource", DatabaseReplicaArgs.builder()
.databaseId("string")
.region("string")
.label("string")
.mysqlSqlModes("string")
.mysqlRequirePrimaryKey(false)
.mysqlSlowQueryLog(false)
.mysqlLongQueryTime(0)
.planDisk(0)
.publicHost("string")
.redisEvictionPolicy("string")
.ferretdbCredentials(Map.of("string", "any"))
.tag("string")
.trustedIps("string")
.build());
database_replica_resource = vultr.DatabaseReplica("databaseReplicaResource",
database_id="string",
region="string",
label="string",
mysql_sql_modes=["string"],
mysql_require_primary_key=False,
mysql_slow_query_log=False,
mysql_long_query_time=0,
plan_disk=0,
public_host="string",
redis_eviction_policy="string",
ferretdb_credentials={
"string": "any",
},
tag="string",
trusted_ips=["string"])
const databaseReplicaResource = new vultr.DatabaseReplica("databaseReplicaResource", {
databaseId: "string",
region: "string",
label: "string",
mysqlSqlModes: ["string"],
mysqlRequirePrimaryKey: false,
mysqlSlowQueryLog: false,
mysqlLongQueryTime: 0,
planDisk: 0,
publicHost: "string",
redisEvictionPolicy: "string",
ferretdbCredentials: {
string: "any",
},
tag: "string",
trustedIps: ["string"],
});
type: vultr:DatabaseReplica
properties:
databaseId: string
ferretdbCredentials:
string: any
label: string
mysqlLongQueryTime: 0
mysqlRequirePrimaryKey: false
mysqlSlowQueryLog: false
mysqlSqlModes:
- string
planDisk: 0
publicHost: string
redisEvictionPolicy: string
region: string
tag: string
trustedIps:
- string
DatabaseReplica Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatabaseReplica resource accepts the following input properties:
- Database
Id string - The managed database ID you want to attach this replica to.
- Label string
- A label for the managed database read replica.
- Region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- Ferretdb
Credentials Dictionary<string, object> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- Mysql
Long intQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- Mysql
Require boolPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- Mysql
Slow boolQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- Mysql
Sql List<string>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- Plan
Disk int - The description of the disk(s) on the managed database read replica.
- Public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- Redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- Tag string
- The tag to assign to the managed database read replica.
- Trusted
Ips List<string> - A list of allowed IP addresses for the managed database read replica.
- Database
Id string - The managed database ID you want to attach this replica to.
- Label string
- A label for the managed database read replica.
- Region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- Ferretdb
Credentials map[string]interface{} - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- Mysql
Long intQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- Mysql
Require boolPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- Mysql
Slow boolQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- Mysql
Sql []stringModes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- Plan
Disk int - The description of the disk(s) on the managed database read replica.
- Public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- Redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- Tag string
- The tag to assign to the managed database read replica.
- Trusted
Ips []string - A list of allowed IP addresses for the managed database read replica.
- database
Id String - The managed database ID you want to attach this replica to.
- label String
- A label for the managed database read replica.
- region String
- The ID of the region that the managed database read replica is to be created in. See List Regions
- ferretdb
Credentials Map<String,Object> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- mysql
Long IntegerQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require BooleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow BooleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql List<String>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- plan
Disk Integer - The description of the disk(s) on the managed database read replica.
- public
Host String - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction StringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- tag String
- The tag to assign to the managed database read replica.
- trusted
Ips List<String> - A list of allowed IP addresses for the managed database read replica.
- database
Id string - The managed database ID you want to attach this replica to.
- label string
- A label for the managed database read replica.
- region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- ferretdb
Credentials {[key: string]: any} - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- mysql
Long numberQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require booleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow booleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql string[]Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- plan
Disk number - The description of the disk(s) on the managed database read replica.
- public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- tag string
- The tag to assign to the managed database read replica.
- trusted
Ips string[] - A list of allowed IP addresses for the managed database read replica.
- database_
id str - The managed database ID you want to attach this replica to.
- label str
- A label for the managed database read replica.
- region str
- The ID of the region that the managed database read replica is to be created in. See List Regions
- ferretdb_
credentials Mapping[str, Any] - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- mysql_
long_ intquery_ time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql_
require_ boolprimary_ key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql_
slow_ boolquery_ log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql_
sql_ Sequence[str]modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- plan_
disk int - The description of the disk(s) on the managed database read replica.
- public_
host str - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis_
eviction_ strpolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- tag str
- The tag to assign to the managed database read replica.
- trusted_
ips Sequence[str] - A list of allowed IP addresses for the managed database read replica.
- database
Id String - The managed database ID you want to attach this replica to.
- label String
- A label for the managed database read replica.
- region String
- The ID of the region that the managed database read replica is to be created in. See List Regions
- ferretdb
Credentials Map<Any> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- mysql
Long NumberQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require BooleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow BooleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql List<String>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- plan
Disk Number - The description of the disk(s) on the managed database read replica.
- public
Host String - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction StringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- tag String
- The tag to assign to the managed database read replica.
- trusted
Ips List<String> - A list of allowed IP addresses for the managed database read replica.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseReplica resource produces the following output properties:
- Cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- Database
Engine string - The database engine of the managed database read replica.
- Database
Engine stringVersion - The database engine version of the managed database read replica.
- Date
Created string - The date the managed database read replica was added to your Vultr account.
- Dbname string
- The managed database read replica's default logical database.
- Host string
- The hostname assigned to the managed database read replica.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Backup string - The date of the latest backup available on the managed database read replica.
- Maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- Maintenance
Time string - The preferred maintenance time for the managed database read replica.
- Password string
- The password for the managed database read replica's primary admin user.
- Plan string
- The managed database read replica's plan ID.
- Plan
Ram int - The amount of memory available on the managed database read replica in MB.
- Plan
Replicas int - The number of standby nodes available on the managed database read replica.
- Plan
Vcpus int - The number of virtual CPUs available on the managed database read replica.
- Port string
- The connection port for the managed database read replica.
- Status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- User string
- The primary admin user for the managed database read replica.
- Vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- Cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- Database
Engine string - The database engine of the managed database read replica.
- Database
Engine stringVersion - The database engine version of the managed database read replica.
- Date
Created string - The date the managed database read replica was added to your Vultr account.
- Dbname string
- The managed database read replica's default logical database.
- Host string
- The hostname assigned to the managed database read replica.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Backup string - The date of the latest backup available on the managed database read replica.
- Maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- Maintenance
Time string - The preferred maintenance time for the managed database read replica.
- Password string
- The password for the managed database read replica's primary admin user.
- Plan string
- The managed database read replica's plan ID.
- Plan
Ram int - The amount of memory available on the managed database read replica in MB.
- Plan
Replicas int - The number of standby nodes available on the managed database read replica.
- Plan
Vcpus int - The number of virtual CPUs available on the managed database read replica.
- Port string
- The connection port for the managed database read replica.
- Status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- User string
- The primary admin user for the managed database read replica.
- Vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time StringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine String - The database engine of the managed database read replica.
- database
Engine StringVersion - The database engine version of the managed database read replica.
- date
Created String - The date the managed database read replica was added to your Vultr account.
- dbname String
- The managed database read replica's default logical database.
- host String
- The hostname assigned to the managed database read replica.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Backup String - The date of the latest backup available on the managed database read replica.
- maintenance
Dow String - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time String - The preferred maintenance time for the managed database read replica.
- password String
- The password for the managed database read replica's primary admin user.
- plan String
- The managed database read replica's plan ID.
- plan
Ram Integer - The amount of memory available on the managed database read replica in MB.
- plan
Replicas Integer - The number of standby nodes available on the managed database read replica.
- plan
Vcpus Integer - The number of virtual CPUs available on the managed database read replica.
- port String
- The connection port for the managed database read replica.
- status String
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- user String
- The primary admin user for the managed database read replica.
- vpc
Id String - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine string - The database engine of the managed database read replica.
- database
Engine stringVersion - The database engine version of the managed database read replica.
- date
Created string - The date the managed database read replica was added to your Vultr account.
- dbname string
- The managed database read replica's default logical database.
- host string
- The hostname assigned to the managed database read replica.
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Backup string - The date of the latest backup available on the managed database read replica.
- maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time string - The preferred maintenance time for the managed database read replica.
- password string
- The password for the managed database read replica's primary admin user.
- plan string
- The managed database read replica's plan ID.
- plan
Ram number - The amount of memory available on the managed database read replica in MB.
- plan
Replicas number - The number of standby nodes available on the managed database read replica.
- plan
Vcpus number - The number of virtual CPUs available on the managed database read replica.
- port string
- The connection port for the managed database read replica.
- status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- user string
- The primary admin user for the managed database read replica.
- vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- cluster_
time_ strzone - The configured time zone for the managed database read replica in TZ database format.
- database_
engine str - The database engine of the managed database read replica.
- database_
engine_ strversion - The database engine version of the managed database read replica.
- date_
created str - The date the managed database read replica was added to your Vultr account.
- dbname str
- The managed database read replica's default logical database.
- host str
- The hostname assigned to the managed database read replica.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
backup str - The date of the latest backup available on the managed database read replica.
- maintenance_
dow str - The preferred maintenance day of week for the managed database read replica.
- maintenance_
time str - The preferred maintenance time for the managed database read replica.
- password str
- The password for the managed database read replica's primary admin user.
- plan str
- The managed database read replica's plan ID.
- plan_
ram int - The amount of memory available on the managed database read replica in MB.
- plan_
replicas int - The number of standby nodes available on the managed database read replica.
- plan_
vcpus int - The number of virtual CPUs available on the managed database read replica.
- port str
- The connection port for the managed database read replica.
- status str
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- user str
- The primary admin user for the managed database read replica.
- vpc_
id str - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time StringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine String - The database engine of the managed database read replica.
- database
Engine StringVersion - The database engine version of the managed database read replica.
- date
Created String - The date the managed database read replica was added to your Vultr account.
- dbname String
- The managed database read replica's default logical database.
- host String
- The hostname assigned to the managed database read replica.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Backup String - The date of the latest backup available on the managed database read replica.
- maintenance
Dow String - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time String - The preferred maintenance time for the managed database read replica.
- password String
- The password for the managed database read replica's primary admin user.
- plan String
- The managed database read replica's plan ID.
- plan
Ram Number - The amount of memory available on the managed database read replica in MB.
- plan
Replicas Number - The number of standby nodes available on the managed database read replica.
- plan
Vcpus Number - The number of virtual CPUs available on the managed database read replica.
- port String
- The connection port for the managed database read replica.
- status String
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- user String
- The primary admin user for the managed database read replica.
- vpc
Id String - The ID of the VPC Network attached to the managed database read replica.
Look up Existing DatabaseReplica Resource
Get an existing DatabaseReplica resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabaseReplicaState, opts?: CustomResourceOptions): DatabaseReplica
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_time_zone: Optional[str] = None,
database_engine: Optional[str] = None,
database_engine_version: Optional[str] = None,
database_id: Optional[str] = None,
date_created: Optional[str] = None,
dbname: Optional[str] = None,
ferretdb_credentials: Optional[Mapping[str, Any]] = None,
host: Optional[str] = None,
label: Optional[str] = None,
latest_backup: Optional[str] = None,
maintenance_dow: Optional[str] = None,
maintenance_time: Optional[str] = None,
mysql_long_query_time: Optional[int] = None,
mysql_require_primary_key: Optional[bool] = None,
mysql_slow_query_log: Optional[bool] = None,
mysql_sql_modes: Optional[Sequence[str]] = None,
password: Optional[str] = None,
plan: Optional[str] = None,
plan_disk: Optional[int] = None,
plan_ram: Optional[int] = None,
plan_replicas: Optional[int] = None,
plan_vcpus: Optional[int] = None,
port: Optional[str] = None,
public_host: Optional[str] = None,
redis_eviction_policy: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
tag: Optional[str] = None,
trusted_ips: Optional[Sequence[str]] = None,
user: Optional[str] = None,
vpc_id: Optional[str] = None) -> DatabaseReplica
func GetDatabaseReplica(ctx *Context, name string, id IDInput, state *DatabaseReplicaState, opts ...ResourceOption) (*DatabaseReplica, error)
public static DatabaseReplica Get(string name, Input<string> id, DatabaseReplicaState? state, CustomResourceOptions? opts = null)
public static DatabaseReplica get(String name, Output<String> id, DatabaseReplicaState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- Database
Engine string - The database engine of the managed database read replica.
- Database
Engine stringVersion - The database engine version of the managed database read replica.
- Database
Id string - The managed database ID you want to attach this replica to.
- Date
Created string - The date the managed database read replica was added to your Vultr account.
- Dbname string
- The managed database read replica's default logical database.
- Ferretdb
Credentials Dictionary<string, object> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- Host string
- The hostname assigned to the managed database read replica.
- Label string
- A label for the managed database read replica.
- Latest
Backup string - The date of the latest backup available on the managed database read replica.
- Maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- Maintenance
Time string - The preferred maintenance time for the managed database read replica.
- Mysql
Long intQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- Mysql
Require boolPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- Mysql
Slow boolQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- Mysql
Sql List<string>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- Password string
- The password for the managed database read replica's primary admin user.
- Plan string
- The managed database read replica's plan ID.
- Plan
Disk int - The description of the disk(s) on the managed database read replica.
- Plan
Ram int - The amount of memory available on the managed database read replica in MB.
- Plan
Replicas int - The number of standby nodes available on the managed database read replica.
- Plan
Vcpus int - The number of virtual CPUs available on the managed database read replica.
- Port string
- The connection port for the managed database read replica.
- Public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- Redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- Region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- Status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- Tag string
- The tag to assign to the managed database read replica.
- Trusted
Ips List<string> - A list of allowed IP addresses for the managed database read replica.
- User string
- The primary admin user for the managed database read replica.
- Vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- Cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- Database
Engine string - The database engine of the managed database read replica.
- Database
Engine stringVersion - The database engine version of the managed database read replica.
- Database
Id string - The managed database ID you want to attach this replica to.
- Date
Created string - The date the managed database read replica was added to your Vultr account.
- Dbname string
- The managed database read replica's default logical database.
- Ferretdb
Credentials map[string]interface{} - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- Host string
- The hostname assigned to the managed database read replica.
- Label string
- A label for the managed database read replica.
- Latest
Backup string - The date of the latest backup available on the managed database read replica.
- Maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- Maintenance
Time string - The preferred maintenance time for the managed database read replica.
- Mysql
Long intQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- Mysql
Require boolPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- Mysql
Slow boolQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- Mysql
Sql []stringModes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- Password string
- The password for the managed database read replica's primary admin user.
- Plan string
- The managed database read replica's plan ID.
- Plan
Disk int - The description of the disk(s) on the managed database read replica.
- Plan
Ram int - The amount of memory available on the managed database read replica in MB.
- Plan
Replicas int - The number of standby nodes available on the managed database read replica.
- Plan
Vcpus int - The number of virtual CPUs available on the managed database read replica.
- Port string
- The connection port for the managed database read replica.
- Public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- Redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- Region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- Status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- Tag string
- The tag to assign to the managed database read replica.
- Trusted
Ips []string - A list of allowed IP addresses for the managed database read replica.
- User string
- The primary admin user for the managed database read replica.
- Vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time StringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine String - The database engine of the managed database read replica.
- database
Engine StringVersion - The database engine version of the managed database read replica.
- database
Id String - The managed database ID you want to attach this replica to.
- date
Created String - The date the managed database read replica was added to your Vultr account.
- dbname String
- The managed database read replica's default logical database.
- ferretdb
Credentials Map<String,Object> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- host String
- The hostname assigned to the managed database read replica.
- label String
- A label for the managed database read replica.
- latest
Backup String - The date of the latest backup available on the managed database read replica.
- maintenance
Dow String - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time String - The preferred maintenance time for the managed database read replica.
- mysql
Long IntegerQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require BooleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow BooleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql List<String>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- password String
- The password for the managed database read replica's primary admin user.
- plan String
- The managed database read replica's plan ID.
- plan
Disk Integer - The description of the disk(s) on the managed database read replica.
- plan
Ram Integer - The amount of memory available on the managed database read replica in MB.
- plan
Replicas Integer - The number of standby nodes available on the managed database read replica.
- plan
Vcpus Integer - The number of virtual CPUs available on the managed database read replica.
- port String
- The connection port for the managed database read replica.
- public
Host String - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction StringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- region String
- The ID of the region that the managed database read replica is to be created in. See List Regions
- status String
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- tag String
- The tag to assign to the managed database read replica.
- trusted
Ips List<String> - A list of allowed IP addresses for the managed database read replica.
- user String
- The primary admin user for the managed database read replica.
- vpc
Id String - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time stringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine string - The database engine of the managed database read replica.
- database
Engine stringVersion - The database engine version of the managed database read replica.
- database
Id string - The managed database ID you want to attach this replica to.
- date
Created string - The date the managed database read replica was added to your Vultr account.
- dbname string
- The managed database read replica's default logical database.
- ferretdb
Credentials {[key: string]: any} - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- host string
- The hostname assigned to the managed database read replica.
- label string
- A label for the managed database read replica.
- latest
Backup string - The date of the latest backup available on the managed database read replica.
- maintenance
Dow string - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time string - The preferred maintenance time for the managed database read replica.
- mysql
Long numberQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require booleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow booleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql string[]Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- password string
- The password for the managed database read replica's primary admin user.
- plan string
- The managed database read replica's plan ID.
- plan
Disk number - The description of the disk(s) on the managed database read replica.
- plan
Ram number - The amount of memory available on the managed database read replica in MB.
- plan
Replicas number - The number of standby nodes available on the managed database read replica.
- plan
Vcpus number - The number of virtual CPUs available on the managed database read replica.
- port string
- The connection port for the managed database read replica.
- public
Host string - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction stringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- region string
- The ID of the region that the managed database read replica is to be created in. See List Regions
- status string
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- tag string
- The tag to assign to the managed database read replica.
- trusted
Ips string[] - A list of allowed IP addresses for the managed database read replica.
- user string
- The primary admin user for the managed database read replica.
- vpc
Id string - The ID of the VPC Network attached to the managed database read replica.
- cluster_
time_ strzone - The configured time zone for the managed database read replica in TZ database format.
- database_
engine str - The database engine of the managed database read replica.
- database_
engine_ strversion - The database engine version of the managed database read replica.
- database_
id str - The managed database ID you want to attach this replica to.
- date_
created str - The date the managed database read replica was added to your Vultr account.
- dbname str
- The managed database read replica's default logical database.
- ferretdb_
credentials Mapping[str, Any] - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- host str
- The hostname assigned to the managed database read replica.
- label str
- A label for the managed database read replica.
- latest_
backup str - The date of the latest backup available on the managed database read replica.
- maintenance_
dow str - The preferred maintenance day of week for the managed database read replica.
- maintenance_
time str - The preferred maintenance time for the managed database read replica.
- mysql_
long_ intquery_ time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql_
require_ boolprimary_ key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql_
slow_ boolquery_ log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql_
sql_ Sequence[str]modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- password str
- The password for the managed database read replica's primary admin user.
- plan str
- The managed database read replica's plan ID.
- plan_
disk int - The description of the disk(s) on the managed database read replica.
- plan_
ram int - The amount of memory available on the managed database read replica in MB.
- plan_
replicas int - The number of standby nodes available on the managed database read replica.
- plan_
vcpus int - The number of virtual CPUs available on the managed database read replica.
- port str
- The connection port for the managed database read replica.
- public_
host str - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis_
eviction_ strpolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- region str
- The ID of the region that the managed database read replica is to be created in. See List Regions
- status str
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- tag str
- The tag to assign to the managed database read replica.
- trusted_
ips Sequence[str] - A list of allowed IP addresses for the managed database read replica.
- user str
- The primary admin user for the managed database read replica.
- vpc_
id str - The ID of the VPC Network attached to the managed database read replica.
- cluster
Time StringZone - The configured time zone for the managed database read replica in TZ database format.
- database
Engine String - The database engine of the managed database read replica.
- database
Engine StringVersion - The database engine version of the managed database read replica.
- database
Id String - The managed database ID you want to attach this replica to.
- date
Created String - The date the managed database read replica was added to your Vultr account.
- dbname String
- The managed database read replica's default logical database.
- ferretdb
Credentials Map<Any> - An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
- host String
- The hostname assigned to the managed database read replica.
- label String
- A label for the managed database read replica.
- latest
Backup String - The date of the latest backup available on the managed database read replica.
- maintenance
Dow String - The preferred maintenance day of week for the managed database read replica.
- maintenance
Time String - The preferred maintenance time for the managed database read replica.
- mysql
Long NumberQuery Time - The configuration value for the long query time (in seconds) on the managed database read replica (MySQL engine types only).
- mysql
Require BooleanPrimary Key - The configuration value for whether primary keys are required on the managed database read replica (MySQL engine types only).
- mysql
Slow BooleanQuery Log - The configuration value for slow query logging on the managed database read replica (MySQL engine types only).
- mysql
Sql List<String>Modes - A list of SQL modes currently configured for the managed database read replica (MySQL engine types only).
- password String
- The password for the managed database read replica's primary admin user.
- plan String
- The managed database read replica's plan ID.
- plan
Disk Number - The description of the disk(s) on the managed database read replica.
- plan
Ram Number - The amount of memory available on the managed database read replica in MB.
- plan
Replicas Number - The number of standby nodes available on the managed database read replica.
- plan
Vcpus Number - The number of virtual CPUs available on the managed database read replica.
- port String
- The connection port for the managed database read replica.
- public
Host String - The public hostname assigned to the managed database read replica (VPC-attached only).
- redis
Eviction StringPolicy - The configuration value for the data eviction policy on the managed database read replica (Redis engine types only).
- region String
- The ID of the region that the managed database read replica is to be created in. See List Regions
- status String
- The current status of the managed database read replica (poweroff, rebuilding, rebalancing, configuring, running).
- tag String
- The tag to assign to the managed database read replica.
- trusted
Ips List<String> - A list of allowed IP addresses for the managed database read replica.
- user String
- The primary admin user for the managed database read replica.
- vpc
Id String - The ID of the VPC Network attached to the managed database read replica.
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.