Skip to main content

long_running_backups

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

Overview

Namelong_running_backups
TypeResource
Idazure.mysql_flexible_servers.long_running_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
backupNameV2stringBackup name.
backupTypestring"FULL"
completedTimestring (date-time)Backup completed time (ISO8601 format).
provisioningStatestringThe provisioning state of backup resource. Known values are: "Succeeded", "Creating", "Deleting", "Failed", and "Canceled".
sourcestringBackup source.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, backup_name, subscription_idGet backup for a given server.
listselectresource_group_name, server_name, subscription_idList all the backups for a given server.

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
backup_namestringThe name of the backup. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Get backup for a given server.

SELECT
id,
name,
backupNameV2,
backupType,
completedTime,
provisioningState,
source,
systemData,
type
FROM azure.mysql_flexible_servers.long_running_backups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND backup_name = '{{ backup_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;