storage_tasks
Creates, updates, deletes, gets or lists a storage_tasks
resource.
Overview
Name | storage_tasks |
Type | Resource |
Id | azure.storageactions.storage_tasks |
Fields
- vw_storage_tasks
- storage_tasks
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
action | text | field from the properties object |
creation_time_in_utc | text | field from the properties object |
enabled | text | field from the properties object |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storageTaskName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
task_version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Properties of the storage task. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageTaskName, subscriptionId | Get the storage task properties |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all the storage tasks available under the given resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all the storage tasks available under the subscription. |
create | INSERT | resourceGroupName, storageTaskName, subscriptionId, data__identity, data__properties | Asynchronously creates a new storage task resource with the specified parameters. If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. |
delete | DELETE | resourceGroupName, storageTaskName, subscriptionId | Delete the storage task resource. |
update | UPDATE | resourceGroupName, storageTaskName, subscriptionId | Update storage task properties |
preview_actions | EXEC | location, subscriptionId, data__properties | Runs the input conditions against input object metadata properties and designates matched objects in response. |
SELECT
examples
Lists all the storage tasks available under the subscription.
- vw_storage_tasks
- storage_tasks
SELECT
description,
action,
creation_time_in_utc,
enabled,
identity,
location,
provisioning_state,
resourceGroupName,
storageTaskName,
subscriptionId,
tags,
task_version
FROM azure.storageactions.vw_storage_tasks
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties,
tags
FROM azure.storageactions.storage_tasks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_tasks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.storageactions.storage_tasks (
resourceGroupName,
storageTaskName,
subscriptionId,
data__identity,
data__properties,
identity,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageTaskName }}',
'{{ subscriptionId }}',
'{{ data__identity }}',
'{{ data__properties }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: properties
value:
- name: taskVersion
value: integer
- name: enabled
value: boolean
- name: description
value: string
- name: action
value:
- name: if
value:
- name: condition
value: string
- name: operations
value:
- - name: name
value: string
- name: parameters
value: object
- name: onSuccess
value: string
- name: onFailure
value: string
- name: else
value:
- name: operations
value:
- - name: name
value: string
- name: parameters
value: object
- name: onSuccess
value: string
- name: onFailure
value: string
- name: provisioningState
value: string
- name: creationTimeInUtc
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a storage_tasks
resource.
/*+ update */
UPDATE azure.storageactions.storage_tasks
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageTaskName = '{{ storageTaskName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified storage_tasks
resource.
/*+ delete */
DELETE FROM azure.storageactions.storage_tasks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageTaskName = '{{ storageTaskName }}'
AND subscriptionId = '{{ subscriptionId }}';