Skip to main content

operations

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

Overview

Nameoperations
TypeResource
Idazure.synapse.operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringOperation ID.
namestringOperation name.
endTimestring (date-time)Operation start time.
errorobjectErrors from the operation.
percentCompletenumberCompletion percentage of the operation.
propertiesobjectOperation properties.
startTimestring (date-time)Operation start time.
statusstringOperation status. Known values are: "InProgress", "Succeeded", "Failed", and "Canceled".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_azure_async_header_resultselectresource_group_name, workspace_name, operation_id, subscription_idGet operation status. Get the status of an operation.
check_name_availabilityselectsubscription_idCheck name availability. Check whether a workspace name is available.
listselectAll operations. Get all available operations.
get_location_header_resultexecresource_group_name, workspace_name, operation_id, subscription_idGet operation result. Get the result of an operation.

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
operation_idstringOperation ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Get operation status. Get the status of an operation.

SELECT
id,
name,
endTime,
error,
percentComplete,
properties,
startTime,
status
FROM azure.synapse.operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Get operation result. Get the result of an operation.

EXEC azure.synapse.operations.get_location_header_result 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@operation_id='{{ operation_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;