Skip to main content

storage_tasks_report

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

Overview

Namestorage_tasks_report
TypeResource
Idazure.storage_actions.storage_tasks_report

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.
finishTimestringEnd time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
objectFailedCountstringTotal number of objects where task operation failed when was attempted. Filter options such as objectFailedCount eq 0 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
objectsOperatedOnCountstringTotal number of objects that meet the storage tasks condition and were operated upon. Filter options such as objectsOperatedOnCount ge 100 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
objectsSucceededCountstringTotal number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount gt 150 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
objectsTargetedCountstringTotal number of objects that meet the condition as defined in the storage task assignment execution context. Filter options such as objectsTargetedCount gt 50 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
runResultstringRepresents the overall result of the execution for the run instance. Known values are: "Succeeded" and "Failed". (Succeeded, Failed)
runStatusEnumstringRepresents the status of the execution. Known values are: "InProgress" and "Finished". (InProgress, Finished)
runStatusErrorstringWell known Azure Storage error code that represents the error encountered during execution of the run instance.
startTimestringStart time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators _.
storageAccountIdstringResource ID of the Storage Account where this reported run executed.
summaryReportPathstringFull path to the verbose report stored in the reporting container as specified in the assignment execution context for the storage account.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
taskAssignmentIdstringResource ID of the Storage Task Assignment associated with this reported run.
taskIdstringResource ID of the Storage Task applied during this run.
taskVersionstringStorage Task Version.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_group_name, storage_task_name, subscription_id$maxpagesize, $filterFetch the storage tasks run report summary for each assignment.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_task_namestringThe name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only. Required.
subscription_idstring
$filterstringOptional. When specified, it can be used to query using reporting properties. Default value is None.
$maxpagesizeinteger

SELECT examples

Fetch the storage tasks run report summary for each assignment.

SELECT
id,
name,
finishTime,
objectFailedCount,
objectsOperatedOnCount,
objectsSucceededCount,
objectsTargetedCount,
runResult,
runStatusEnum,
runStatusError,
startTime,
storageAccountId,
summaryReportPath,
systemData,
taskAssignmentId,
taskId,
taskVersion,
type
FROM azure.storage_actions.storage_tasks_report
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_task_name = '{{ storage_task_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $maxpagesize = '{{ $maxpagesize }}'
AND $filter = '{{ $filter }}'
;