Skip to main content

disk_migration_jobs

Creates, updates, deletes, gets or lists a disk_migration_jobs resource.

Overview

Namedisk_migration_jobs
TypeResource
Idazure_stack.compute_admin.disk_migration_jobs

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
creation_timetextfield from the properties object
end_timetextfield from the properties object
locationtextLocation of the resource.
migrationIdtextfield from the properties object
migration_idtextfield from the properties object
start_timetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
subtaskstextfield from the properties object
target_sharetextfield from the properties object
typetextType of Resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, migrationId, subscriptionIdReturns the requested disk migration job.
listSELECTlocation, subscriptionIdReturns a list of disk migration jobs.
createINSERTlocation, migrationId, subscriptionIdCreate a disk migration job.
cancelEXEClocation, migrationId, subscriptionIdCancel a disk migration job.

SELECT examples

Returns a list of disk migration jobs.

SELECT
id,
name,
creation_time,
end_time,
location,
migrationId,
migration_id,
start_time,
status,
subscriptionId,
subtasks,
target_share,
type
FROM azure_stack.compute_admin.vw_disk_migration_jobs
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new disk_migration_jobs resource.

/*+ create */
INSERT INTO azure_stack.compute_admin.disk_migration_jobs (
location,
migrationId,
subscriptionId
)
SELECT
'{{ location }}',
'{{ migrationId }}',
'{{ subscriptionId }}'
;