edge_machine_jobs
Creates, updates, deletes, gets or lists an edge_machine_jobs resource.
Overview
| Name | edge_machine_jobs |
| Type | Resource |
| Id | azure_stack.azure_stack_hci.edge_machine_jobs |
Fields
The following fields are returned by SELECT queries:
- get
- list
| 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. |
deploymentMode | string | Deployment mode to trigger job. Known values are: "Validate" and "Deploy". (Validate, Deploy) |
endTimeUtc | string (date-time) | The UTC date and time at which the job completed. |
error | object | error details. |
jobId | string | Unique, immutable job id. |
jobType | string | Job Type to support polymorphic resource. Required. Known values are: "CollectLog", "RemoteSupport", "ProvisionOs", and "DownloadOs". |
provisioningState | string | Job provisioning state. Known values are: "NotSpecified", "Error", "Succeeded", "Failed", "Canceled", "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", "PartiallySucceeded", "PartiallyConnected", "InProgress", "Accepted", "Provisioning", and "DisableInProgress". (NotSpecified, Error, Succeeded, Failed, Canceled, Connected, Disconnected, Deleted, Creating, Updating, Deleting, Moving, PartiallySucceeded, PartiallyConnected, InProgress, Accepted, Provisioning, DisableInProgress) |
startTimeUtc | string (date-time) | The UTC date and time at which the job started. |
status | string | Status of Edge device job. Known values are: "NotSpecified", "ValidationInProgress", "ValidationSuccess", "ValidationFailed", "DeploymentInProgress", "DeploymentFailed", "DeploymentSuccess", "Succeeded", "Failed", "Canceled", "Paused", and "Scheduled". (NotSpecified, ValidationInProgress, ValidationSuccess, ValidationFailed, DeploymentInProgress, DeploymentFailed, DeploymentSuccess, Succeeded, Failed, Canceled, Paused, Scheduled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
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. |
deploymentMode | string | Deployment mode to trigger job. Known values are: "Validate" and "Deploy". (Validate, Deploy) |
endTimeUtc | string (date-time) | The UTC date and time at which the job completed. |
error | object | error details. |
jobId | string | Unique, immutable job id. |
jobType | string | Job Type to support polymorphic resource. Required. Known values are: "CollectLog", "RemoteSupport", "ProvisionOs", and "DownloadOs". |
provisioningState | string | Job provisioning state. Known values are: "NotSpecified", "Error", "Succeeded", "Failed", "Canceled", "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", "PartiallySucceeded", "PartiallyConnected", "InProgress", "Accepted", "Provisioning", and "DisableInProgress". (NotSpecified, Error, Succeeded, Failed, Canceled, Connected, Disconnected, Deleted, Creating, Updating, Deleting, Moving, PartiallySucceeded, PartiallyConnected, InProgress, Accepted, Provisioning, DisableInProgress) |
startTimeUtc | string (date-time) | The UTC date and time at which the job started. |
status | string | Status of Edge device job. Known values are: "NotSpecified", "ValidationInProgress", "ValidationSuccess", "ValidationFailed", "DeploymentInProgress", "DeploymentFailed", "DeploymentSuccess", "Succeeded", "Failed", "Canceled", "Paused", and "Scheduled". (NotSpecified, ValidationInProgress, ValidationSuccess, ValidationFailed, DeploymentInProgress, DeploymentFailed, DeploymentSuccess, Succeeded, Failed, Canceled, Paused, Scheduled) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
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, edge_machine_name, jobs_name, subscription_id | Get a EdgeMachineJob. | |
list | select | resource_group_name, edge_machine_name, subscription_id | List EdgeMachineJob resources by EdgeMachines. | |
create_or_update | insert | resource_group_name, edge_machine_name, jobs_name, subscription_id | Create a EdgeMachineJob. | |
create_or_update | replace | resource_group_name, edge_machine_name, jobs_name, subscription_id | Create a EdgeMachineJob. | |
delete | delete | resource_group_name, edge_machine_name, jobs_name, subscription_id | Delete a EdgeMachineJob. |
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 |
|---|---|---|
edge_machine_name | string | Name of Device. Required. |
jobs_name | string | Name of EdgeMachineJob. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
Get a EdgeMachineJob.
SELECT
id,
name,
deploymentMode,
endTimeUtc,
error,
jobId,
jobType,
provisioningState,
startTimeUtc,
status,
systemData,
type
FROM azure_stack.azure_stack_hci.edge_machine_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND edge_machine_name = '{{ edge_machine_name }}' -- required
AND jobs_name = '{{ jobs_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List EdgeMachineJob resources by EdgeMachines.
SELECT
id,
name,
deploymentMode,
endTimeUtc,
error,
jobId,
jobType,
provisioningState,
startTimeUtc,
status,
systemData,
type
FROM azure_stack.azure_stack_hci.edge_machine_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND edge_machine_name = '{{ edge_machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create a EdgeMachineJob.
INSERT INTO azure_stack.azure_stack_hci.edge_machine_jobs (
properties,
resource_group_name,
edge_machine_name,
jobs_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ edge_machine_name }}',
'{{ jobs_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: edge_machine_jobs
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the edge_machine_jobs resource.
- name: edge_machine_name
value: "{{ edge_machine_name }}"
description: Required parameter for the edge_machine_jobs resource.
- name: jobs_name
value: "{{ jobs_name }}"
description: Required parameter for the edge_machine_jobs resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the edge_machine_jobs resource.
- name: properties
description: |
The resource-specific properties for this resource.
value:
jobType: "{{ jobType }}"
deploymentMode: "{{ deploymentMode }}"
provisioningState: "{{ provisioningState }}"
jobId: "{{ jobId }}"
startTimeUtc: "{{ startTimeUtc }}"
endTimeUtc: "{{ endTimeUtc }}"
status: "{{ status }}"
error:
code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details:
- code: "{{ code }}"
message: "{{ message }}"
target: "{{ target }}"
details: "{{ details }}"
additionalInfo: "{{ additionalInfo }}"
additionalInfo:
- type: "{{ type }}"
info: "{{ info }}"
REPLACE examples
- create_or_update
Create a EdgeMachineJob.
REPLACE azure_stack.azure_stack_hci.edge_machine_jobs
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND edge_machine_name = '{{ edge_machine_name }}' --required
AND jobs_name = '{{ jobs_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Delete a EdgeMachineJob.
DELETE FROM azure_stack.azure_stack_hci.edge_machine_jobs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND edge_machine_name = '{{ edge_machine_name }}' --required
AND jobs_name = '{{ jobs_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;