Compartir a través de


GeoBackupPolicies interface

Interface representing a GeoBackupPolicies.

Methods

createOrUpdate(string, string, string, string, GeoBackupPolicy, GeoBackupPoliciesCreateOrUpdateOptionalParams)

Updates a database geo backup policy.

get(string, string, string, string, GeoBackupPoliciesGetOptionalParams)

Gets a geo backup policy.

listByDatabase(string, string, string, GeoBackupPoliciesListByDatabaseOptionalParams)

Returns a list of geo backup policies.

Method Details

createOrUpdate(string, string, string, string, GeoBackupPolicy, GeoBackupPoliciesCreateOrUpdateOptionalParams)

Updates a database geo backup policy.

function createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: string, parameters: GeoBackupPolicy, options?: GeoBackupPoliciesCreateOrUpdateOptionalParams): Promise<GeoBackupPolicy>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

geoBackupPolicyName

string

The name of the geo backup policy.

parameters
GeoBackupPolicy

The required parameters for creating or updating the geo backup policy.

options
GeoBackupPoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<GeoBackupPolicy>

get(string, string, string, string, GeoBackupPoliciesGetOptionalParams)

Gets a geo backup policy.

function get(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: string, options?: GeoBackupPoliciesGetOptionalParams): Promise<GeoBackupPolicy>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

geoBackupPolicyName

string

The name of the geo backup policy.

options
GeoBackupPoliciesGetOptionalParams

The options parameters.

Returns

Promise<GeoBackupPolicy>

listByDatabase(string, string, string, GeoBackupPoliciesListByDatabaseOptionalParams)

Returns a list of geo backup policies.

function listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator<GeoBackupPolicy, GeoBackupPolicy[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database.

options
GeoBackupPoliciesListByDatabaseOptionalParams

The options parameters.

Returns