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

NameDatatypeDescription
backupNametextfield from the properties object
backup_name_v2textfield from the properties object
backup_typetextfield from the properties object
completed_timetextfield from the properties object
provisioning_statetextfield 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, subscriptionIdGet backup for a given server.
listSELECTresourceGroupName, serverName, subscriptionIdList all the backups for a given server.
createINSERTbackupName, 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_name_v2,
backup_type,
completed_time,
provisioning_state,
resourceGroupName,
serverName,
source,
subscriptionId
FROM azure.mysql.vw_long_running_backups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new long_running_backups resource.

/*+ create */
INSERT INTO azure.mysql.long_running_backups (
backupName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ backupName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;