Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure.mysql.backups

Fields

NameDatatypeDescription
backupNametextfield from the properties object
backup_typetextfield from the properties object
completed_timetextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbackupName, resourceGroupName, serverName, subscriptionIdList all the backups for a given server.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdList all the backups for a given server.
putREPLACEbackupName, resourceGroupName, serverName, subscriptionIdCreate backup for a given server with specified backup name.

SELECT examples

List all the backups for a given server.

SELECT
backupName,
backup_type,
completed_time,
resourceGroupName,
serverName,
source,
subscriptionId
FROM azure.mysql.vw_backups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified backups resource.

/*+ update */
REPLACE azure.mysql.backups
SET

WHERE
backupName = '{{ backupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';