BackupShortTermRetentionPolicies interface

Interface representing a BackupShortTermRetentionPolicies.

Methods

beginCreateOrUpdate(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)

Updates a database's short term retention policy.

beginCreateOrUpdateAndWait(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)

Updates a database's short term retention policy.

beginUpdate(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesUpdateOptionalParams)

Updates a database's short term retention policy.

beginUpdateAndWait(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesUpdateOptionalParams)

Updates a database's short term retention policy.

get(string, string, string, string, BackupShortTermRetentionPoliciesGetOptionalParams)

Gets a database's short term retention policy.

listByDatabase(string, string, string, BackupShortTermRetentionPoliciesListByDatabaseOptionalParams)

Gets a database's short term retention policy.

Method Details

beginCreateOrUpdate(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)

Updates a database's short term retention policy.

function beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, policyName: string, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<BackupShortTermRetentionPolicy>, BackupShortTermRetentionPolicy>>

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.

policyName

string

The policy name. Should always be "default".

parameters
BackupShortTermRetentionPolicy

The short term retention policy info.

Returns

beginCreateOrUpdateAndWait(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)

Updates a database's short term retention policy.

function beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, policyName: string, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise<BackupShortTermRetentionPolicy>

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.

policyName

string

The policy name. Should always be "default".

parameters
BackupShortTermRetentionPolicy

The short term retention policy info.

Returns

beginUpdate(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesUpdateOptionalParams)

Updates a database's short term retention policy.

function beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, policyName: string, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<BackupShortTermRetentionPolicy>, BackupShortTermRetentionPolicy>>

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.

policyName

string

The policy name. Should always be "default".

parameters
BackupShortTermRetentionPolicy

The short term retention policy info.

Returns

beginUpdateAndWait(string, string, string, string, BackupShortTermRetentionPolicy, BackupShortTermRetentionPoliciesUpdateOptionalParams)

Updates a database's short term retention policy.

function beginUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, policyName: string, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesUpdateOptionalParams): Promise<BackupShortTermRetentionPolicy>

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.

policyName

string

The policy name. Should always be "default".

parameters
BackupShortTermRetentionPolicy

The short term retention policy info.

Returns

get(string, string, string, string, BackupShortTermRetentionPoliciesGetOptionalParams)

Gets a database's short term retention policy.

function get(resourceGroupName: string, serverName: string, databaseName: string, policyName: string, options?: BackupShortTermRetentionPoliciesGetOptionalParams): Promise<BackupShortTermRetentionPolicy>

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.

policyName

string

The policy name. Should always be "default".

options
BackupShortTermRetentionPoliciesGetOptionalParams

The options parameters.

Returns

listByDatabase(string, string, string, BackupShortTermRetentionPoliciesListByDatabaseOptionalParams)

Gets a database's short term retention policy.

function listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator<BackupShortTermRetentionPolicy, BackupShortTermRetentionPolicy[], 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.

Returns