Skip to main content

maintenances

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

Overview

Namemaintenances
TypeResource
Idazure.mysql.maintenances

Fields

NameDatatypeDescription
propertiesobjectThe properties of a maintenance resource.

Methods

NameAccessible byRequired ParamsDescription
listSELECTresourceGroupName, serverName, subscriptionIdList maintenances.
updateUPDATEmaintenanceName, resourceGroupName, serverName, subscriptionIdUpdate maintenances.
readEXECmaintenanceName, resourceGroupName, serverName, subscriptionIdRead maintenance.

SELECT examples

List maintenances.

SELECT
properties
FROM azure.mysql.maintenances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a maintenances resource.

/*+ update */
UPDATE azure.mysql.maintenances
SET
properties = '{{ properties }}'
WHERE
maintenanceName = '{{ maintenanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';