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.long_running_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe properties of a server backup.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serverName, backupNameGet backup for a given server.
listselectsubscriptionId, resourceGroupName, serverNameList all the backups for a given server.
createinsertsubscriptionId, resourceGroupName, serverName, backupNameCreate backup for a given server with specified backup name.

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
backupNamestringThe name of the backup.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serverNamestringThe name of the server.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get backup for a given server.

SELECT
properties
FROM azure.mysql.long_running_backups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND backupName = '{{ backupName }}' -- required
;

INSERT examples

Create backup for a given server with specified backup name.

INSERT INTO azure.mysql.long_running_backups (
data__properties,
subscriptionId,
resourceGroupName,
serverName,
backupName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ backupName }}'
RETURNING
properties
;