managed_database_move_operations
Creates, updates, deletes, gets or lists a managed_database_move_operations resource.
Overview
| Name | managed_database_move_operations |
| Type | Resource |
| Id | azure.sql.managed_database_move_operations |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_location
| 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. |
errorCode | integer | The operation error code. |
errorDescription | string | The operation error description. |
errorSeverity | integer | The operation error severity. |
isCancellable | boolean | Is move operation cancellable. |
isUserError | boolean | Whether or not the error is a user error. |
operation | string | The name of operation. |
operationFriendlyName | string | The friendly name of operation. |
operationMode | string | Operation mode. Known values are: "Move" and "Copy". (Move, Copy) |
sourceDatabaseName | string | Source database name. |
sourceManagedInstanceId | string | Source Managed Instance resource id. |
sourceManagedInstanceName | string | Source Managed Instance name. |
startTime | string (date-time) | The operation start time. |
state | string | The operation state. Known values are: "Pending", "InProgress", "Succeeded", "Failed", "CancelInProgress", and "Cancelled". (Pending, InProgress, Succeeded, Failed, CancelInProgress, Cancelled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetDatabaseName | string | Target database name. |
targetManagedInstanceId | string | Target Managed instance resource id. |
targetManagedInstanceName | string | Target Managed Instance name. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| 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. |
errorCode | integer | The operation error code. |
errorDescription | string | The operation error description. |
errorSeverity | integer | The operation error severity. |
isCancellable | boolean | Is move operation cancellable. |
isUserError | boolean | Whether or not the error is a user error. |
operation | string | The name of operation. |
operationFriendlyName | string | The friendly name of operation. |
operationMode | string | Operation mode. Known values are: "Move" and "Copy". (Move, Copy) |
sourceDatabaseName | string | Source database name. |
sourceManagedInstanceId | string | Source Managed Instance resource id. |
sourceManagedInstanceName | string | Source Managed Instance name. |
startTime | string (date-time) | The operation start time. |
state | string | The operation state. Known values are: "Pending", "InProgress", "Succeeded", "Failed", "CancelInProgress", and "Cancelled". (Pending, InProgress, Succeeded, Failed, CancelInProgress, Cancelled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetDatabaseName | string | Target database name. |
targetManagedInstanceId | string | Target Managed instance resource id. |
targetManagedInstanceName | string | Target Managed Instance name. |
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 | select | resource_group_name, location_name, operation_id, subscription_id | Gets a managed database move operation. | |
list_by_location | select | resource_group_name, location_name, subscription_id | onlyLatestPerDatabase, $filter | Lists managed database move operations. |
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 |
|---|---|---|
location_name | string | The name of the region where the resource is located. Required. |
operation_id | string | The ID of the managed database move operation. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$filter | string | An OData filter expression that filters elements in the collection. Default value is None. |
onlyLatestPerDatabase | boolean | Whether or not to only get the latest operation for each database. Has higher priority than $filter. Default value is None. |
SELECT examples
- get
- list_by_location
Gets a managed database move operation.
SELECT
id,
name,
errorCode,
errorDescription,
errorSeverity,
isCancellable,
isUserError,
operation,
operationFriendlyName,
operationMode,
sourceDatabaseName,
sourceManagedInstanceId,
sourceManagedInstanceName,
startTime,
state,
systemData,
targetDatabaseName,
targetManagedInstanceId,
targetManagedInstanceName,
type
FROM azure.sql.managed_database_move_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND location_name = '{{ location_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists managed database move operations.
SELECT
id,
name,
errorCode,
errorDescription,
errorSeverity,
isCancellable,
isUserError,
operation,
operationFriendlyName,
operationMode,
sourceDatabaseName,
sourceManagedInstanceId,
sourceManagedInstanceName,
startTime,
state,
systemData,
targetDatabaseName,
targetManagedInstanceId,
targetManagedInstanceName,
type
FROM azure.sql.managed_database_move_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND location_name = '{{ location_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND onlyLatestPerDatabase = '{{ onlyLatestPerDatabase }}'
AND $filter = '{{ $filter }}'
;