scheduled_actions_by_scopes
Creates, updates, deletes, gets or lists a scheduled_actions_by_scopes
resource.
Overview
Name | scheduled_actions_by_scopes |
Type | Resource |
Id | azure.cost_management.scheduled_actions_by_scopes |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create_or_update | insert | scope , name | If-Match | Create or update a shared scheduled action within the given scope. |
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 |
---|---|---|
name | string | Scheduled action name. |
scope | string | The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope. |
If-Match | string | ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency. |
INSERT
examples
- create_or_update
- Manifest
Create or update a shared scheduled action within the given scope.
INSERT INTO azure.cost_management.scheduled_actions_by_scopes (
data__kind,
data__properties,
scope,
name,
If-Match
)
SELECT
'{{ kind }}',
'{{ properties }}',
'{{ scope }}',
'{{ name }}',
'{{ If-Match }}'
RETURNING
eTag,
kind,
properties,
systemData
;
# Description fields are for documentation purposes
- name: scheduled_actions_by_scopes
props:
- name: scope
value: string
description: Required parameter for the scheduled_actions_by_scopes resource.
- name: name
value: string
description: Required parameter for the scheduled_actions_by_scopes resource.
- name: kind
value: string
description: |
Kind of the scheduled action.
valid_values: ['Email', 'InsightAlert']
- name: properties
value: object
description: |
The properties of the scheduled action.
- name: If-Match
value: string
description: ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.