Skip to main content

actions

Creates, updates, deletes, gets or lists an actions resource.

Overview

Nameactions
TypeResource
Idazure.chaos.actions

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.
actionNamestringThe short name of the action (e.g., "Shutdown").
actionTypestringThe type of the action. Known values are: "Discrete", "Continuous", and "Cancelable". (Discrete, Continuous, Cancelable)
canonicalIdstringCanonical identifier of the action (e.g., "microsoft-compute-shutdown/1.0").
descriptionstringDescription of what this action does.
displayNamestringHuman-readable display name of the action.
parametersSchemaobjectJSON Schema describing the parameters for this action.
recommendedRolesarrayRecommended Azure RBAC role definition GUIDs for this action.
supportedTargetTypesarrayList of target types supported by this action.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionstringThe version of the action (e.g., "1.0.0").

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, action_name, subscription_idGet an Action resource for a given location.
listselectlocation, subscription_idcontinuationTokenGet a list of Action resources for a given location.

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
action_namestringString that represents an Action resource name. Required.
locationstringThe name of the Azure region. Required.
subscription_idstring
continuationTokenstringString that sets the continuation token. Default value is None.

SELECT examples

Get an Action resource for a given location.

SELECT
id,
name,
actionName,
actionType,
canonicalId,
description,
displayName,
parametersSchema,
recommendedRoles,
supportedTargetTypes,
systemData,
type,
version
FROM azure.chaos.actions
WHERE location = '{{ location }}' -- required
AND action_name = '{{ action_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;