database_automatic_tunings
Creates, updates, deletes, gets or lists a database_automatic_tunings
resource.
Overview
Name | database_automatic_tunings |
Type | Resource |
Id | azure.sql.database_automatic_tunings |
Fields
The following fields are returned by SELECT
queries:
- get
Successfully retrieved database automatic tuning properties.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serverName , databaseName , subscriptionId | Gets a database's automatic tuning. | |
update | update | resourceGroupName , serverName , databaseName , subscriptionId | Update automatic tuning properties for target database. |
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.
Name | Datatype | Description |
---|---|---|
databaseName | string | The name of the database. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
serverName | string | The name of the server. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- get
Gets a database's automatic tuning.
SELECT
properties
FROM azure.sql.database_automatic_tunings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
UPDATE
examples
- update
Update automatic tuning properties for target database.
UPDATE azure.sql.database_automatic_tunings
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serverName = '{{ serverName }}' --required
AND databaseName = '{{ databaseName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;