original documentation
try {
const input = {
name : '' , // string;
engine : '' , // string
version : '' , // string
size : '' , // string
region : '' // string
num_nodes : 0 , // number
tags : [ '' ] , // string[]
} ;
const { data :{ database} } = await dots . database . createDatabaseCluster ( input ) ;
console . log ( database ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
} ;
const { data :{ database} } = await dots . database . getDatabaseCluster ( input ) ;
console . log ( database ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ databases} } = await dots . database . listDatabaseClusters ( input ) ;
console . log ( databases ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const { data :{ options} } = await dots . database . listDatabaseOptions ( ) ;
console . log ( options ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
size : '' , // string
num_nodes : 0 , // number
database_cluster_id : '' , // string
} ;
const { status} = await dots . database . resizeDatabaseCluster ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
region : '' , // string
database_cluster_id : '' , // string
} ;
const { status} = await dots . database . migrateDatabaseCluster ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
update-database-cluster-firewall-rules
original documentation
try {
const input = {
database_cluster_id : '' , // string
rules : [ ] , // IDatabaseClusterFirewallRule[]
} ;
const { status} = await dots . database . updateDatabaseClusterFirewallRules ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
list-database-cluster-firewall-rules
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ rules} } = await dots . database . listDatabaseClusterFirewallRules ( input ) ;
console . log ( rules ) ;
} catch ( error ) {
console . log ( error ) ;
}
configure-database-cluster-maintenance-window
original documentation
try {
const input = {
database_cluster_id : '' , // string
day : '' , // number
hour : '' , // number
} ;
const { status} = await dots . database . configureDatabaseClusterMaintenanceWindow ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
list-database-cluster-backups
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ backups} } = await dots . database . listDatabaseClusterBackups ( input ) ;
console . log ( backups ) ;
} catch ( error ) {
console . log ( error ) ;
}
restore-database-cluster-backup
original documentation
try {
const input = {
name : '' , // string
backup_restore : {
database_name : '' , // string
backup_created_at : '' , // string
} ,
engine : '' , // string
version : '' , // string
region : '' , // string
size : '' , // string
num_nodes : 0 , // number
} ;
const { data :{ database} } = await dots . database . restoreDatabaseClusterBackup ( input ) ;
console . log ( database ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
} ;
const { status} = await dots . database . destroyDatabaseCluster ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
name : '' , // string
region : '' , // string
size : '' , // string
} ;
const { data :{ replica} } = await dots . database . createReadOnlyReplica ( input ) ;
console . log ( replica ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
read_only_replica_name : '' , // string
} ;
const { data :{ replica} } = await dots . database . getReadOnlyReplica ( input ) ;
console . log ( replica ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ replicas} } = await dots . database . listReadOnlyReplicas ( input ) ;
console . log ( replicas ) ;
} catch ( error ) {
console . log ( error ) ;
}
destroy-read-only-replica
original documentation
try {
const input = {
database_cluster_id : '' , // string
read_only_replica_name : '' , // string
} ;
const { status} = await dots . database . destroyReadOnlyReplica ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
create-database-cluster-user
original documentation
try {
const input = {
database_cluster_id : '' , // string
user_name : '' , // string
} ;
const { data :{ user} } = await dots . database . createDatabaseClusterUser ( input ) ;
console . log ( user ) ;
} catch ( error ) {
console . log ( error ) ;
}
get-database-cluster-user
original documentation
try {
const input = {
database_cluster_id : '' , // string
user_name : '' , // string
} ;
const { data :{ user} } = await dots . database . getDatabaseClusterUser ( input ) ;
console . log ( user ) ;
} catch ( error ) {
console . log ( error ) ;
}
list-database-cluster-users
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ users} } = await dots . database . listDatabaseClusterUsers ( input ) ;
console . log ( users ) ;
} catch ( error ) {
console . log ( error ) ;
}
remove-database-cluster-user
original documentation
try {
const input = {
database_cluster_id : '' , // string
user_name : '' , // string
} ;
const { status} = await dots . database . removeDatabaseClusterUser ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
create-database-cluster-db
original documentation
try {
const input = {
database_cluster_id : '' , // string
db_name : '' , // string
} ;
const { data :{ db} } = await dots . database . createDatabaseClusterDb ( input ) ;
console . log ( db ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
db_name : '' , // string
} ;
const { data :{ db} } = await dots . database . getDatabaseClusterDb ( input ) ;
console . log ( db ) ;
} catch ( error ) {
console . log ( error ) ;
}
list-database-cluster-dbs
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ dbs} } = await dots . database . listDatabaseClusterDbs ( input ) ;
console . log ( dbs ) ;
} catch ( error ) {
console . log ( error ) ;
}
delete-database-cluster-db
original documentation
try {
const input = {
database_cluster_id : '' , // string
db_name : '' , // string
} ;
const { status} = await dots . database . deleteDatabaseClusterDb ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
db_name : '' , // string
mode : '' , // string
pool_name : '' , // string
size : 0 , // number
user_name : '' , // string
} ;
const { data :{ pool} } = await dots . database . createConnectionPool ( input ) ;
console . log ( pool ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ pools} } = await dots . database . listConnectionPools ( input ) ;
console . log ( pools ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
pool_name : '' , // string
} ;
const { data :{ pool} } = await dots . database . getConnectionPool ( input ) ;
console . log ( pool ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
database_cluster_id : '' , // string
pool_name : '' , // string
} ;
const { status} = await dots . database . deleteConnectionPool ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
get-database-cluster-eviction-policy
original documentation
try {
const input = {
database_cluster_id : '' , // string
} ;
const { data :{ eviction_policy} } = await dots . database . getDatabaseClusterEvictionPolicy ( input ) ;
console . log ( eviction_policy ) ;
} catch ( error ) {
console . log ( error ) ;
}
configure-database-cluster-eviction-policy
original documentation
try {
const input = {
database_cluster_id : '' , // string
eviction_policy : '' , // string
} ;
const { status} = await dots . database . configureDatabaseClusterEvictionPolicy ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
get-database-cluster-sql-mode
original documentation
try {
const input = {
database_cluster_id : '' , // string
} ;
const { data :{ sql_mode} } = await dots . database . getDatabaseClusterSqlMode ( input ) ;
console . log ( sql_mode ) ;
} catch ( error ) {
console . log ( error ) ;
}
configure-database-cluster-sql-modes
original documentation
try {
const input = {
database_cluster_id : '' , // string
sql_mode : '' , // string
} ;
const { status} = await dots . database . configureDatabaseClusterSqlModes ( input ) ;
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}