Skip to main content

import_jobs

Creates, updates, deletes, gets or lists an import_jobs resource.

Overview

Nameimport_jobs
TypeResource
Idazure.storage_cache.import_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
adminStatusstringThe administrative status of the import job. Possible values: 'Active', 'Cancel'. Passing in a value of 'Cancel' will cancel the current active import job. By default it is set to 'Active'. Known values are: "Active" and "Cancel". (Active, Cancel)
conflictResolutionModestringHow the import job will handle conflicts. For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported. OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty. Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ _ for a thorough explanation of these resolution modes. Known values are: "Fail", "Skip", "OverwriteIfDirty", and "OverwriteAlways". (Fail, Skip, OverwriteIfDirty, OverwriteAlways)
importPrefixesarrayAn array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
locationstringThe geo-location where the resource lives. Required.
maximumErrorsintegerTotal non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
provisioningStatestringARM provisioning state. Known values are: "Succeeded", "Failed", "Creating", "Deleting", "Updating", and "Canceled". (Succeeded, Failed, Creating, Deleting, Updating, Canceled)
statusobjectThe status of the import.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, aml_filesystem_name, import_job_name, subscription_idReturns an import job.
list_by_aml_filesystemselectresource_group_name, aml_filesystem_name, subscription_idReturns all import jobs the user has access to under an AML File System.
create_or_updateinsertresource_group_name, aml_filesystem_name, import_job_name, subscription_id, locationCreate or update an import job.
updateupdateresource_group_name, aml_filesystem_name, import_job_name, subscription_idUpdate an import job instance.
create_or_updatereplaceresource_group_name, aml_filesystem_name, import_job_name, subscription_id, locationCreate or update an import job.
deletedeleteresource_group_name, aml_filesystem_name, import_job_name, subscription_idSchedules an import job for deletion.

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.

NameDatatypeDescription
aml_filesystem_namestringName for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric. Required.
import_job_namestringName for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Returns an import job.

SELECT
id,
name,
adminStatus,
conflictResolutionMode,
importPrefixes,
location,
maximumErrors,
provisioningState,
status,
systemData,
tags,
type
FROM azure.storage_cache.import_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' -- required
AND import_job_name = '{{ import_job_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an import job.

INSERT INTO azure.storage_cache.import_jobs (
tags,
location,
properties,
resource_group_name,
aml_filesystem_name,
import_job_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ aml_filesystem_name }}',
'{{ import_job_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update an import job instance.

UPDATE azure.storage_cache.import_jobs
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND import_job_name = '{{ import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update an import job.

REPLACE azure.storage_cache.import_jobs
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND import_job_name = '{{ import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Schedules an import job for deletion.

DELETE FROM azure.storage_cache.import_jobs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND import_job_name = '{{ import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;