Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idazure.postgresql_flexible_servers.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowedValuesstringAllowed values of the configuration (also known as server parameter).
dataTypestringData type of the configuration (also known as server parameter). Known values are: "Boolean", "Numeric", "Integer", "Enumeration", "String", and "Set". (Boolean, Numeric, Integer, Enumeration, String, Set)
defaultValuestringValue assigned by default to the configuration (also known as server parameter).
descriptionstringDescription of the configuration (also known as server parameter).
documentationLinkstringLink pointing to the documentation of the configuration (also known as server parameter).
isConfigPendingRestartbooleanIndicates if the value assigned to the configuration (also known as server parameter) is pending a server restart for it to take effect.
isDynamicConfigbooleanIndicates if it's a dynamic (true) or static (false) configuration (also known as server parameter). Static server parameters require a server restart after changing the value assigned to them, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to them, for the change to take effect.
isReadOnlybooleanIndicates if it's a read-only (true) or modifiable (false) configuration (also known as server parameter).
sourcestringSource of the value assigned to the configuration (also known as server parameter). Required to update the value assigned to a specific modifiable configuration.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
unitstringUnits in which the configuration (also known as server parameter) value is expressed.
valuestringValue of the configuration (also known as server parameter). Required to update the value assigned to a specific modifiable 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 specific configuration (also known as server parameter) of a server.
list_by_serverselectresource_group_name, server_name, subscription_idLists all configurations (also known as server parameters) of a server.
updateupdateresource_group_name, server_name, configuration_name, subscription_idUpdates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
putexecresource_group_name, server_name, configuration_name, subscription_idUpdates, using Put verb, the value assigned to a specific modifiable configuration (also known as server parameter) of a 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_namestringName of the configuration (also known as server parameter). Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Gets information about a specific configuration (also known as server parameter) of a server.

SELECT
id,
name,
allowedValues,
dataType,
defaultValue,
description,
documentationLink,
isConfigPendingRestart,
isDynamicConfig,
isReadOnly,
source,
systemData,
type,
unit,
value
FROM azure.postgresql_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
;

UPDATE examples

Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.

UPDATE azure.postgresql_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

Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server parameter) of a server.

EXEC azure.postgresql_flexible_servers.configurations.put 
@resource_group_name='{{ resource_group_name }}' --required,
@server_name='{{ server_name }}' --required,
@configuration_name='{{ configuration_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;