Skip to main content

long_term_retention_managed_instance_backups_by_resource_group_instances

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

Overview

Namelong_term_retention_managed_instance_backups_by_resource_group_instances
TypeResource
Idazure.sql.long_term_retention_managed_instance_backups_by_resource_group_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
listselectresourceGroupName, locationName, 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.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
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_resource_group_instances
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND locationName = '{{ locationName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND onlyLatestPerDatabase = '{{ onlyLatestPerDatabase }}'
AND databaseState = '{{ databaseState }}'
;