database_operations
Creates, updates, deletes, gets or lists a database_operations
resource.
Overview
Name | database_operations |
Type | Resource |
Id | azure.sql.database_operations |
Fields
The following fields are returned by SELECT
queries:
- list_by_database
The request for getting database operations has been executed successfully.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_by_database | select | resourceGroupName , serverName , databaseName , subscriptionId | Gets a list of operations performed on the database. | |
cancel | exec | resourceGroupName , serverName , databaseName , operationId , subscriptionId | Cancels the asynchronous operation on the database. |
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 |
---|---|---|
databaseName | string | The name of the database. |
operationId | string (uuid) | The operation identifier. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
serverName | string | The name of the server. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- list_by_database
Gets a list of operations performed on the database.
SELECT
properties
FROM azure.sql.database_operations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
Lifecycle Methods
- cancel
Cancels the asynchronous operation on the database.
EXEC azure.sql.database_operations.cancel
@resourceGroupName='{{ resourceGroupName }}' --required,
@serverName='{{ serverName }}' --required,
@databaseName='{{ databaseName }}' --required,
@operationId='{{ operationId }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;