published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Manages a container.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
import * as random from "@pulumi/random";
import * as std from "@pulumi/std";
import * as tls from "@pulumi/tls";
export = async () => {
const ubuntu2504LxcImg = new proxmoxve.download.FileLegacy("ubuntu_2504_lxc_img", {
contentType: "vztmpl",
datastoreId: "local",
nodeName: "first-node",
url: "https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz",
});
const ubuntuContainerPassword = new random.RandomPassword("ubuntu_container_password", {
length: 16,
overrideSpecial: "_%@",
special: true,
});
const ubuntuContainerKey = new tls.PrivateKey("ubuntu_container_key", {
algorithm: "RSA",
rsaBits: 2048,
});
const ubuntuContainer = new proxmoxve.ContainerLegacy("ubuntu_container", {
description: "Managed by Pulumi",
nodeName: "first-node",
vmId: 1234,
unprivileged: true,
features: {
nesting: true,
},
initialization: {
hostname: "terraform-provider-proxmox-ubuntu-container",
ipConfigs: [{
ipv4: {
address: "dhcp",
},
}],
userAccount: {
keys: [std.trimspaceOutput({
input: ubuntuContainerKey.publicKeyOpenssh,
}).apply(invoke => invoke.result)],
password: ubuntuContainerPassword.result,
},
},
networkInterfaces: [{
name: "veth0",
}],
disk: {
datastoreId: "local-lvm",
size: 4,
},
operatingSystem: {
templateFileId: ubuntu2504LxcImg.id,
type: "ubuntu",
},
mountPoints: [
{
volume: "/mnt/bindmounts/shared",
path: "/mnt/shared",
},
{
volume: "local-lvm",
size: "10G",
path: "/mnt/volume",
},
{
volume: "local-lvm:subvol-108-disk-101",
size: "10G",
path: "/mnt/data",
},
],
startup: {
order: 3,
upDelay: 60,
downDelay: 60,
},
});
return {
ubuntuContainerPassword: ubuntuContainerPassword.result,
ubuntuContainerPrivateKey: ubuntuContainerKey.privateKeyPem,
ubuntuContainerPublicKey: ubuntuContainerKey.publicKeyOpenssh,
};
}
import pulumi
import pulumi_proxmoxve as proxmoxve
import pulumi_random as random
import pulumi_std as std
import pulumi_tls as tls
ubuntu2504_lxc_img = proxmoxve.download.FileLegacy("ubuntu_2504_lxc_img",
content_type="vztmpl",
datastore_id="local",
node_name="first-node",
url="https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz")
ubuntu_container_password = random.RandomPassword("ubuntu_container_password",
length=16,
override_special="_%@",
special=True)
ubuntu_container_key = tls.PrivateKey("ubuntu_container_key",
algorithm="RSA",
rsa_bits=2048)
ubuntu_container = proxmoxve.ContainerLegacy("ubuntu_container",
description="Managed by Pulumi",
node_name="first-node",
vm_id=1234,
unprivileged=True,
features={
"nesting": True,
},
initialization={
"hostname": "terraform-provider-proxmox-ubuntu-container",
"ip_configs": [{
"ipv4": {
"address": "dhcp",
},
}],
"user_account": {
"keys": [std.trimspace_output(input=ubuntu_container_key.public_key_openssh).apply(lambda invoke: invoke.result)],
"password": ubuntu_container_password.result,
},
},
network_interfaces=[{
"name": "veth0",
}],
disk={
"datastore_id": "local-lvm",
"size": 4,
},
operating_system={
"template_file_id": ubuntu2504_lxc_img.id,
"type": "ubuntu",
},
mount_points=[
{
"volume": "/mnt/bindmounts/shared",
"path": "/mnt/shared",
},
{
"volume": "local-lvm",
"size": "10G",
"path": "/mnt/volume",
},
{
"volume": "local-lvm:subvol-108-disk-101",
"size": "10G",
"path": "/mnt/data",
},
],
startup={
"order": 3,
"up_delay": 60,
"down_delay": 60,
})
pulumi.export("ubuntuContainerPassword", ubuntu_container_password.result)
pulumi.export("ubuntuContainerPrivateKey", ubuntu_container_key.private_key_pem)
pulumi.export("ubuntuContainerPublicKey", ubuntu_container_key.public_key_openssh)
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve/download"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi-std/sdk/v2/go/std"
"github.com/pulumi/pulumi-tls/sdk/v5/go/tls"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ubuntu2504LxcImg, err := download.NewFileLegacy(ctx, "ubuntu_2504_lxc_img", &download.FileLegacyArgs{
ContentType: pulumi.String("vztmpl"),
DatastoreId: pulumi.String("local"),
NodeName: pulumi.String("first-node"),
Url: pulumi.String("https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz"),
})
if err != nil {
return err
}
ubuntuContainerPassword, err := random.NewRandomPassword(ctx, "ubuntu_container_password", &random.RandomPasswordArgs{
Length: pulumi.Int(16),
OverrideSpecial: pulumi.String("_%@"),
Special: pulumi.Bool(true),
})
if err != nil {
return err
}
ubuntuContainerKey, err := tls.NewPrivateKey(ctx, "ubuntu_container_key", &tls.PrivateKeyArgs{
Algorithm: pulumi.String("RSA"),
RsaBits: pulumi.Int(2048),
})
if err != nil {
return err
}
_, err = proxmoxve.NewContainerLegacy(ctx, "ubuntu_container", &proxmoxve.ContainerLegacyArgs{
Description: pulumi.String("Managed by Pulumi"),
NodeName: pulumi.String("first-node"),
VmId: pulumi.Int(1234),
Unprivileged: pulumi.Bool(true),
Features: &proxmoxve.ContainerLegacyFeaturesArgs{
Nesting: pulumi.Bool(true),
},
Initialization: &proxmoxve.ContainerLegacyInitializationArgs{
Hostname: pulumi.String("terraform-provider-proxmox-ubuntu-container"),
IpConfigs: proxmoxve.ContainerLegacyInitializationIpConfigArray{
&proxmoxve.ContainerLegacyInitializationIpConfigArgs{
Ipv4: &proxmoxve.ContainerLegacyInitializationIpConfigIpv4Args{
Address: pulumi.String("dhcp"),
},
},
},
UserAccount: &proxmoxve.ContainerLegacyInitializationUserAccountArgs{
Keys: pulumi.StringArray{
std.TrimspaceOutput(ctx, std.TrimspaceOutputArgs{
Input: ubuntuContainerKey.PublicKeyOpenssh,
}, nil).ApplyT(func(invoke std.TrimspaceResult) (*string, error) {
val := invoke.Result
return &val, nil
}).(pulumi.StringPtrOutput),
},
Password: ubuntuContainerPassword.Result,
},
},
NetworkInterfaces: proxmoxve.ContainerLegacyNetworkInterfaceArray{
&proxmoxve.ContainerLegacyNetworkInterfaceArgs{
Name: pulumi.String("veth0"),
},
},
Disk: &proxmoxve.ContainerLegacyDiskArgs{
DatastoreId: pulumi.String("local-lvm"),
Size: pulumi.Int(4),
},
OperatingSystem: &proxmoxve.ContainerLegacyOperatingSystemArgs{
TemplateFileId: ubuntu2504LxcImg.ID(),
Type: pulumi.String("ubuntu"),
},
MountPoints: proxmoxve.ContainerLegacyMountPointArray{
&proxmoxve.ContainerLegacyMountPointArgs{
Volume: pulumi.String("/mnt/bindmounts/shared"),
Path: pulumi.String("/mnt/shared"),
},
&proxmoxve.ContainerLegacyMountPointArgs{
Volume: pulumi.String("local-lvm"),
Size: pulumi.String("10G"),
Path: pulumi.String("/mnt/volume"),
},
&proxmoxve.ContainerLegacyMountPointArgs{
Volume: pulumi.String("local-lvm:subvol-108-disk-101"),
Size: pulumi.String("10G"),
Path: pulumi.String("/mnt/data"),
},
},
Startup: &proxmoxve.ContainerLegacyStartupArgs{
Order: pulumi.Int(3),
UpDelay: pulumi.Int(60),
DownDelay: pulumi.Int(60),
},
})
if err != nil {
return err
}
ctx.Export("ubuntuContainerPassword", ubuntuContainerPassword.Result)
ctx.Export("ubuntuContainerPrivateKey", ubuntuContainerKey.PrivateKeyPem)
ctx.Export("ubuntuContainerPublicKey", ubuntuContainerKey.PublicKeyOpenssh)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
using Random = Pulumi.Random;
using Std = Pulumi.Std;
using Tls = Pulumi.Tls;
return await Deployment.RunAsync(() =>
{
var ubuntu2504LxcImg = new ProxmoxVE.Download.FileLegacy("ubuntu_2504_lxc_img", new()
{
ContentType = "vztmpl",
DatastoreId = "local",
NodeName = "first-node",
Url = "https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz",
});
var ubuntuContainerPassword = new Random.Index.RandomPassword("ubuntu_container_password", new()
{
Length = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(16) (example.pp:74,21-23)),
OverrideSpecial = "_%@",
Special = true,
});
var ubuntuContainerKey = new Tls.Index.PrivateKey("ubuntu_container_key", new()
{
Algorithm = "RSA",
RsaBits = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(2048) (example.pp:82,19-23)),
});
var ubuntuContainer = new ProxmoxVE.Index.ContainerLegacy("ubuntu_container", new()
{
Description = "Managed by Pulumi",
NodeName = "first-node",
VmId = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1234) (example.pp:4,19-23)),
Unprivileged = true,
Features = new ProxmoxVE.Inputs.ContainerLegacyFeaturesArgs
{
Nesting = true,
},
Initialization = new ProxmoxVE.Inputs.ContainerLegacyInitializationArgs
{
Hostname = "terraform-provider-proxmox-ubuntu-container",
IpConfigs = new[]
{
new ProxmoxVE.Inputs.ContainerLegacyInitializationIpConfigArgs
{
Ipv4 = new ProxmoxVE.Inputs.ContainerLegacyInitializationIpConfigIpv4Args
{
Address = "dhcp",
},
},
},
UserAccount = new ProxmoxVE.Inputs.ContainerLegacyInitializationUserAccountArgs
{
Keys = new[]
{
Std.Index.Trimspace.Invoke(new()
{
Input = ubuntuContainerKey.PublicKeyOpenssh,
}).Apply(invoke => invoke.Result),
},
Password = ubuntuContainerPassword.Result,
},
},
NetworkInterfaces = new[]
{
new ProxmoxVE.Inputs.ContainerLegacyNetworkInterfaceArgs
{
Name = "veth0",
},
},
Disk = new ProxmoxVE.Inputs.ContainerLegacyDiskArgs
{
DatastoreId = "local-lvm",
Size = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(4) (example.pp:31,19-20)),
},
OperatingSystem = new ProxmoxVE.Inputs.ContainerLegacyOperatingSystemArgs
{
TemplateFileId = ubuntu2504LxcImg.Id,
Type = "ubuntu",
},
MountPoints = new[]
{
new ProxmoxVE.Inputs.ContainerLegacyMountPointArgs
{
Volume = "/mnt/bindmounts/shared",
Path = "/mnt/shared",
},
new ProxmoxVE.Inputs.ContainerLegacyMountPointArgs
{
Volume = "local-lvm",
Size = "10G",
Path = "/mnt/volume",
},
new ProxmoxVE.Inputs.ContainerLegacyMountPointArgs
{
Volume = "local-lvm:subvol-108-disk-101",
Size = "10G",
Path = "/mnt/data",
},
},
Startup = new ProxmoxVE.Inputs.ContainerLegacyStartupArgs
{
Order = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(3) (:0,0-0)),
UpDelay = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(60) (:0,0-0)),
DownDelay = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(60) (:0,0-0)),
},
});
return new Dictionary<string, object?>
{
["ubuntuContainerPassword"] = ubuntuContainerPassword.Result,
["ubuntuContainerPrivateKey"] = ubuntuContainerKey.PrivateKeyPem,
["ubuntuContainerPublicKey"] = ubuntuContainerKey.PublicKeyOpenssh,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.download.FileLegacy;
import io.muehlbachler.pulumi.proxmoxve.download.FileLegacyArgs;
import com.pulumi.random.RandomPassword;
import com.pulumi.random.RandomPasswordArgs;
import com.pulumi.tls.PrivateKey;
import com.pulumi.tls.PrivateKeyArgs;
import io.muehlbachler.pulumi.proxmoxve.ContainerLegacy;
import io.muehlbachler.pulumi.proxmoxve.ContainerLegacyArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyFeaturesArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyInitializationArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyInitializationUserAccountArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyNetworkInterfaceArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyDiskArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyOperatingSystemArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyMountPointArgs;
import com.pulumi.proxmoxve.inputs.ContainerLegacyStartupArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.TrimspaceArgs;
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 ubuntu2504LxcImg = new FileLegacy("ubuntu2504LxcImg", FileLegacyArgs.builder()
.contentType("vztmpl")
.datastoreId("local")
.nodeName("first-node")
.url("https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz")
.build());
var ubuntuContainerPassword = new RandomPassword("ubuntuContainerPassword", RandomPasswordArgs.builder()
.length(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(16) (example.pp:74,21-23)))
.overrideSpecial("_%@")
.special(true)
.build());
var ubuntuContainerKey = new PrivateKey("ubuntuContainerKey", PrivateKeyArgs.builder()
.algorithm("RSA")
.rsaBits(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(2048) (example.pp:82,19-23)))
.build());
var ubuntuContainer = new ContainerLegacy("ubuntuContainer", ContainerLegacyArgs.builder()
.description("Managed by Pulumi")
.nodeName("first-node")
.vmId(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1234) (example.pp:4,19-23)))
.unprivileged(true)
.features(ContainerLegacyFeaturesArgs.builder()
.nesting(true)
.build())
.initialization(ContainerLegacyInitializationArgs.builder()
.hostname("terraform-provider-proxmox-ubuntu-container")
.ipConfigs(ContainerLegacyInitializationIpConfigArgs.builder()
.ipv4(ContainerLegacyInitializationIpConfigIpv4Args.builder()
.address("dhcp")
.build())
.build())
.userAccount(ContainerLegacyInitializationUserAccountArgs.builder()
.keys(StdFunctions.trimspace(TrimspaceArgs.builder()
.input(ubuntuContainerKey.publicKeyOpenssh())
.build()).applyValue(_invoke -> _invoke.result()))
.password(ubuntuContainerPassword.result())
.build())
.build())
.networkInterfaces(ContainerLegacyNetworkInterfaceArgs.builder()
.name("veth0")
.build())
.disk(ContainerLegacyDiskArgs.builder()
.datastoreId("local-lvm")
.size(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(4) (example.pp:31,19-20)))
.build())
.operatingSystem(ContainerLegacyOperatingSystemArgs.builder()
.templateFileId(ubuntu2504LxcImg.id())
.type("ubuntu")
.build())
.mountPoints(
ContainerLegacyMountPointArgs.builder()
.volume("/mnt/bindmounts/shared")
.path("/mnt/shared")
.build(),
ContainerLegacyMountPointArgs.builder()
.volume("local-lvm")
.size("10G")
.path("/mnt/volume")
.build(),
ContainerLegacyMountPointArgs.builder()
.volume("local-lvm:subvol-108-disk-101")
.size("10G")
.path("/mnt/data")
.build())
.startup(ContainerLegacyStartupArgs.builder()
.order(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(3) (:0,0-0)))
.upDelay(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(60) (:0,0-0)))
.downDelay(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(60) (:0,0-0)))
.build())
.build());
ctx.export("ubuntuContainerPassword", ubuntuContainerPassword.result());
ctx.export("ubuntuContainerPrivateKey", ubuntuContainerKey.privateKeyPem());
ctx.export("ubuntuContainerPublicKey", ubuntuContainerKey.publicKeyOpenssh());
}
}
resources:
ubuntuContainer:
type: proxmoxve:ContainerLegacy
name: ubuntu_container
properties:
description: Managed by Pulumi
nodeName: first-node
vmId: 1234 # newer linux distributions require unprivileged user namespaces
unprivileged: true
features:
nesting: true
initialization:
hostname: terraform-provider-proxmox-ubuntu-container
ipConfigs:
- ipv4:
address: dhcp
userAccount:
keys:
- fn::invoke:
function: std:trimspace
arguments:
input: ${ubuntuContainerKey.publicKeyOpenssh}
return: result
password: ${ubuntuContainerPassword.result}
networkInterfaces:
- name: veth0
disk:
datastoreId: local-lvm
size: 4
operatingSystem:
templateFileId: ${ubuntu2504LxcImg.id}
type: ubuntu
mountPoints:
- volume: /mnt/bindmounts/shared
path: /mnt/shared
- volume: local-lvm
size: 10G
path: /mnt/volume
- volume: local-lvm:subvol-108-disk-101
size: 10G
path: /mnt/data
startup:
order: '3'
upDelay: '60'
downDelay: '60'
ubuntu2504LxcImg:
type: proxmoxve:download:FileLegacy
name: ubuntu_2504_lxc_img
properties:
contentType: vztmpl
datastoreId: local
nodeName: first-node
url: https://mirrors.servercentral.com/ubuntu-cloud-images/releases/25.04/release/ubuntu-25.04-server-cloudimg-amd64-root.tar.xz
ubuntuContainerPassword:
type: random:RandomPassword
name: ubuntu_container_password
properties:
length: 16
overrideSpecial: _%@
special: true
ubuntuContainerKey:
type: tls:PrivateKey
name: ubuntu_container_key
properties:
algorithm: RSA
rsaBits: 2048
outputs:
ubuntuContainerPassword: ${ubuntuContainerPassword.result}
ubuntuContainerPrivateKey: ${ubuntuContainerKey.privateKeyPem}
ubuntuContainerPublicKey: ${ubuntuContainerKey.publicKeyOpenssh}
Create ContainerLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerLegacy(name: string, args: ContainerLegacyArgs, opts?: CustomResourceOptions);@overload
def ContainerLegacy(resource_name: str,
args: ContainerLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_name: Optional[str] = None,
features: Optional[ContainerLegacyFeaturesArgs] = None,
tags: Optional[Sequence[str]] = None,
description: Optional[str] = None,
device_passthroughs: Optional[Sequence[ContainerLegacyDevicePassthroughArgs]] = None,
disk: Optional[ContainerLegacyDiskArgs] = None,
environment_variables: Optional[Mapping[str, str]] = None,
clone: Optional[ContainerLegacyCloneArgs] = None,
hook_script_file_id: Optional[str] = None,
idmaps: Optional[Sequence[ContainerLegacyIdmapArgs]] = None,
initialization: Optional[ContainerLegacyInitializationArgs] = None,
memory: Optional[ContainerLegacyMemoryArgs] = None,
mount_points: Optional[Sequence[ContainerLegacyMountPointArgs]] = None,
network_interfaces: Optional[Sequence[ContainerLegacyNetworkInterfaceArgs]] = None,
console: Optional[ContainerLegacyConsoleArgs] = None,
cpu: Optional[ContainerLegacyCpuArgs] = None,
operating_system: Optional[ContainerLegacyOperatingSystemArgs] = None,
timeout_clone: Optional[int] = None,
start_on_boot: Optional[bool] = None,
started: Optional[bool] = None,
startup: Optional[ContainerLegacyStartupArgs] = None,
pool_id: Optional[str] = None,
template: Optional[bool] = None,
protection: Optional[bool] = None,
timeout_create: Optional[int] = None,
timeout_delete: Optional[int] = None,
timeout_start: Optional[int] = None,
timeout_update: Optional[int] = None,
unprivileged: Optional[bool] = None,
vm_id: Optional[int] = None,
wait_for_ip: Optional[ContainerLegacyWaitForIpArgs] = None)func NewContainerLegacy(ctx *Context, name string, args ContainerLegacyArgs, opts ...ResourceOption) (*ContainerLegacy, error)public ContainerLegacy(string name, ContainerLegacyArgs args, CustomResourceOptions? opts = null)
public ContainerLegacy(String name, ContainerLegacyArgs args)
public ContainerLegacy(String name, ContainerLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:ContainerLegacy
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 ContainerLegacyArgs
- 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 ContainerLegacyArgs
- 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 ContainerLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContainerLegacy 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 ContainerLegacy resource accepts the following input properties:
- Node
Name string - The name of the node to assign the container to.
- Clone
Pulumi.
Proxmox VE. Inputs. Container Legacy Clone - The cloning configuration.
- Console
Pulumi.
Proxmox VE. Inputs. Container Legacy Console - The console configuration.
- Cpu
Pulumi.
Proxmox VE. Inputs. Container Legacy Cpu - The CPU configuration.
- Description string
- The description.
- Device
Passthroughs List<Pulumi.Proxmox VE. Inputs. Container Legacy Device Passthrough> - Device to pass through to the container (multiple blocks supported).
- Disk
Pulumi.
Proxmox VE. Inputs. Container Legacy Disk - The disk configuration.
- Environment
Variables Dictionary<string, string> - A map of runtime environment variables for the container init process.
- Features
Pulumi.
Proxmox VE. Inputs. Container Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - Hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - Idmaps
List<Pulumi.
Proxmox VE. Inputs. Container Legacy Idmap> - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - Initialization
Pulumi.
Proxmox VE. Inputs. Container Legacy Initialization - The initialization configuration.
- Memory
Pulumi.
Proxmox VE. Inputs. Container Legacy Memory - The memory configuration.
- Mount
Points List<Pulumi.Proxmox VE. Inputs. Container Legacy Mount Point> - A mount point
- Network
Interfaces List<Pulumi.Proxmox VE. Inputs. Container Legacy Network Interface> - A network interface (multiple blocks supported).
- Operating
System Pulumi.Proxmox VE. Inputs. Container Legacy Operating System - The Operating System configuration.
- Pool
Id string - The identifier for a pool to assign the container to.
- Protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - Start
On boolBoot - Automatically start container when the host
system boots (defaults to
true). - Started bool
- Whether to start the container (defaults to
true). - Startup
Pulumi.
Proxmox VE. Inputs. Container Legacy Startup - Defines startup and shutdown behavior of the container.
- List<string>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - Template bool
- Whether to create a template (defaults to
false). - Timeout
Clone int - Timeout for cloning a container in seconds (defaults to 1800).
- Timeout
Create int - Timeout for creating a container in seconds (defaults to 1800).
- Timeout
Delete int - Timeout for deleting a container in seconds (defaults to 60).
- Timeout
Start int - Start container timeout
- Timeout
Update int - Timeout for updating a container in seconds (defaults to 1800).
- Unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - Vm
Id int - The container identifier
- Wait
For Pulumi.Ip Proxmox VE. Inputs. Container Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- Node
Name string - The name of the node to assign the container to.
- Clone
Container
Legacy Clone Args - The cloning configuration.
- Console
Container
Legacy Console Args - The console configuration.
- Cpu
Container
Legacy Cpu Args - The CPU configuration.
- Description string
- The description.
- Device
Passthroughs []ContainerLegacy Device Passthrough Args - Device to pass through to the container (multiple blocks supported).
- Disk
Container
Legacy Disk Args - The disk configuration.
- Environment
Variables map[string]string - A map of runtime environment variables for the container init process.
- Features
Container
Legacy Features Args - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - Hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - Idmaps
[]Container
Legacy Idmap Args - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - Initialization
Container
Legacy Initialization Args - The initialization configuration.
- Memory
Container
Legacy Memory Args - The memory configuration.
- Mount
Points []ContainerLegacy Mount Point Args - A mount point
- Network
Interfaces []ContainerLegacy Network Interface Args - A network interface (multiple blocks supported).
- Operating
System ContainerLegacy Operating System Args - The Operating System configuration.
- Pool
Id string - The identifier for a pool to assign the container to.
- Protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - Start
On boolBoot - Automatically start container when the host
system boots (defaults to
true). - Started bool
- Whether to start the container (defaults to
true). - Startup
Container
Legacy Startup Args - Defines startup and shutdown behavior of the container.
- []string
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - Template bool
- Whether to create a template (defaults to
false). - Timeout
Clone int - Timeout for cloning a container in seconds (defaults to 1800).
- Timeout
Create int - Timeout for creating a container in seconds (defaults to 1800).
- Timeout
Delete int - Timeout for deleting a container in seconds (defaults to 60).
- Timeout
Start int - Start container timeout
- Timeout
Update int - Timeout for updating a container in seconds (defaults to 1800).
- Unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - Vm
Id int - The container identifier
- Wait
For ContainerIp Legacy Wait For Ip Args - Configuration for waiting for specific IP address types when the container starts.
- node
Name String - The name of the node to assign the container to.
- clone_
Container
Legacy Clone - The cloning configuration.
- console
Container
Legacy Console - The console configuration.
- cpu
Container
Legacy Cpu - The CPU configuration.
- description String
- The description.
- device
Passthroughs List<ContainerLegacy Device Passthrough> - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk - The disk configuration.
- environment
Variables Map<String,String> - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script StringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
List<Container
Legacy Idmap> - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization - The initialization configuration.
- memory
Container
Legacy Memory - The memory configuration.
- mount
Points List<ContainerLegacy Mount Point> - A mount point
- network
Interfaces List<ContainerLegacy Network Interface> - A network interface (multiple blocks supported).
- operating
System ContainerLegacy Operating System - The Operating System configuration.
- pool
Id String - The identifier for a pool to assign the container to.
- protection Boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On BooleanBoot - Automatically start container when the host
system boots (defaults to
true). - started Boolean
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup - Defines startup and shutdown behavior of the container.
- List<String>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template Boolean
- Whether to create a template (defaults to
false). - timeout
Clone Integer - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create Integer - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete Integer - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start Integer - Start container timeout
- timeout
Update Integer - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged Boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id Integer - The container identifier
- wait
For ContainerIp Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- node
Name string - The name of the node to assign the container to.
- clone
Container
Legacy Clone - The cloning configuration.
- console
Container
Legacy Console - The console configuration.
- cpu
Container
Legacy Cpu - The CPU configuration.
- description string
- The description.
- device
Passthroughs ContainerLegacy Device Passthrough[] - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk - The disk configuration.
- environment
Variables {[key: string]: string} - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
Container
Legacy Idmap[] - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization - The initialization configuration.
- memory
Container
Legacy Memory - The memory configuration.
- mount
Points ContainerLegacy Mount Point[] - A mount point
- network
Interfaces ContainerLegacy Network Interface[] - A network interface (multiple blocks supported).
- operating
System ContainerLegacy Operating System - The Operating System configuration.
- pool
Id string - The identifier for a pool to assign the container to.
- protection boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On booleanBoot - Automatically start container when the host
system boots (defaults to
true). - started boolean
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup - Defines startup and shutdown behavior of the container.
- string[]
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template boolean
- Whether to create a template (defaults to
false). - timeout
Clone number - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create number - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete number - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start number - Start container timeout
- timeout
Update number - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id number - The container identifier
- wait
For ContainerIp Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- node_
name str - The name of the node to assign the container to.
- clone
Container
Legacy Clone Args - The cloning configuration.
- console
Container
Legacy Console Args - The console configuration.
- cpu
Container
Legacy Cpu Args - The CPU configuration.
- description str
- The description.
- device_
passthroughs Sequence[ContainerLegacy Device Passthrough Args] - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk Args - The disk configuration.
- environment_
variables Mapping[str, str] - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features Args - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook_
script_ strfile_ id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
Sequence[Container
Legacy Idmap Args] - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization Args - The initialization configuration.
- memory
Container
Legacy Memory Args - The memory configuration.
- mount_
points Sequence[ContainerLegacy Mount Point Args] - A mount point
- network_
interfaces Sequence[ContainerLegacy Network Interface Args] - A network interface (multiple blocks supported).
- operating_
system ContainerLegacy Operating System Args - The Operating System configuration.
- pool_
id str - The identifier for a pool to assign the container to.
- protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start_
on_ boolboot - Automatically start container when the host
system boots (defaults to
true). - started bool
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup Args - Defines startup and shutdown behavior of the container.
- Sequence[str]
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template bool
- Whether to create a template (defaults to
false). - timeout_
clone int - Timeout for cloning a container in seconds (defaults to 1800).
- timeout_
create int - Timeout for creating a container in seconds (defaults to 1800).
- timeout_
delete int - Timeout for deleting a container in seconds (defaults to 60).
- timeout_
start int - Start container timeout
- timeout_
update int - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - vm_
id int - The container identifier
- wait_
for_ Containerip Legacy Wait For Ip Args - Configuration for waiting for specific IP address types when the container starts.
- node
Name String - The name of the node to assign the container to.
- clone Property Map
- The cloning configuration.
- console Property Map
- The console configuration.
- cpu Property Map
- The CPU configuration.
- description String
- The description.
- device
Passthroughs List<Property Map> - Device to pass through to the container (multiple blocks supported).
- disk Property Map
- The disk configuration.
- environment
Variables Map<String> - A map of runtime environment variables for the container init process.
- features Property Map
- The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script StringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps List<Property Map>
- UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization Property Map
- The initialization configuration.
- memory Property Map
- The memory configuration.
- mount
Points List<Property Map> - A mount point
- network
Interfaces List<Property Map> - A network interface (multiple blocks supported).
- operating
System Property Map - The Operating System configuration.
- pool
Id String - The identifier for a pool to assign the container to.
- protection Boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On BooleanBoot - Automatically start container when the host
system boots (defaults to
true). - started Boolean
- Whether to start the container (defaults to
true). - startup Property Map
- Defines startup and shutdown behavior of the container.
- List<String>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template Boolean
- Whether to create a template (defaults to
false). - timeout
Clone Number - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create Number - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete Number - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start Number - Start container timeout
- timeout
Update Number - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged Boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id Number - The container identifier
- wait
For Property MapIp - Configuration for waiting for specific IP address types when the container starts.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerLegacy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4 Dictionary<string, string>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- Ipv6 Dictionary<string, string>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4 map[string]string
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- Ipv6 map[string]string
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4 Map<String,String>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Map<String,String>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv4 {[key: string]: string}
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 {[key: string]: string}
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv4 Mapping[str, str]
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Mapping[str, str]
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4 Map<String>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Map<String>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
Look up Existing ContainerLegacy Resource
Get an existing ContainerLegacy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerLegacyState, opts?: CustomResourceOptions): ContainerLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clone: Optional[ContainerLegacyCloneArgs] = None,
console: Optional[ContainerLegacyConsoleArgs] = None,
cpu: Optional[ContainerLegacyCpuArgs] = None,
description: Optional[str] = None,
device_passthroughs: Optional[Sequence[ContainerLegacyDevicePassthroughArgs]] = None,
disk: Optional[ContainerLegacyDiskArgs] = None,
environment_variables: Optional[Mapping[str, str]] = None,
features: Optional[ContainerLegacyFeaturesArgs] = None,
hook_script_file_id: Optional[str] = None,
idmaps: Optional[Sequence[ContainerLegacyIdmapArgs]] = None,
initialization: Optional[ContainerLegacyInitializationArgs] = None,
ipv4: Optional[Mapping[str, str]] = None,
ipv6: Optional[Mapping[str, str]] = None,
memory: Optional[ContainerLegacyMemoryArgs] = None,
mount_points: Optional[Sequence[ContainerLegacyMountPointArgs]] = None,
network_interfaces: Optional[Sequence[ContainerLegacyNetworkInterfaceArgs]] = None,
node_name: Optional[str] = None,
operating_system: Optional[ContainerLegacyOperatingSystemArgs] = None,
pool_id: Optional[str] = None,
protection: Optional[bool] = None,
start_on_boot: Optional[bool] = None,
started: Optional[bool] = None,
startup: Optional[ContainerLegacyStartupArgs] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[bool] = None,
timeout_clone: Optional[int] = None,
timeout_create: Optional[int] = None,
timeout_delete: Optional[int] = None,
timeout_start: Optional[int] = None,
timeout_update: Optional[int] = None,
unprivileged: Optional[bool] = None,
vm_id: Optional[int] = None,
wait_for_ip: Optional[ContainerLegacyWaitForIpArgs] = None) -> ContainerLegacyfunc GetContainerLegacy(ctx *Context, name string, id IDInput, state *ContainerLegacyState, opts ...ResourceOption) (*ContainerLegacy, error)public static ContainerLegacy Get(string name, Input<string> id, ContainerLegacyState? state, CustomResourceOptions? opts = null)public static ContainerLegacy get(String name, Output<String> id, ContainerLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:ContainerLegacy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Clone
Pulumi.
Proxmox VE. Inputs. Container Legacy Clone - The cloning configuration.
- Console
Pulumi.
Proxmox VE. Inputs. Container Legacy Console - The console configuration.
- Cpu
Pulumi.
Proxmox VE. Inputs. Container Legacy Cpu - The CPU configuration.
- Description string
- The description.
- Device
Passthroughs List<Pulumi.Proxmox VE. Inputs. Container Legacy Device Passthrough> - Device to pass through to the container (multiple blocks supported).
- Disk
Pulumi.
Proxmox VE. Inputs. Container Legacy Disk - The disk configuration.
- Environment
Variables Dictionary<string, string> - A map of runtime environment variables for the container init process.
- Features
Pulumi.
Proxmox VE. Inputs. Container Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - Hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - Idmaps
List<Pulumi.
Proxmox VE. Inputs. Container Legacy Idmap> - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - Initialization
Pulumi.
Proxmox VE. Inputs. Container Legacy Initialization - The initialization configuration.
- Ipv4 Dictionary<string, string>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- Ipv6 Dictionary<string, string>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- Memory
Pulumi.
Proxmox VE. Inputs. Container Legacy Memory - The memory configuration.
- Mount
Points List<Pulumi.Proxmox VE. Inputs. Container Legacy Mount Point> - A mount point
- Network
Interfaces List<Pulumi.Proxmox VE. Inputs. Container Legacy Network Interface> - A network interface (multiple blocks supported).
- Node
Name string - The name of the node to assign the container to.
- Operating
System Pulumi.Proxmox VE. Inputs. Container Legacy Operating System - The Operating System configuration.
- Pool
Id string - The identifier for a pool to assign the container to.
- Protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - Start
On boolBoot - Automatically start container when the host
system boots (defaults to
true). - Started bool
- Whether to start the container (defaults to
true). - Startup
Pulumi.
Proxmox VE. Inputs. Container Legacy Startup - Defines startup and shutdown behavior of the container.
- List<string>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - Template bool
- Whether to create a template (defaults to
false). - Timeout
Clone int - Timeout for cloning a container in seconds (defaults to 1800).
- Timeout
Create int - Timeout for creating a container in seconds (defaults to 1800).
- Timeout
Delete int - Timeout for deleting a container in seconds (defaults to 60).
- Timeout
Start int - Start container timeout
- Timeout
Update int - Timeout for updating a container in seconds (defaults to 1800).
- Unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - Vm
Id int - The container identifier
- Wait
For Pulumi.Ip Proxmox VE. Inputs. Container Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- Clone
Container
Legacy Clone Args - The cloning configuration.
- Console
Container
Legacy Console Args - The console configuration.
- Cpu
Container
Legacy Cpu Args - The CPU configuration.
- Description string
- The description.
- Device
Passthroughs []ContainerLegacy Device Passthrough Args - Device to pass through to the container (multiple blocks supported).
- Disk
Container
Legacy Disk Args - The disk configuration.
- Environment
Variables map[string]string - A map of runtime environment variables for the container init process.
- Features
Container
Legacy Features Args - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - Hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - Idmaps
[]Container
Legacy Idmap Args - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - Initialization
Container
Legacy Initialization Args - The initialization configuration.
- Ipv4 map[string]string
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- Ipv6 map[string]string
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- Memory
Container
Legacy Memory Args - The memory configuration.
- Mount
Points []ContainerLegacy Mount Point Args - A mount point
- Network
Interfaces []ContainerLegacy Network Interface Args - A network interface (multiple blocks supported).
- Node
Name string - The name of the node to assign the container to.
- Operating
System ContainerLegacy Operating System Args - The Operating System configuration.
- Pool
Id string - The identifier for a pool to assign the container to.
- Protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - Start
On boolBoot - Automatically start container when the host
system boots (defaults to
true). - Started bool
- Whether to start the container (defaults to
true). - Startup
Container
Legacy Startup Args - Defines startup and shutdown behavior of the container.
- []string
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - Template bool
- Whether to create a template (defaults to
false). - Timeout
Clone int - Timeout for cloning a container in seconds (defaults to 1800).
- Timeout
Create int - Timeout for creating a container in seconds (defaults to 1800).
- Timeout
Delete int - Timeout for deleting a container in seconds (defaults to 60).
- Timeout
Start int - Start container timeout
- Timeout
Update int - Timeout for updating a container in seconds (defaults to 1800).
- Unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - Vm
Id int - The container identifier
- Wait
For ContainerIp Legacy Wait For Ip Args - Configuration for waiting for specific IP address types when the container starts.
- clone_
Container
Legacy Clone - The cloning configuration.
- console
Container
Legacy Console - The console configuration.
- cpu
Container
Legacy Cpu - The CPU configuration.
- description String
- The description.
- device
Passthroughs List<ContainerLegacy Device Passthrough> - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk - The disk configuration.
- environment
Variables Map<String,String> - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script StringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
List<Container
Legacy Idmap> - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization - The initialization configuration.
- ipv4 Map<String,String>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Map<String,String>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- memory
Container
Legacy Memory - The memory configuration.
- mount
Points List<ContainerLegacy Mount Point> - A mount point
- network
Interfaces List<ContainerLegacy Network Interface> - A network interface (multiple blocks supported).
- node
Name String - The name of the node to assign the container to.
- operating
System ContainerLegacy Operating System - The Operating System configuration.
- pool
Id String - The identifier for a pool to assign the container to.
- protection Boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On BooleanBoot - Automatically start container when the host
system boots (defaults to
true). - started Boolean
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup - Defines startup and shutdown behavior of the container.
- List<String>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template Boolean
- Whether to create a template (defaults to
false). - timeout
Clone Integer - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create Integer - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete Integer - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start Integer - Start container timeout
- timeout
Update Integer - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged Boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id Integer - The container identifier
- wait
For ContainerIp Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- clone
Container
Legacy Clone - The cloning configuration.
- console
Container
Legacy Console - The console configuration.
- cpu
Container
Legacy Cpu - The CPU configuration.
- description string
- The description.
- device
Passthroughs ContainerLegacy Device Passthrough[] - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk - The disk configuration.
- environment
Variables {[key: string]: string} - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script stringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
Container
Legacy Idmap[] - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization - The initialization configuration.
- ipv4 {[key: string]: string}
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 {[key: string]: string}
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- memory
Container
Legacy Memory - The memory configuration.
- mount
Points ContainerLegacy Mount Point[] - A mount point
- network
Interfaces ContainerLegacy Network Interface[] - A network interface (multiple blocks supported).
- node
Name string - The name of the node to assign the container to.
- operating
System ContainerLegacy Operating System - The Operating System configuration.
- pool
Id string - The identifier for a pool to assign the container to.
- protection boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On booleanBoot - Automatically start container when the host
system boots (defaults to
true). - started boolean
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup - Defines startup and shutdown behavior of the container.
- string[]
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template boolean
- Whether to create a template (defaults to
false). - timeout
Clone number - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create number - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete number - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start number - Start container timeout
- timeout
Update number - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id number - The container identifier
- wait
For ContainerIp Legacy Wait For Ip - Configuration for waiting for specific IP address types when the container starts.
- clone
Container
Legacy Clone Args - The cloning configuration.
- console
Container
Legacy Console Args - The console configuration.
- cpu
Container
Legacy Cpu Args - The CPU configuration.
- description str
- The description.
- device_
passthroughs Sequence[ContainerLegacy Device Passthrough Args] - Device to pass through to the container (multiple blocks supported).
- disk
Container
Legacy Disk Args - The disk configuration.
- environment_
variables Mapping[str, str] - A map of runtime environment variables for the container init process.
- features
Container
Legacy Features Args - The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook_
script_ strfile_ id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps
Sequence[Container
Legacy Idmap Args] - UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization
Container
Legacy Initialization Args - The initialization configuration.
- ipv4 Mapping[str, str]
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Mapping[str, str]
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- memory
Container
Legacy Memory Args - The memory configuration.
- mount_
points Sequence[ContainerLegacy Mount Point Args] - A mount point
- network_
interfaces Sequence[ContainerLegacy Network Interface Args] - A network interface (multiple blocks supported).
- node_
name str - The name of the node to assign the container to.
- operating_
system ContainerLegacy Operating System Args - The Operating System configuration.
- pool_
id str - The identifier for a pool to assign the container to.
- protection bool
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start_
on_ boolboot - Automatically start container when the host
system boots (defaults to
true). - started bool
- Whether to start the container (defaults to
true). - startup
Container
Legacy Startup Args - Defines startup and shutdown behavior of the container.
- Sequence[str]
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template bool
- Whether to create a template (defaults to
false). - timeout_
clone int - Timeout for cloning a container in seconds (defaults to 1800).
- timeout_
create int - Timeout for creating a container in seconds (defaults to 1800).
- timeout_
delete int - Timeout for deleting a container in seconds (defaults to 60).
- timeout_
start int - Start container timeout
- timeout_
update int - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged bool
- Whether the container runs as unprivileged on the host (defaults to
false). - vm_
id int - The container identifier
- wait_
for_ Containerip Legacy Wait For Ip Args - Configuration for waiting for specific IP address types when the container starts.
- clone Property Map
- The cloning configuration.
- console Property Map
- The console configuration.
- cpu Property Map
- The CPU configuration.
- description String
- The description.
- device
Passthroughs List<Property Map> - Device to pass through to the container (multiple blocks supported).
- disk Property Map
- The disk configuration.
- environment
Variables Map<String> - A map of runtime environment variables for the container init process.
- features Property Map
- The container feature flags. Changing flags (except nesting) is only allowed for
root@pamauthenticated user. - hook
Script StringFile Id - The identifier for a file containing a hook script (needs to be executable, e.g. by using the
proxmox_virtual_environment_file.file_modeattribute). - idmaps List<Property Map>
- UID/GID mapping for unprivileged containers (multiple
blocks supported). These are written as
lxc.idmapentries in the container configuration file via SSH, since the Proxmox API does not support writinglxc[n]parameters. - initialization Property Map
- The initialization configuration.
- ipv4 Map<String>
- The map of IPv4 addresses per network devices. Returns the first address for each network device, if multiple addresses are assigned.
- ipv6 Map<String>
- The map of IPv6 addresses per network device. Returns the first address for each network device, if multiple addresses are assigned.
- memory Property Map
- The memory configuration.
- mount
Points List<Property Map> - A mount point
- network
Interfaces List<Property Map> - A network interface (multiple blocks supported).
- node
Name String - The name of the node to assign the container to.
- operating
System Property Map - The Operating System configuration.
- pool
Id String - The identifier for a pool to assign the container to.
- protection Boolean
- Whether to set the protection flag of the container (defaults to
false). This will prevent the container itself and its disk for remove/update operations. - start
On BooleanBoot - Automatically start container when the host
system boots (defaults to
true). - started Boolean
- Whether to start the container (defaults to
true). - startup Property Map
- Defines startup and shutdown behavior of the container.
- List<String>
- A list of tags the container tags. This is only meta
information (defaults to
[]). Note: Proxmox always sorts the container tags and set them to lowercase. If tag contains capital letters, then Proxmox will always report a difference on the resource. You may use theignoreChangeslifecycle meta-argument to ignore changes to this attribute. - template Boolean
- Whether to create a template (defaults to
false). - timeout
Clone Number - Timeout for cloning a container in seconds (defaults to 1800).
- timeout
Create Number - Timeout for creating a container in seconds (defaults to 1800).
- timeout
Delete Number - Timeout for deleting a container in seconds (defaults to 60).
- timeout
Start Number - Start container timeout
- timeout
Update Number - Timeout for updating a container in seconds (defaults to 1800).
- unprivileged Boolean
- Whether the container runs as unprivileged on the host (defaults to
false). - vm
Id Number - The container identifier
- wait
For Property MapIp - Configuration for waiting for specific IP address types when the container starts.
Supporting Types
ContainerLegacyClone, ContainerLegacyCloneArgs
- Vm
Id int - The identifier for the source container.
- Datastore
Id string - The identifier for the target datastore.
- Full bool
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - Node
Name string - The name of the source node (leave blank, if
equal to the
nodeNameargument).
- Vm
Id int - The identifier for the source container.
- Datastore
Id string - The identifier for the target datastore.
- Full bool
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - Node
Name string - The name of the source node (leave blank, if
equal to the
nodeNameargument).
- vm
Id Integer - The identifier for the source container.
- datastore
Id String - The identifier for the target datastore.
- full Boolean
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - node
Name String - The name of the source node (leave blank, if
equal to the
nodeNameargument).
- vm
Id number - The identifier for the source container.
- datastore
Id string - The identifier for the target datastore.
- full boolean
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - node
Name string - The name of the source node (leave blank, if
equal to the
nodeNameargument).
- vm_
id int - The identifier for the source container.
- datastore_
id str - The identifier for the target datastore.
- full bool
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - node_
name str - The name of the source node (leave blank, if
equal to the
nodeNameargument).
- vm
Id Number - The identifier for the source container.
- datastore
Id String - The identifier for the target datastore.
- full Boolean
- When cloning, create a full copy of all disks. Set
to
falseto create a linked clone. Linked clones require the source container to be a template on storage that supports copy-on-write (e.g. Ceph RBD) (defaults totrue). - node
Name String - The name of the source node (leave blank, if
equal to the
nodeNameargument).
ContainerLegacyConsole, ContainerLegacyConsoleArgs
ContainerLegacyCpu, ContainerLegacyCpuArgs
- Architecture string
- The CPU architecture (defaults to
amd64). - Cores int
- The number of CPU cores (defaults to
1). - Limit double
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - Units int
- The CPU units (defaults to
1024).
- Architecture string
- The CPU architecture (defaults to
amd64). - Cores int
- The number of CPU cores (defaults to
1). - Limit float64
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - Units int
- The CPU units (defaults to
1024).
- architecture String
- The CPU architecture (defaults to
amd64). - cores Integer
- The number of CPU cores (defaults to
1). - limit Double
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - units Integer
- The CPU units (defaults to
1024).
- architecture string
- The CPU architecture (defaults to
amd64). - cores number
- The number of CPU cores (defaults to
1). - limit number
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - units number
- The CPU units (defaults to
1024).
- architecture str
- The CPU architecture (defaults to
amd64). - cores int
- The number of CPU cores (defaults to
1). - limit float
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - units int
- The CPU units (defaults to
1024).
- architecture String
- The CPU architecture (defaults to
amd64). - cores Number
- The number of CPU cores (defaults to
1). - limit Number
- Limit of CPU usage. Value
0indicates no limit (defaults to0). - units Number
- The CPU units (defaults to
1024).
ContainerLegacyDevicePassthrough, ContainerLegacyDevicePassthroughArgs
- Path string
- Device to pass through to the container (e.g.
/dev/sda). - Deny
Write bool - Deny the container to write to the device (defaults to
false). - Gid int
- Group ID to be assigned to the device node.
- Mode string
- Access mode to be set on the device node. Must be a 4-digit octal number.
- Uid int
- User ID to be assigned to the device node.
- Path string
- Device to pass through to the container (e.g.
/dev/sda). - Deny
Write bool - Deny the container to write to the device (defaults to
false). - Gid int
- Group ID to be assigned to the device node.
- Mode string
- Access mode to be set on the device node. Must be a 4-digit octal number.
- Uid int
- User ID to be assigned to the device node.
- path String
- Device to pass through to the container (e.g.
/dev/sda). - deny
Write Boolean - Deny the container to write to the device (defaults to
false). - gid Integer
- Group ID to be assigned to the device node.
- mode String
- Access mode to be set on the device node. Must be a 4-digit octal number.
- uid Integer
- User ID to be assigned to the device node.
- path string
- Device to pass through to the container (e.g.
/dev/sda). - deny
Write boolean - Deny the container to write to the device (defaults to
false). - gid number
- Group ID to be assigned to the device node.
- mode string
- Access mode to be set on the device node. Must be a 4-digit octal number.
- uid number
- User ID to be assigned to the device node.
- path str
- Device to pass through to the container (e.g.
/dev/sda). - deny_
write bool - Deny the container to write to the device (defaults to
false). - gid int
- Group ID to be assigned to the device node.
- mode str
- Access mode to be set on the device node. Must be a 4-digit octal number.
- uid int
- User ID to be assigned to the device node.
- path String
- Device to pass through to the container (e.g.
/dev/sda). - deny
Write Boolean - Deny the container to write to the device (defaults to
false). - gid Number
- Group ID to be assigned to the device node.
- mode String
- Access mode to be set on the device node. Must be a 4-digit octal number.
- uid Number
- User ID to be assigned to the device node.
ContainerLegacyDisk, ContainerLegacyDiskArgs
- Acl bool
- Explicitly enable or disable ACL support
- Datastore
Id string - The identifier for the datastore to create the
disk in (defaults to
local). - Mount
Options List<string> - List of extra mount options.
- Path
In stringDatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- Quota bool
- Enable user quotas for the container rootfs
- Replicate bool
- Will include this volume to a storage replica job
- Size int
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
- Acl bool
- Explicitly enable or disable ACL support
- Datastore
Id string - The identifier for the datastore to create the
disk in (defaults to
local). - Mount
Options []string - List of extra mount options.
- Path
In stringDatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- Quota bool
- Enable user quotas for the container rootfs
- Replicate bool
- Will include this volume to a storage replica job
- Size int
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
- acl Boolean
- Explicitly enable or disable ACL support
- datastore
Id String - The identifier for the datastore to create the
disk in (defaults to
local). - mount
Options List<String> - List of extra mount options.
- path
In StringDatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- quota Boolean
- Enable user quotas for the container rootfs
- replicate Boolean
- Will include this volume to a storage replica job
- size Integer
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
- acl boolean
- Explicitly enable or disable ACL support
- datastore
Id string - The identifier for the datastore to create the
disk in (defaults to
local). - mount
Options string[] - List of extra mount options.
- path
In stringDatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- quota boolean
- Enable user quotas for the container rootfs
- replicate boolean
- Will include this volume to a storage replica job
- size number
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
- acl bool
- Explicitly enable or disable ACL support
- datastore_
id str - The identifier for the datastore to create the
disk in (defaults to
local). - mount_
options Sequence[str] - List of extra mount options.
- path_
in_ strdatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- quota bool
- Enable user quotas for the container rootfs
- replicate bool
- Will include this volume to a storage replica job
- size int
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
- acl Boolean
- Explicitly enable or disable ACL support
- datastore
Id String - The identifier for the datastore to create the
disk in (defaults to
local). - mount
Options List<String> - List of extra mount options.
- path
In StringDatastore - The in-datastore path to the disk image. Use this attribute for cross-resource references.
- quota Boolean
- Enable user quotas for the container rootfs
- replicate Boolean
- Will include this volume to a storage replica job
- size Number
- The size of the root filesystem in gigabytes (defaults
to
4). When set to 0 a directory or zfs/btrfs subvolume will be created. RequiresdatastoreIdto be set.
ContainerLegacyFeatures, ContainerLegacyFeaturesArgs
ContainerLegacyIdmap, ContainerLegacyIdmapArgs
- Container
Id int - Starting ID in the container namespace.
- Host
Id int - Starting ID in the host namespace.
- Size int
- Number of IDs to map (must be at least
1). - Type string
- Mapping type (
uidorgid).
- Container
Id int - Starting ID in the container namespace.
- Host
Id int - Starting ID in the host namespace.
- Size int
- Number of IDs to map (must be at least
1). - Type string
- Mapping type (
uidorgid).
- container
Id Integer - Starting ID in the container namespace.
- host
Id Integer - Starting ID in the host namespace.
- size Integer
- Number of IDs to map (must be at least
1). - type String
- Mapping type (
uidorgid).
- container
Id number - Starting ID in the container namespace.
- host
Id number - Starting ID in the host namespace.
- size number
- Number of IDs to map (must be at least
1). - type string
- Mapping type (
uidorgid).
- container_
id int - Starting ID in the container namespace.
- host_
id int - Starting ID in the host namespace.
- size int
- Number of IDs to map (must be at least
1). - type str
- Mapping type (
uidorgid).
- container
Id Number - Starting ID in the container namespace.
- host
Id Number - Starting ID in the host namespace.
- size Number
- Number of IDs to map (must be at least
1). - type String
- Mapping type (
uidorgid).
ContainerLegacyInitialization, ContainerLegacyInitializationArgs
- Dns
Pulumi.
Proxmox VE. Inputs. Container Legacy Initialization Dns - The DNS configuration.
- Entrypoint string
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - Hostname string
- The hostname. Must be a valid DNS name.
- Ip
Configs List<Pulumi.Proxmox VE. Inputs. Container Legacy Initialization Ip Config> - The IP configuration (one block per network device).
- User
Account Pulumi.Proxmox VE. Inputs. Container Legacy Initialization User Account - The user account configuration.
- Dns
Container
Legacy Initialization Dns - The DNS configuration.
- Entrypoint string
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - Hostname string
- The hostname. Must be a valid DNS name.
- Ip
Configs []ContainerLegacy Initialization Ip Config - The IP configuration (one block per network device).
- User
Account ContainerLegacy Initialization User Account - The user account configuration.
- dns
Container
Legacy Initialization Dns - The DNS configuration.
- entrypoint String
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - hostname String
- The hostname. Must be a valid DNS name.
- ip
Configs List<ContainerLegacy Initialization Ip Config> - The IP configuration (one block per network device).
- user
Account ContainerLegacy Initialization User Account - The user account configuration.
- dns
Container
Legacy Initialization Dns - The DNS configuration.
- entrypoint string
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - hostname string
- The hostname. Must be a valid DNS name.
- ip
Configs ContainerLegacy Initialization Ip Config[] - The IP configuration (one block per network device).
- user
Account ContainerLegacy Initialization User Account - The user account configuration.
- dns
Container
Legacy Initialization Dns - The DNS configuration.
- entrypoint str
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - hostname str
- The hostname. Must be a valid DNS name.
- ip_
configs Sequence[ContainerLegacy Initialization Ip Config] - The IP configuration (one block per network device).
- user_
account ContainerLegacy Initialization User Account - The user account configuration.
- dns Property Map
- The DNS configuration.
- entrypoint String
- Command to run as init, optionally with arguments. It may start with an absolute path, relative path, or a binary in
$PATH. - hostname String
- The hostname. Must be a valid DNS name.
- ip
Configs List<Property Map> - The IP configuration (one block per network device).
- user
Account Property Map - The user account configuration.
ContainerLegacyInitializationDns, ContainerLegacyInitializationDnsArgs
ContainerLegacyInitializationIpConfig, ContainerLegacyInitializationIpConfigArgs
- Ipv4
Pulumi.
Proxmox VE. Inputs. Container Legacy Initialization Ip Config Ipv4 - The IPv4 configuration.
- Ipv6
Pulumi.
Proxmox VE. Inputs. Container Legacy Initialization Ip Config Ipv6 - The IPv6 configuration.
- Ipv4
Container
Legacy Initialization Ip Config Ipv4 - The IPv4 configuration.
- Ipv6
Container
Legacy Initialization Ip Config Ipv6 - The IPv6 configuration.
- ipv4
Container
Legacy Initialization Ip Config Ipv4 - The IPv4 configuration.
- ipv6
Container
Legacy Initialization Ip Config Ipv6 - The IPv6 configuration.
- ipv4
Container
Legacy Initialization Ip Config Ipv4 - The IPv4 configuration.
- ipv6
Container
Legacy Initialization Ip Config Ipv6 - The IPv6 configuration.
- ipv4
Container
Legacy Initialization Ip Config Ipv4 - The IPv4 configuration.
- ipv6
Container
Legacy Initialization Ip Config Ipv6 - The IPv6 configuration.
- ipv4 Property Map
- The IPv4 configuration.
- ipv6 Property Map
- The IPv6 configuration.
ContainerLegacyInitializationIpConfigIpv4, ContainerLegacyInitializationIpConfigIpv4Args
ContainerLegacyInitializationIpConfigIpv6, ContainerLegacyInitializationIpConfigIpv6Args
ContainerLegacyInitializationUserAccount, ContainerLegacyInitializationUserAccountArgs
ContainerLegacyMemory, ContainerLegacyMemoryArgs
ContainerLegacyMountPoint, ContainerLegacyMountPointArgs
- Path string
- Path to the mount point as seen from inside the container.
- Volume string
- Volume, device or directory to mount into the container.
- Acl bool
- Explicitly enable or disable ACL support.
- Backup bool
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - Mount
Options List<string> - List of extra mount options.
- Path
In stringDatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - Quota bool
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- Read
Only bool - Read-only mount point.
- Replicate bool
- Will include this volume to a storage replica job.
- bool
- Mark this non-volume mount point as available on all nodes.
- Size string
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
- Path string
- Path to the mount point as seen from inside the container.
- Volume string
- Volume, device or directory to mount into the container.
- Acl bool
- Explicitly enable or disable ACL support.
- Backup bool
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - Mount
Options []string - List of extra mount options.
- Path
In stringDatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - Quota bool
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- Read
Only bool - Read-only mount point.
- Replicate bool
- Will include this volume to a storage replica job.
- bool
- Mark this non-volume mount point as available on all nodes.
- Size string
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
- path String
- Path to the mount point as seen from inside the container.
- volume String
- Volume, device or directory to mount into the container.
- acl Boolean
- Explicitly enable or disable ACL support.
- backup Boolean
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - mount
Options List<String> - List of extra mount options.
- path
In StringDatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - quota Boolean
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- read
Only Boolean - Read-only mount point.
- replicate Boolean
- Will include this volume to a storage replica job.
- Boolean
- Mark this non-volume mount point as available on all nodes.
- size String
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
- path string
- Path to the mount point as seen from inside the container.
- volume string
- Volume, device or directory to mount into the container.
- acl boolean
- Explicitly enable or disable ACL support.
- backup boolean
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - mount
Options string[] - List of extra mount options.
- path
In stringDatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - quota boolean
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- read
Only boolean - Read-only mount point.
- replicate boolean
- Will include this volume to a storage replica job.
- boolean
- Mark this non-volume mount point as available on all nodes.
- size string
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
- path str
- Path to the mount point as seen from inside the container.
- volume str
- Volume, device or directory to mount into the container.
- acl bool
- Explicitly enable or disable ACL support.
- backup bool
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - mount_
options Sequence[str] - List of extra mount options.
- path_
in_ strdatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - quota bool
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- read_
only bool - Read-only mount point.
- replicate bool
- Will include this volume to a storage replica job.
- bool
- Mark this non-volume mount point as available on all nodes.
- size str
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
- path String
- Path to the mount point as seen from inside the container.
- volume String
- Volume, device or directory to mount into the container.
- acl Boolean
- Explicitly enable or disable ACL support.
- backup Boolean
- Whether to include the mount point in backups (only
used for volume mount points, defaults to
false). - mount
Options List<String> - List of extra mount options.
- path
In StringDatastore - The in-datastore path to the mount point volume.
Use this attribute for cross-resource references instead of
volume. - quota Boolean
- Enable user quotas inside the container (not supported with ZFS subvolumes).
- read
Only Boolean - Read-only mount point.
- replicate Boolean
- Will include this volume to a storage replica job.
- Boolean
- Mark this non-volume mount point as available on all nodes.
- size String
- Volume size (only for volume mount points).
Can be specified with a unit suffix (e.g.
10G).
ContainerLegacyNetworkInterface, ContainerLegacyNetworkInterfaceArgs
- Name string
- The network interface name.
- Bridge string
- The name of the network bridge (defaults
to
vmbr0). - Enabled bool
- Whether to enable the network device (defaults
to
true). - Firewall bool
- Whether this interface's firewall rules should be
used (defaults to
false). - Host
Managed bool - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - Mac
Address string - The MAC address.
- Mtu int
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- Rate
Limit double - The rate limit in megabytes per second.
- Vlan
Id int - The VLAN identifier.
- Name string
- The network interface name.
- Bridge string
- The name of the network bridge (defaults
to
vmbr0). - Enabled bool
- Whether to enable the network device (defaults
to
true). - Firewall bool
- Whether this interface's firewall rules should be
used (defaults to
false). - Host
Managed bool - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - Mac
Address string - The MAC address.
- Mtu int
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- Rate
Limit float64 - The rate limit in megabytes per second.
- Vlan
Id int - The VLAN identifier.
- name String
- The network interface name.
- bridge String
- The name of the network bridge (defaults
to
vmbr0). - enabled Boolean
- Whether to enable the network device (defaults
to
true). - firewall Boolean
- Whether this interface's firewall rules should be
used (defaults to
false). - host
Managed Boolean - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - mac
Address String - The MAC address.
- mtu Integer
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- rate
Limit Double - The rate limit in megabytes per second.
- vlan
Id Integer - The VLAN identifier.
- name string
- The network interface name.
- bridge string
- The name of the network bridge (defaults
to
vmbr0). - enabled boolean
- Whether to enable the network device (defaults
to
true). - firewall boolean
- Whether this interface's firewall rules should be
used (defaults to
false). - host
Managed boolean - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - mac
Address string - The MAC address.
- mtu number
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- rate
Limit number - The rate limit in megabytes per second.
- vlan
Id number - The VLAN identifier.
- name str
- The network interface name.
- bridge str
- The name of the network bridge (defaults
to
vmbr0). - enabled bool
- Whether to enable the network device (defaults
to
true). - firewall bool
- Whether this interface's firewall rules should be
used (defaults to
false). - host_
managed bool - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - mac_
address str - The MAC address.
- mtu int
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- rate_
limit float - The rate limit in megabytes per second.
- vlan_
id int - The VLAN identifier.
- name String
- The network interface name.
- bridge String
- The name of the network bridge (defaults
to
vmbr0). - enabled Boolean
- Whether to enable the network device (defaults
to
true). - firewall Boolean
- Whether this interface's firewall rules should be
used (defaults to
false). - host
Managed Boolean - Whether the host runs DHCP on this interface's
behalf (defaults to
false). Requires Proxmox VE 9.0+. Required for application containers that do not include a DHCP client. - mac
Address String - The MAC address.
- mtu Number
- Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
- rate
Limit Number - The rate limit in megabytes per second.
- vlan
Id Number - The VLAN identifier.
ContainerLegacyOperatingSystem, ContainerLegacyOperatingSystemArgs
- Template
File stringId - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - Type string
- The type (defaults to
unmanaged).
- Template
File stringId - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - Type string
- The type (defaults to
unmanaged).
- template
File StringId - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - type String
- The type (defaults to
unmanaged).
- template
File stringId - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - type string
- The type (defaults to
unmanaged).
- template_
file_ strid - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - type str
- The type (defaults to
unmanaged).
- template
File StringId - The identifier for an OS template file.
The ID format is
<datastore_id>:<content_type>/<file_name>, for examplelocal:iso/jammy-server-cloudimg-amd64.tar.gz. Can be also taken fromproxmoxve.download.FileLegacyresource, or from the output ofpvesm list <storage>. - type String
- The type (defaults to
unmanaged).
ContainerLegacyStartup, ContainerLegacyStartupArgs
- down_
delay int - A non-negative number defining the delay in seconds before the next container is shut down.
- order int
- A non-negative number defining the general startup order.
- up_
delay int - A non-negative number defining the delay in seconds before the next container is started.
ContainerLegacyWaitForIp, ContainerLegacyWaitForIpArgs
- Ipv4 bool
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - Ipv6 bool
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
- Ipv4 bool
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - Ipv6 bool
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
- ipv4 Boolean
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - ipv6 Boolean
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
- ipv4 boolean
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - ipv6 boolean
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
- ipv4 bool
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - ipv6 bool
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
- ipv4 Boolean
- Wait for at least one IPv4 address (non-loopback, non-link-local) (defaults to
false). - ipv6 Boolean
Wait for at least one IPv6 address (non-loopback, non-link-local) (defaults to
false).When
waitForIpis not specified or bothipv4andipv6arefalse, the provider waits for any valid global unicast address (IPv4 or IPv6). In dual-stack networks where DHCPv6 responds faster, this may result in only IPv6 addresses being available. Setipv4 = trueto ensure IPv4 address availability.
Import
Instances can be imported using the nodeName and the vmId, e.g.,
$ pulumi import proxmoxve:index/containerLegacy:ContainerLegacy ubuntu_container first-node/1234
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
