auto_import_jobs
Creates, updates, deletes, gets or lists an auto_import_jobs resource.
Overview
| Name | auto_import_jobs |
| Type | Resource |
| Id | azure.storage_cache.auto_import_jobs |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_aml_filesystem
| 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. |
adminStatus | string | The administrative status of the auto import job. Possible values: 'Enable', 'Disable'. Passing in a value of 'Disable' will disable the current active auto import job. By default it is set to 'Enable'. Known values are: "Enable" and "Disable". (Enable, Disable) |
autoImportPrefixes | array | An array of blob paths/prefixes that get auto imported to the cluster namespace. It has '/' as the default value. Number of maximum allowed paths is 100. |
conflictResolutionMode | string | How the auto import job will handle conflicts. For example, if the auto import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the auto import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the auto import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or is currently released. 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/blob-integration#conflict-resolution-mode _ for a thorough explanation of these resolution modes. Known values are: "Fail", "Skip", "OverwriteIfDirty", and "OverwriteAlways". (Fail, Skip, OverwriteIfDirty, OverwriteAlways) |
enableDeletions | boolean | Whether or not to enable deletions during auto import. This only affects overwrite-dirty. |
location | string | The geo-location where the resource lives. Required. |
maximumErrors | integer | Total non-conflict-oriented errors (e.g., OS errors) Import will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately on any error. |
provisioningState | string | ARM provisioning state. Known values are: "Succeeded", "Failed", "Creating", "Deleting", "Updating", and "Canceled". (Succeeded, Failed, Creating, Deleting, Updating, Canceled) |
status | object | The status of the auto import job. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
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. |
adminStatus | string | The administrative status of the auto import job. Possible values: 'Enable', 'Disable'. Passing in a value of 'Disable' will disable the current active auto import job. By default it is set to 'Enable'. Known values are: "Enable" and "Disable". (Enable, Disable) |
autoImportPrefixes | array | An array of blob paths/prefixes that get auto imported to the cluster namespace. It has '/' as the default value. Number of maximum allowed paths is 100. |
conflictResolutionMode | string | How the auto import job will handle conflicts. For example, if the auto import job is trying to bring in a directory, but a file is at that path, how it handles it. Fail indicates that the auto import job should stop immediately and not do anything with the conflict. Skip indicates that it should pass over the conflict. OverwriteIfDirty causes the auto import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or is currently released. 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/blob-integration#conflict-resolution-mode _ for a thorough explanation of these resolution modes. Known values are: "Fail", "Skip", "OverwriteIfDirty", and "OverwriteAlways". (Fail, Skip, OverwriteIfDirty, OverwriteAlways) |
enableDeletions | boolean | Whether or not to enable deletions during auto import. This only affects overwrite-dirty. |
location | string | The geo-location where the resource lives. Required. |
maximumErrors | integer | Total non-conflict-oriented errors (e.g., OS errors) Import will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately on any error. |
provisioningState | string | ARM provisioning state. Known values are: "Succeeded", "Failed", "Creating", "Deleting", "Updating", and "Canceled". (Succeeded, Failed, Creating, Deleting, Updating, Canceled) |
status | object | The status of the auto import job. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
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, aml_filesystem_name, auto_import_job_name, subscription_id | Returns an auto import job. | |
list_by_aml_filesystem | select | resource_group_name, aml_filesystem_name, subscription_id | Returns all the auto import jobs the user has access to under an AML File System. | |
create_or_update | insert | resource_group_name, aml_filesystem_name, auto_import_job_name, subscription_id, location | Create or update an auto import job. | |
update | update | resource_group_name, aml_filesystem_name, auto_import_job_name, subscription_id | Update an auto import job instance. | |
create_or_update | replace | resource_group_name, aml_filesystem_name, auto_import_job_name, subscription_id, location | Create or update an auto import job. | |
delete | delete | resource_group_name, aml_filesystem_name, auto_import_job_name, subscription_id | Schedules an auto 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.
| Name | Datatype | Description |
|---|---|---|
aml_filesystem_name | string | Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric. Required. |
auto_import_job_name | string | Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_aml_filesystem
Returns an auto import job.
SELECT
id,
name,
adminStatus,
autoImportPrefixes,
conflictResolutionMode,
enableDeletions,
location,
maximumErrors,
provisioningState,
status,
systemData,
tags,
type
FROM azure.storage_cache.auto_import_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' -- required
AND auto_import_job_name = '{{ auto_import_job_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Returns all the auto import jobs the user has access to under an AML File System.
SELECT
id,
name,
adminStatus,
autoImportPrefixes,
conflictResolutionMode,
enableDeletions,
location,
maximumErrors,
provisioningState,
status,
systemData,
tags,
type
FROM azure.storage_cache.auto_import_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create or update an auto import job.
INSERT INTO azure.storage_cache.auto_import_jobs (
tags,
location,
properties,
resource_group_name,
aml_filesystem_name,
auto_import_job_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ aml_filesystem_name }}',
'{{ auto_import_job_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: auto_import_jobs
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the auto_import_jobs resource.
- name: aml_filesystem_name
value: "{{ aml_filesystem_name }}"
description: Required parameter for the auto_import_jobs resource.
- name: auto_import_job_name
value: "{{ auto_import_job_name }}"
description: Required parameter for the auto_import_jobs resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the auto_import_jobs resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives. Required.
- name: properties
description: |
Properties of the auto import job.
value:
provisioningState: "{{ provisioningState }}"
adminStatus: "{{ adminStatus }}"
autoImportPrefixes:
- "{{ autoImportPrefixes }}"
conflictResolutionMode: "{{ conflictResolutionMode }}"
enableDeletions: {{ enableDeletions }}
maximumErrors: {{ maximumErrors }}
status:
state: "{{ state }}"
statusCode: "{{ statusCode }}"
statusMessage: "{{ statusMessage }}"
scanStartTime: "{{ scanStartTime }}"
scanEndTime: "{{ scanEndTime }}"
totalBlobsWalked: {{ totalBlobsWalked }}
rateOfBlobWalk: {{ rateOfBlobWalk }}
totalBlobsImported: {{ totalBlobsImported }}
rateOfBlobImport: {{ rateOfBlobImport }}
importedFiles: {{ importedFiles }}
importedDirectories: {{ importedDirectories }}
importedSymlinks: {{ importedSymlinks }}
preexistingFiles: {{ preexistingFiles }}
preexistingDirectories: {{ preexistingDirectories }}
preexistingSymlinks: {{ preexistingSymlinks }}
totalErrors: {{ totalErrors }}
totalConflicts: {{ totalConflicts }}
blobSyncEvents:
importedFiles: {{ importedFiles }}
importedDirectories: {{ importedDirectories }}
importedSymlinks: {{ importedSymlinks }}
preexistingFiles: {{ preexistingFiles }}
preexistingDirectories: {{ preexistingDirectories }}
preexistingSymlinks: {{ preexistingSymlinks }}
totalBlobsImported: {{ totalBlobsImported }}
rateOfBlobImport: {{ rateOfBlobImport }}
totalErrors: {{ totalErrors }}
totalConflicts: {{ totalConflicts }}
deletions: {{ deletions }}
lastChangeFeedEventConsumedTime: "{{ lastChangeFeedEventConsumedTime }}"
lastTimeFullySynchronized: "{{ lastTimeFullySynchronized }}"
lastStartedTimeUTC: "{{ lastStartedTimeUTC }}"
lastCompletionTimeUTC: "{{ lastCompletionTimeUTC }}"
UPDATE examples
- update
Update an auto import job instance.
UPDATE azure.storage_cache.auto_import_jobs
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND auto_import_job_name = '{{ auto_import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;
REPLACE examples
- create_or_update
Create or update an auto import job.
REPLACE azure.storage_cache.auto_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 auto_import_job_name = '{{ auto_import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Schedules an auto import job for deletion.
DELETE FROM azure.storage_cache.auto_import_jobs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND aml_filesystem_name = '{{ aml_filesystem_name }}' --required
AND auto_import_job_name = '{{ auto_import_job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;