Skip to main content

tuning_options

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

Overview

Nametuning_options
TypeResource
Idazure.postgresql_flexible_servers.tuning_options

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.
statestringState of the tuning option.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, tuning_option, subscription_idGets the tuning options of a server.
list_by_serverselectresource_group_name, server_name, subscription_idLists the tuning options of a server.
list_recommendationsexecresource_group_name, server_name, tuning_option, subscription_idrecommendationTypeLists available object recommendations.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring
tuning_optionstringThe name of the tuning option. Known values are: "index" and "table". Required.
recommendationTypestringRecommendations list filter. Retrieves recommendations based on type. Known values are: "CreateIndex", "DropIndex", "ReIndex", "AnalyzeTable", and "VacuumTable". Default value is None.

SELECT examples

Gets the tuning options of a server.

SELECT
id,
name,
state,
systemData,
type
FROM azure.postgresql_flexible_servers.tuning_options
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND tuning_option = '{{ tuning_option }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Lists available object recommendations.

EXEC azure.postgresql_flexible_servers.tuning_options.list_recommendations 
@resource_group_name='{{ resource_group_name }}' --required,
@server_name='{{ server_name }}' --required,
@tuning_option='{{ tuning_option }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@recommendationType='{{ recommendationType }}'
;