Import Job
An import job instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md Uses Azure REST API version 2024-03-01. Other available API versions: 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storagecache [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
importJobs_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var importJob = new AzureNative.StorageCache.ImportJob("importJob", new()
{
AmlFilesystemName = "fs1",
ConflictResolutionMode = AzureNative.StorageCache.ConflictResolutionMode.OverwriteAlways,
ImportJobName = "job1",
ImportPrefixes = new[]
{
"/",
},
Location = "eastus",
MaximumErrors = 0,
ResourceGroupName = "scgroup",
Tags =
{
{ "Dept", "ContosoAds" },
},
});
});
package main
import (
storagecache "github.com/pulumi/pulumi-azure-native-sdk/storagecache/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagecache.NewImportJob(ctx, "importJob", &storagecache.ImportJobArgs{
AmlFilesystemName: pulumi.String("fs1"),
ConflictResolutionMode: pulumi.String(storagecache.ConflictResolutionModeOverwriteAlways),
ImportJobName: pulumi.String("job1"),
ImportPrefixes: pulumi.StringArray{
pulumi.String("/"),
},
Location: pulumi.String("eastus"),
MaximumErrors: pulumi.Int(0),
ResourceGroupName: pulumi.String("scgroup"),
Tags: pulumi.StringMap{
"Dept": pulumi.String("ContosoAds"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storagecache.ImportJob;
import com.pulumi.azurenative.storagecache.ImportJobArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var importJob = new ImportJob("importJob", ImportJobArgs.builder()
.amlFilesystemName("fs1")
.conflictResolutionMode("OverwriteAlways")
.importJobName("job1")
.importPrefixes("/")
.location("eastus")
.maximumErrors(0)
.resourceGroupName("scgroup")
.tags(Map.of("Dept", "ContosoAds"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storagecache:ImportJob job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}
Properties
The Azure API version of the resource.
A recent and frequently updated rate of total files, directories, and symlinks imported per second.
A recent and frequently updated rate of blobs walked per second.
How 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.
An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.
The time of the last completed archive operation
The time the latest archive operation started
Total non-conflict oriented errors the import job will tolerate before exiting with failure. -1 means infinite. 0 means exit immediately and is the default.
ARM provisioning state.
The state of the import job. InProgress indicates the import is still running. Canceled indicates it has been canceled by the user. Completed indicates import finished, successfully importing all discovered blobs into the Lustre namespace. CompletedPartial indicates the import finished but some blobs either were found to be conflicting and could not be imported or other errors were encountered. Failed means the import was unable to complete due to a fatal error.
The status message of the import job.
Azure Resource Manager metadata containing createdBy and modifiedBy information.
The total blobs that have been imported since import began.
The total blob objects walked.
Number of conflicts in the import job.
Number of errors in the import job.