Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure.mysql.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, backupNameList all the backups for a given server.
list_by_serverselectsubscriptionId, resourceGroupName, serverNameList all the backups for a given server.
putreplacesubscriptionId, 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

List all the backups for a given server.

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

REPLACE examples

Create backup for a given server with specified backup name.

REPLACE azure.mysql.backups
SET
-- No updatable properties
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serverName = '{{ serverName }}' --required
AND backupName = '{{ backupName }}' --required
RETURNING
properties;