managed_instance_operations
Creates, updates, deletes, gets or lists a managed_instance_operations
resource.
Overview
Name | managed_instance_operations |
Type | Resource |
Id | azure.sql.managed_instance_operations |
Fields
The following fields are returned by SELECT
queries:
- get
Successfully retrieved the specified managed instance operation.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , managedInstanceName , operationId , subscriptionId | Gets a management operation on a managed instance. | |
cancel | exec | resourceGroupName , managedInstanceName , operationId , subscriptionId | Cancels the asynchronous operation on the managed instance. |
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 |
---|---|---|
managedInstanceName | string | The name of the managed instance. |
operationId | string (uuid) | |
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. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- get
Gets a management operation on a managed instance.
SELECT
properties
FROM azure.sql.managed_instance_operations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND operationId = '{{ operationId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
Lifecycle Methods
- cancel
Cancels the asynchronous operation on the managed instance.
EXEC azure.sql.managed_instance_operations.cancel
@resourceGroupName='{{ resourceGroupName }}' --required,
@managedInstanceName='{{ managedInstanceName }}' --required,
@operationId='{{ operationId }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;