Archife Args
data class ArchifeArgs(val archiveName: Output<String>? = null, val packageSource: Output<ArchivePackageSourcePropertiesArgs>? = null, val packageType: Output<String>? = null, val publishedVersion: Output<String>? = null, val registryName: Output<String>? = null, val repositoryEndpointPrefix: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ArchifeArgs>
An object that represents a archive for a container registry. Uses Azure REST API version 2023-06-01-preview. Other available API versions: 2023-08-01-preview, 2023-11-01-preview, 2024-11-01-preview.
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(archiveName: Output<String>? = null, packageSource: Output<ArchivePackageSourcePropertiesArgs>? = null, packageType: Output<String>? = null, publishedVersion: Output<String>? = null, registryName: Output<String>? = null, repositoryEndpointPrefix: Output<String>? = null, resourceGroupName: Output<String>? = null)
Properties
Link copied to clipboard
The name of the archive resource.
Link copied to clipboard
The package source of the archive.
Link copied to clipboard
The type of the package resource.
Link copied to clipboard
The published version of the archive.
Link copied to clipboard
The name of the container registry.
Link copied to clipboard
Link copied to clipboard
The name of the resource group. The name is case insensitive.