sql_pool_operation_results
Creates, updates, deletes, gets or lists a sql_pool_operation_results resource.
Overview
| Name | sql_pool_operation_results |
| Type | Resource |
| Id | azure.synapse.sql_pool_operation_results |
Fields
The following fields are returned by SELECT queries:
- get_location_header_result
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
collation | string | Collation mode. |
createMode | string | Specifies the mode of sql pool creation. Default: regular sql pool creation. PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. Known values are: "Default", "PointInTimeRestore", "Recovery", and "Restore". |
creationDate | string (date-time) | Date the SQL pool was created. |
location | string | The geo-location where the resource lives. Required. |
maxSizeBytes | integer | Maximum size in bytes. |
provisioningState | string | Resource state. |
recoverableDatabaseId | string | Backup database to restore from. |
restorePointInTime | string (date-time) | Snapshot time to restore. |
sku | object | SQL pool SKU. |
sourceDatabaseDeletionDate | string (date-time) | Specifies the time that the sql pool was deleted. |
sourceDatabaseId | string | Source database to create from. |
status | string | Resource status. |
storageAccountType | string | The storage account type used to store backups for this sql pool. Known values are: "GRS" and "LRS". |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_location_header_result | select | resource_group_name, workspace_name, sql_pool_name, operation_id, subscription_id | Get SQL pool operation status. Get the status of a SQL pool 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.
| Name | Datatype | Description |
|---|---|---|
operation_id | string | Operation ID. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
sql_pool_name | string | SQL pool name. Required. |
subscription_id | string | |
workspace_name | string | The name of the workspace. Required. |
SELECT examples
- get_location_header_result
Get SQL pool operation status. Get the status of a SQL pool operation.
SELECT
id,
name,
collation,
createMode,
creationDate,
location,
maxSizeBytes,
provisioningState,
recoverableDatabaseId,
restorePointInTime,
sku,
sourceDatabaseDeletionDate,
sourceDatabaseId,
status,
storageAccountType,
tags,
type
FROM azure.synapse.sql_pool_operation_results
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND sql_pool_name = '{{ sql_pool_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;