Skip to main content

long_term_retention_managed_instance_backups_by_instances

Creates, updates, deletes, gets or lists a long_term_retention_managed_instance_backups_by_instances resource.

Overview

Namelong_term_retention_managed_instance_backups_by_instances
TypeResource
Idazure.sql.long_term_retention_managed_instance_backups_by_instances

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the list of backups.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlocationName, managedInstanceName, subscriptionIdonlyLatestPerDatabase, databaseStateLists the long term retention backups for a given managed instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationNamestringThe location of the database
managedInstanceNamestringThe name of the managed instance.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.
databaseStatestringWhether to query against just live databases, just deleted databases, or all databases.
onlyLatestPerDatabasebooleanWhether or not to only get the latest backup for each database.

SELECT examples

Lists the long term retention backups for a given managed instance.

SELECT
properties
FROM azure.sql.long_term_retention_managed_instance_backups_by_instances
WHERE locationName = '{{ locationName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND onlyLatestPerDatabase = '{{ onlyLatestPerDatabase }}'
AND databaseState = '{{ databaseState }}'
;