Skip to main content

database_recommended_actions

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

Overview

Namedatabase_recommended_actions
TypeResource
Idazure.sql.database_recommended_actions

Fields

NameDatatypeDescription
advisorNametextfield from the properties object
databaseNametextfield from the properties object
detailstextfield from the properties object
error_detailstextfield from the properties object
estimated_impacttextfield from the properties object
execute_action_durationtextfield from the properties object
execute_action_initiated_bytextfield from the properties object
execute_action_initiated_timetextfield from the properties object
execute_action_start_timetextfield from the properties object
implementation_detailstextfield from the properties object
is_archived_actiontextfield from the properties object
is_executable_actiontextfield from the properties object
is_revertable_actiontextfield from the properties object
kindtextResource kind.
last_refreshtextfield from the properties object
linked_objectstextfield from the properties object
locationtextResource location.
observed_impacttextfield from the properties object
recommendation_reasontextfield from the properties object
recommendedActionNametextfield from the properties object
resourceGroupNametextfield from the properties object
revert_action_durationtextfield from the properties object
revert_action_initiated_bytextfield from the properties object
revert_action_initiated_timetextfield from the properties object
revert_action_start_timetextfield from the properties object
scoretextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
time_seriestextfield from the properties object
valid_sincetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTadvisorName, databaseName, recommendedActionName, resourceGroupName, serverName, subscriptionIdGets a database recommended action.
updateUPDATEadvisorName, databaseName, recommendedActionName, resourceGroupName, serverName, subscriptionIdUpdates a database recommended action.
list_by_database_advisorEXECadvisorName, databaseName, resourceGroupName, serverName, subscriptionIdGets list of Database Recommended Actions.

SELECT examples

Gets a database recommended action.

SELECT
advisorName,
databaseName,
details,
error_details,
estimated_impact,
execute_action_duration,
execute_action_initiated_by,
execute_action_initiated_time,
execute_action_start_time,
implementation_details,
is_archived_action,
is_executable_action,
is_revertable_action,
kind,
last_refresh,
linked_objects,
location,
observed_impact,
recommendation_reason,
recommendedActionName,
resourceGroupName,
revert_action_duration,
revert_action_initiated_by,
revert_action_initiated_time,
revert_action_start_time,
score,
serverName,
state,
subscriptionId,
time_series,
valid_since
FROM azure.sql.vw_database_recommended_actions
WHERE advisorName = '{{ advisorName }}'
AND databaseName = '{{ databaseName }}'
AND recommendedActionName = '{{ recommendedActionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a database_recommended_actions resource.

/*+ update */
UPDATE azure.sql.database_recommended_actions
SET
properties = '{{ properties }}'
WHERE
advisorName = '{{ advisorName }}'
AND databaseName = '{{ databaseName }}'
AND recommendedActionName = '{{ recommendedActionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';