Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idazure.mysql.configurations

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
allowed_valuestextfield from the properties object
configurationNametextfield from the properties object
current_valuetextfield from the properties object
data_typetextfield from the properties object
default_valuetextfield from the properties object
documentation_linktextfield from the properties object
is_config_pending_restarttextfield from the properties object
is_dynamic_configtextfield from the properties object
is_read_onlytextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
valuetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, resourceGroupName, serverName, subscriptionIdGets information about a configuration of server.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdList all the configurations in a given server.
create_or_updateINSERTconfigurationName, resourceGroupName, serverName, subscriptionIdUpdates a configuration of a server.
updateUPDATEconfigurationName, resourceGroupName, serverName, subscriptionIdUpdates a configuration of a server.
batch_updateEXECresourceGroupName, serverName, subscriptionIdUpdate a list of configurations in a given server.

SELECT examples

List all the configurations in a given server.

SELECT
description,
allowed_values,
configurationName,
current_value,
data_type,
default_value,
documentation_link,
is_config_pending_restart,
is_dynamic_config,
is_read_only,
resourceGroupName,
serverName,
source,
subscriptionId,
value
FROM azure.mysql.vw_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a configurations resource.

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