Skip to main content

dev_box_actions

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

Overview

Namedev_box_actions
TypeResource
Idazure.developer_devcenter.dev_box_actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the action. Required.
actionTypestringThe action that will be taken. Required. "Stop" (Stop)
nextobjectDetails about the next run of this action.
sourceIdstringThe id of the resource which triggered this action. Required.
suspendedUntilstring (date-time)The earliest time that the action could occur (UTC).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_dev_box_actionselectproject_name, user_id, dev_box_name, action_name, endpointGets an action.
list_dev_box_actionsselectproject_name, user_id, dev_box_name, endpointLists actions on a Dev Box.

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_namestringThe name of the action. Required.
dev_box_namestringDisplay name for the Dev Box. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
project_namestringName of the project. Required.
user_idstringThe AAD object id of the user. If value is 'me', the identity is taken from the authentication context. Required.

SELECT examples

Gets an action.

SELECT
name,
actionType,
next,
sourceId,
suspendedUntil
FROM azure.developer_devcenter.dev_box_actions
WHERE project_name = '{{ project_name }}' -- required
AND user_id = '{{ user_id }}' -- required
AND dev_box_name = '{{ dev_box_name }}' -- required
AND action_name = '{{ action_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;