Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idazure.mysql_flexible_servers.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
allowedValuesstringAllowed values of the configuration.
currentValuestringCurrent value of the configuration.
dataTypestringData type of the configuration.
defaultValuestringDefault value of the configuration.
descriptionstringDescription of the configuration.
documentationLinkstringThe link used to get the document from community or Azure site.
isConfigPendingRestartstringIf is the configuration pending restart or not. Known values are: "True" and "False".
isDynamicConfigstringIf is the configuration dynamic. Known values are: "True" and "False".
isReadOnlystringIf is the configuration read only. Known values are: "True" and "False".
sourcestringSource of the configuration. Known values are: "system-default" and "user-override".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
valuestringValue of the configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, configuration_name, subscription_idGets information about a configuration of server.
list_by_serverselectresource_group_name, server_name, subscription_idtags, keyword, page, pageSizeList all the configurations in a given server.
create_or_updateinsertresource_group_name, server_name, configuration_name, subscription_idUpdates a configuration of a server.
updateupdateresource_group_name, server_name, configuration_name, subscription_idUpdates a configuration of a server.
create_or_updatereplaceresource_group_name, server_name, configuration_name, subscription_idUpdates a configuration of a server.
batch_updateexecresource_group_name, server_name, subscription_idUpdate a list of configurations in a given server.

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
configuration_namestringThe name of the server configuration. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring
keywordstringThe keyword of the server configuration. Default value is None.
pageintegerThe page of the server configuration. Default value is None.
pageSizeintegerThe pageSize of the server configuration. Default value is None.
tagsstringThe tags of the server configuration. Default value is None.

SELECT examples

Gets information about a configuration of server.

SELECT
id,
name,
allowedValues,
currentValue,
dataType,
defaultValue,
description,
documentationLink,
isConfigPendingRestart,
isDynamicConfig,
isReadOnly,
source,
systemData,
type,
value
FROM azure.mysql_flexible_servers.configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Updates a configuration of a server.

INSERT INTO azure.mysql_flexible_servers.configurations (
properties,
resource_group_name,
server_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates a configuration of a server.

UPDATE azure.mysql_flexible_servers.configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Updates a configuration of a server.

REPLACE azure.mysql_flexible_servers.configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

Lifecycle Methods

Update a list of configurations in a given server.

EXEC azure.mysql_flexible_servers.configurations.batch_update 
@resource_group_name='{{ resource_group_name }}' --required,
@server_name='{{ server_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"value": "{{ value }}",
"resetAllToDefault": "{{ resetAllToDefault }}"
}'
;