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.
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 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")
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",
});
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:
- Package
Type string - The type of the package resource.
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Archive
Name string - The name of the archive resource.
- Package
Source Pulumi.Azure Native. Container Registry. Inputs. Archive Package Source Properties - The package source of the archive.
- Published
Version string - The published version of the archive.
- Repository
Endpoint stringPrefix
- Package
Type string - The type of the package resource.
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Archive
Name string - The name of the archive resource.
- Package
Source ArchivePackage Source Properties Args - The package source of the archive.
- Published
Version string - The published version of the archive.
- Repository
Endpoint stringPrefix
- package
Type String - The type of the package resource.
- registry
Name String - The name of the container registry.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- archive
Name String - The name of the archive resource.
- package
Source ArchivePackage Source Properties - The package source of the archive.
- published
Version String - The published version of the archive.
- repository
Endpoint StringPrefix
- package
Type string - The type of the package resource.
- registry
Name string - The name of the container registry.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- archive
Name string - The name of the archive resource.
- package
Source ArchivePackage Source Properties - The package source of the archive.
- published
Version string - The published version of the archive.
- repository
Endpoint 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
- package
Type String - The type of the package resource.
- registry
Name String - The name of the container registry.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- archive
Name String - The name of the archive resource.
- package
Source Property Map - The package source of the archive.
- published
Version String - The published version of the archive.
- repository
Endpoint 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.
- Provisioning
State string - The provisioning state of the archive at the time the operation was called.
- Repository
Endpoint string - System
Data 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.
- Provisioning
State string - The provisioning state of the archive at the time the operation was called.
- Repository
Endpoint string - System
Data 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.
- provisioning
State String - The provisioning state of the archive at the time the operation was called.
- repository
Endpoint String - system
Data 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.
- provisioning
State string - The provisioning state of the archive at the time the operation was called.
- repository
Endpoint string - system
Data 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.
- provisioning
State String - The provisioning state of the archive at the time the operation was called.
- repository
Endpoint String - system
Data 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 | Package
Source Type - The type of package source for a archive.
- Url string
- The external repository url.
- type
String | Package
Source Type - The type of package source for a archive.
- url String
- The external repository url.
- type
string | Package
Source Type - The type of package source for a archive.
- url string
- The external repository url.
- type
str | Package
Source Type - The type of package source for a archive.
- url str
- The external repository url.
ArchivePackageSourcePropertiesResponse, ArchivePackageSourcePropertiesResponseArgs
PackageSourceType, PackageSourceTypeArgs
- Remote
- remote
- Package
Source Type Remote - remote
- Remote
- remote
- Remote
- remote
- REMOTE
- remote
- "remote"
- remote
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource modification (UTC).
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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