Share via


Backups interface

Interface representing a Backups.

Methods

get(string, string, string, BackupsGetOptionalParams)

List all the backups for a given server.

listByServer(string, string, BackupsListByServerOptionalParams)

List all the backups for a given server.

put(string, string, string, BackupsPutOptionalParams)

Create backup for a given server with specified backup name.

Method Details

get(string, string, string, BackupsGetOptionalParams)

List all the backups for a given server.

function get(resourceGroupName: string, serverName: string, backupName: string, options?: BackupsGetOptionalParams): Promise<ServerBackup>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

backupName

string

The name of the backup.

options
BackupsGetOptionalParams

The options parameters.

Returns

Promise<ServerBackup>

listByServer(string, string, BackupsListByServerOptionalParams)

List all the backups for a given server.

function listByServer(resourceGroupName: string, serverName: string, options?: BackupsListByServerOptionalParams): PagedAsyncIterableIterator<ServerBackup, ServerBackup[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

options
BackupsListByServerOptionalParams

The options parameters.

Returns

put(string, string, string, BackupsPutOptionalParams)

Create backup for a given server with specified backup name.

function put(resourceGroupName: string, serverName: string, backupName: string, options?: BackupsPutOptionalParams): Promise<ServerBackup>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serverName

string

The name of the server.

backupName

string

The name of the backup.

options
BackupsPutOptionalParams

The options parameters.

Returns

Promise<ServerBackup>