ImportJob

class ImportJob : KotlinCustomResource

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

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

A recent and frequently updated rate of total files, directories, and symlinks imported per second.

Link copied to clipboard

A recent and frequently updated rate of blobs walked per second.

Link copied to clipboard

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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val importPrefixes: Output<List<String>>?

An array of blob paths/prefixes that get imported into the cluster namespace. It has '/' as the default value.

Link copied to clipboard

The time of the last completed archive operation

Link copied to clipboard
val lastStartedTime: Output<String>

The time the latest archive operation started

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val maximumErrors: Output<Int>?

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.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

ARM provisioning state.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

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.

Link copied to clipboard
val statusMessage: Output<String>

The status message of the import job.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard

The total blobs that have been imported since import began.

Link copied to clipboard

The total blob objects walked.

Link copied to clipboard
val totalConflicts: Output<Int>

Number of conflicts in the import job.

Link copied to clipboard
val totalErrors: Output<Int>

Number of errors in the import job.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>