ManagedBackupShortTermRetentionPolicies interface
Interface representing a ManagedBackupShortTermRetentionPolicies.
Methods
Method Details
beginCreateOrUpdate(string, string, string, string, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)
Updates a managed database's short term retention policy.
function beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: string, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedBackupShortTermRetentionPolicy>, ManagedBackupShortTermRetentionPolicy>>
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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
- policyName
-
string
The policy name. Should always be "default".
- parameters
- ManagedBackupShortTermRetentionPolicy
The short term retention policy info.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<ManagedBackupShortTermRetentionPolicy>, ManagedBackupShortTermRetentionPolicy>>
beginCreateOrUpdateAndWait(string, string, string, string, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams)
Updates a managed database's short term retention policy.
function beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: string, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise<ManagedBackupShortTermRetentionPolicy>
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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
- policyName
-
string
The policy name. Should always be "default".
- parameters
- ManagedBackupShortTermRetentionPolicy
The short term retention policy info.
The options parameters.
Returns
beginUpdate(string, string, string, string, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams)
Updates a managed database's short term retention policy.
function beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: string, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedBackupShortTermRetentionPolicy>, ManagedBackupShortTermRetentionPolicy>>
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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
- policyName
-
string
The policy name. Should always be "default".
- parameters
- ManagedBackupShortTermRetentionPolicy
The short term retention policy info.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<ManagedBackupShortTermRetentionPolicy>, ManagedBackupShortTermRetentionPolicy>>
beginUpdateAndWait(string, string, string, string, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams)
Updates a managed database's short term retention policy.
function beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: string, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise<ManagedBackupShortTermRetentionPolicy>
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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
- policyName
-
string
The policy name. Should always be "default".
- parameters
- ManagedBackupShortTermRetentionPolicy
The short term retention policy info.
The options parameters.
Returns
get(string, string, string, string, ManagedBackupShortTermRetentionPoliciesGetOptionalParams)
Gets a managed database's short term retention policy.
function get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: string, options?: ManagedBackupShortTermRetentionPoliciesGetOptionalParams): Promise<ManagedBackupShortTermRetentionPolicy>
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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
- policyName
-
string
The policy name.
The options parameters.
Returns
listByDatabase(string, string, string, ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams)
Gets a managed database's short term retention policy list.
function listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator<ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPolicy[], 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.
- managedInstanceName
-
string
The name of the managed instance.
- databaseName
-
string
The name of the database.
The options parameters.