Skip to main content

scheduled_actions

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

Overview

Namescheduled_actions
TypeResource
Idazure.cost_management.scheduled_actions

Fields

NameDatatypeDescription
nametextfield from the properties object
display_nametextfield from the properties object
e_tagtextfield from the properties object
file_destinationtextfield from the properties object
kindtextKind of the scheduled action.
notificationtextfield from the properties object
notification_emailtextfield from the properties object
scheduletextfield from the properties object
scopetextfield from the properties object
statustextfield from the properties object
system_datatextfield from the properties object
view_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnameGet the private scheduled action by name.
get_by_scopeSELECTname, scopeGet the shared scheduled action from the given scope by name.
listSELECTList all private scheduled actions.
list_by_scopeSELECTscopeList all shared scheduled actions within the given scope.
create_or_updateINSERTnameCreate or update a private scheduled action.
deleteDELETEnameDelete a private scheduled action.
delete_by_scopeDELETEname, scopeDelete a scheduled action within the given scope.
check_name_availabilityEXECChecks availability and correctness of the name for a scheduled action.
check_name_availability_by_scopeEXECscopeChecks availability and correctness of the name for a scheduled action within the given scope.
runEXECnameProcesses a private scheduled action.
run_by_scopeEXECname, scopeRuns a shared scheduled action within the given scope.

SELECT examples

List all private scheduled actions.

SELECT
name,
display_name,
e_tag,
file_destination,
kind,
notification,
notification_email,
schedule,
scope,
status,
system_data,
view_id
FROM azure.cost_management.vw_scheduled_actions
;

INSERT example

Use the following StackQL query and manifest file to create a new scheduled_actions resource.

/*+ create */
INSERT INTO azure.cost_management.scheduled_actions (
name,
kind,
systemData,
properties
)
SELECT
'{{ name }}',
'{{ kind }}',
'{{ systemData }}',
'{{ properties }}'
;

DELETE example

Deletes the specified scheduled_actions resource.

/*+ delete */
DELETE FROM azure.cost_management.scheduled_actions
WHERE name = '{{ name }}';