Documentation

DatabaseBackups extends CloudApiBase implements CloudApiInterface

Class DatabaseBackups

Table of Contents

$client ClientInterface
create() Backup a database. OperationResponse
getAll() Shows all database backups in an environment. BackupsResponse
get() Gets information about a database backup. BackupResponse
restore() Restores a database backup to a database in an environment. OperationResponse
download() Downloads a database backup. StreamInterface
delete() Deletes a database backup. OperationResponse
__construct() Client constructor. mixed

Properties

Methods

getAll()

Shows all database backups in an environment.

public getAll( $environmentUuid : string , $dbName : string ) : BackupsResponse
Parameters
$environmentUuid : string
$dbName : string
Return values
BackupsResponse

get()

Gets information about a database backup.

public get( $environmentUuid : string , $dbName : string , $backupId : int ) : BackupResponse
Parameters
$environmentUuid : string
$dbName : string
$backupId : int
Return values
BackupResponse

restore()

Restores a database backup to a database in an environment.

public restore( $environmentUuid : string , $dbName : string , $backupId : int ) : OperationResponse
Parameters
$environmentUuid : string
$dbName : string
$backupId : int
Return values
OperationResponse

download()

Downloads a database backup.

public download( $environmentUuid : string , $dbName : string , $backupId : int ) : StreamInterface
Parameters
$environmentUuid : string
$dbName : string
$backupId : int
Return values
StreamInterface

delete()

Deletes a database backup.

public delete( $environmentUuid : string , $dbName : string , $backupId : int ) : OperationResponse
Parameters
$environmentUuid : string
$dbName : string
$backupId : int
Return values
OperationResponse

Search results