disk_migration_jobs
Creates, updates, deletes, gets or lists a disk_migration_jobs
resource.
Overview
Name | disk_migration_jobs |
Type | Resource |
Id | azure_stack.compute_admin.disk_migration_jobs |
Fields
- vw_disk_migration_jobs
- disk_migration_jobs
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
creation_time | text | field from the properties object |
end_time | text | field from the properties object |
location | text | Location of the resource. |
migrationId | text | field from the properties object |
migration_id | text | field from the properties object |
start_time | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
subtasks | text | field from the properties object |
target_share | text | field from the properties object |
type | text | Type of Resource. |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Disk migration job properties. |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, migrationId, subscriptionId | Returns the requested disk migration job. |
list | SELECT | location, subscriptionId | Returns a list of disk migration jobs. |
create | INSERT | location, migrationId, subscriptionId | Create a disk migration job. |
cancel | EXEC | location, migrationId, subscriptionId | Cancel a disk migration job. |
SELECT
examples
Returns a list of disk migration jobs.
- vw_disk_migration_jobs
- 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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.compute_admin.disk_migration_jobs (
location,
migrationId,
subscriptionId
)
SELECT
'{{ location }}',
'{{ migrationId }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []