Archife

class Archife : KotlinCustomResource

An object that represents a archive for a container registry. Uses Azure REST API version 2024-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2023-06-01-preview, 2023-08-01-preview, 2023-11-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ArchiveCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var archife = new AzureNative.ContainerRegistry.Archife("archife", new()
{
ArchiveName = "myArchiveName",
PackageSource = new AzureNative.ContainerRegistry.Inputs.ArchivePackageSourcePropertiesArgs
{
Type = AzureNative.ContainerRegistry.PackageSourceType.Remote,
Url = "string",
},
PackageType = "rpm",
PublishedVersion = "string",
RegistryName = "myRegistry",
RepositoryEndpointPrefix = "string",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewArchife(ctx, "archife", &containerregistry.ArchifeArgs{
ArchiveName: pulumi.String("myArchiveName"),
PackageSource: &containerregistry.ArchivePackageSourcePropertiesArgs{
Type: pulumi.String(containerregistry.PackageSourceTypeRemote),
Url: pulumi.String("string"),
},
PackageType: pulumi.String("rpm"),
PublishedVersion: pulumi.String("string"),
RegistryName: pulumi.String("myRegistry"),
RepositoryEndpointPrefix: pulumi.String("string"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.containerregistry.Archife;
import com.pulumi.azurenative.containerregistry.ArchifeArgs;
import com.pulumi.azurenative.containerregistry.inputs.ArchivePackageSourcePropertiesArgs;
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 archife = new Archife("archife", ArchifeArgs.builder()
.archiveName("myArchiveName")
.packageSource(ArchivePackageSourcePropertiesArgs.builder()
.type("remote")
.url("string")
.build())
.packageType("rpm")
.publishedVersion("string")
.registryName("myRegistry")
.repositoryEndpointPrefix("string")
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerregistry:Archife myArchiveName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

The package source of the archive.

Link copied to clipboard

The provisioning state of the archive at the time the operation was called.

Link copied to clipboard
val publishedVersion: Output<String>?

The published version of the archive.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>