azure-native.containerregistry.Archife
Explore with Pulumi AI
An object that represents a archive for a container registry. 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",
    });
});
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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const archife = new azure_native.containerregistry.Archife("archife", {
    archiveName: "myArchiveName",
    packageSource: {
        type: azure_native.containerregistry.PackageSourceType.Remote,
        url: "string",
    },
    packageType: "rpm",
    publishedVersion: "string",
    registryName: "myRegistry",
    repositoryEndpointPrefix: "string",
    resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
archife = azure_native.containerregistry.Archife("archife",
    archive_name="myArchiveName",
    package_source={
        "type": azure_native.containerregistry.PackageSourceType.REMOTE,
        "url": "string",
    },
    package_type="rpm",
    published_version="string",
    registry_name="myRegistry",
    repository_endpoint_prefix="string",
    resource_group_name="myResourceGroup")
resources:
  archife:
    type: azure-native:containerregistry:Archife
    properties:
      archiveName: myArchiveName
      packageSource:
        type: remote
        url: string
      packageType: rpm
      publishedVersion: string
      registryName: myRegistry
      repositoryEndpointPrefix: string
      resourceGroupName: myResourceGroup
Create Archife Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Archife(name: string, args: ArchifeArgs, opts?: CustomResourceOptions);@overload
def Archife(resource_name: str,
            args: ArchifeArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Archife(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            package_type: Optional[str] = None,
            registry_name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            archive_name: Optional[str] = None,
            package_source: Optional[ArchivePackageSourcePropertiesArgs] = None,
            published_version: Optional[str] = None,
            repository_endpoint_prefix: Optional[str] = None)func NewArchife(ctx *Context, name string, args ArchifeArgs, opts ...ResourceOption) (*Archife, error)public Archife(string name, ArchifeArgs args, CustomResourceOptions? opts = null)
public Archife(String name, ArchifeArgs args)
public Archife(String name, ArchifeArgs args, CustomResourceOptions options)
type: azure-native:containerregistry:Archife
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ArchifeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ArchifeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ArchifeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArchifeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArchifeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var archifeResource = new AzureNative.ContainerRegistry.Archife("archifeResource", new()
{
    PackageType = "string",
    RegistryName = "string",
    ResourceGroupName = "string",
    ArchiveName = "string",
    PackageSource = new AzureNative.ContainerRegistry.Inputs.ArchivePackageSourcePropertiesArgs
    {
        Type = "string",
        Url = "string",
    },
    PublishedVersion = "string",
    RepositoryEndpointPrefix = "string",
});
example, err := containerregistry.NewArchife(ctx, "archifeResource", &containerregistry.ArchifeArgs{
	PackageType:       pulumi.String("string"),
	RegistryName:      pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	ArchiveName:       pulumi.String("string"),
	PackageSource: &containerregistry.ArchivePackageSourcePropertiesArgs{
		Type: pulumi.String("string"),
		Url:  pulumi.String("string"),
	},
	PublishedVersion:         pulumi.String("string"),
	RepositoryEndpointPrefix: pulumi.String("string"),
})
var archifeResource = new Archife("archifeResource", ArchifeArgs.builder()
    .packageType("string")
    .registryName("string")
    .resourceGroupName("string")
    .archiveName("string")
    .packageSource(ArchivePackageSourcePropertiesArgs.builder()
        .type("string")
        .url("string")
        .build())
    .publishedVersion("string")
    .repositoryEndpointPrefix("string")
    .build());
archife_resource = azure_native.containerregistry.Archife("archifeResource",
    package_type="string",
    registry_name="string",
    resource_group_name="string",
    archive_name="string",
    package_source={
        "type": "string",
        "url": "string",
    },
    published_version="string",
    repository_endpoint_prefix="string")
const archifeResource = new azure_native.containerregistry.Archife("archifeResource", {
    packageType: "string",
    registryName: "string",
    resourceGroupName: "string",
    archiveName: "string",
    packageSource: {
        type: "string",
        url: "string",
    },
    publishedVersion: "string",
    repositoryEndpointPrefix: "string",
});
type: azure-native:containerregistry:Archife
properties:
    archiveName: string
    packageSource:
        type: string
        url: string
    packageType: string
    publishedVersion: string
    registryName: string
    repositoryEndpointPrefix: string
    resourceGroupName: string
Archife Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Archife resource accepts the following input properties:
- PackageType string
- The type of the package resource.
- RegistryName string
- The name of the container registry.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ArchiveName string
- The name of the archive resource.
- PackageSource Pulumi.Azure Native. Container Registry. Inputs. Archive Package Source Properties 
- The package source of the archive.
- PublishedVersion string
- The published version of the archive.
- RepositoryEndpoint stringPrefix 
- PackageType string
- The type of the package resource.
- RegistryName string
- The name of the container registry.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ArchiveName string
- The name of the archive resource.
- PackageSource ArchivePackage Source Properties Args 
- The package source of the archive.
- PublishedVersion string
- The published version of the archive.
- RepositoryEndpoint stringPrefix 
- packageType String
- The type of the package resource.
- registryName String
- The name of the container registry.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- archiveName String
- The name of the archive resource.
- packageSource ArchivePackage Source Properties 
- The package source of the archive.
- publishedVersion String
- The published version of the archive.
- repositoryEndpoint StringPrefix 
- packageType string
- The type of the package resource.
- registryName string
- The name of the container registry.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- archiveName string
- The name of the archive resource.
- packageSource ArchivePackage Source Properties 
- The package source of the archive.
- publishedVersion string
- The published version of the archive.
- repositoryEndpoint stringPrefix 
- package_type str
- The type of the package resource.
- registry_name str
- The name of the container registry.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- archive_name str
- The name of the archive resource.
- package_source ArchivePackage Source Properties Args 
- The package source of the archive.
- published_version str
- The published version of the archive.
- repository_endpoint_ strprefix 
- packageType String
- The type of the package resource.
- registryName String
- The name of the container registry.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- archiveName String
- The name of the archive resource.
- packageSource Property Map
- The package source of the archive.
- publishedVersion String
- The published version of the archive.
- repositoryEndpoint StringPrefix 
Outputs
All input properties are implicitly available as output properties. Additionally, the Archife resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning state of the archive at the time the operation was called.
- RepositoryEndpoint string
- SystemData Pulumi.Azure Native. Container Registry. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning state of the archive at the time the operation was called.
- RepositoryEndpoint string
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning state of the archive at the time the operation was called.
- repositoryEndpoint String
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- provisioningState string
- The provisioning state of the archive at the time the operation was called.
- repositoryEndpoint string
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- provisioning_state str
- The provisioning state of the archive at the time the operation was called.
- repository_endpoint str
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning state of the archive at the time the operation was called.
- repositoryEndpoint String
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
ArchivePackageSourceProperties, ArchivePackageSourcePropertiesArgs        
- Type
string | Pulumi.Azure Native. Container Registry. Package Source Type 
- The type of package source for a archive.
- Url string
- The external repository url.
- Type
string | PackageSource Type 
- The type of package source for a archive.
- Url string
- The external repository url.
- type
String | PackageSource Type 
- The type of package source for a archive.
- url String
- The external repository url.
- type
string | PackageSource Type 
- The type of package source for a archive.
- url string
- The external repository url.
- type
str | PackageSource Type 
- The type of package source for a archive.
- url str
- The external repository url.
ArchivePackageSourcePropertiesResponse, ArchivePackageSourcePropertiesResponseArgs          
PackageSourceType, PackageSourceTypeArgs      
- Remote
- remote
- PackageSource Type Remote 
- remote
- Remote
- remote
- Remote
- remote
- REMOTE
- remote
- "remote"
- remote
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource modification (UTC).
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource modification (UTC).
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource modification (UTC).
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource modification (UTC).
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource modification (UTC).
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource modification (UTC).
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0