1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. CT
  5. Container
Proxmox Virtual Environment (Proxmox VE) v6.10.0 published on Friday, Jun 14, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.CT.Container

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v6.10.0 published on Friday, Jun 14, 2024 by Daniel Muehlbachler-Pietrzykowski

    Manages a container.

    Create Container Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);
    @overload
    def Container(resource_name: str,
                  args: ContainerArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Container(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  node_name: Optional[str] = None,
                  operating_system: Optional[_ct.ContainerOperatingSystemArgs] = None,
                  features: Optional[_ct.ContainerFeaturesArgs] = None,
                  pool_id: Optional[str] = None,
                  disk: Optional[_ct.ContainerDiskArgs] = None,
                  start_on_boot: Optional[bool] = None,
                  hook_script_file_id: Optional[str] = None,
                  initialization: Optional[_ct.ContainerInitializationArgs] = None,
                  started: Optional[bool] = None,
                  mount_points: Optional[Sequence[_ct.ContainerMountPointArgs]] = None,
                  network_interfaces: Optional[Sequence[_ct.ContainerNetworkInterfaceArgs]] = None,
                  console: Optional[_ct.ContainerConsoleArgs] = None,
                  clone: Optional[_ct.ContainerCloneArgs] = None,
                  description: Optional[str] = None,
                  cpu: Optional[_ct.ContainerCpuArgs] = None,
                  memory: Optional[_ct.ContainerMemoryArgs] = None,
                  startup: Optional[_ct.ContainerStartupArgs] = 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)
    func NewContainer(ctx *Context, name string, args ContainerArgs, opts ...ResourceOption) (*Container, error)
    public Container(string name, ContainerArgs args, CustomResourceOptions? opts = null)
    public Container(String name, ContainerArgs args)
    public Container(String name, ContainerArgs args, CustomResourceOptions options)
    
    type: proxmoxve:CT:Container
    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 ContainerArgs
    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 ContainerArgs
    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 ContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var containerResource = new ProxmoxVE.CT.Container("containerResource", new()
    {
        NodeName = "string",
        OperatingSystem = new ProxmoxVE.CT.Inputs.ContainerOperatingSystemArgs
        {
            TemplateFileId = "string",
            Type = "string",
        },
        Features = new ProxmoxVE.CT.Inputs.ContainerFeaturesArgs
        {
            Fuse = false,
            Keyctl = false,
            Mounts = new[]
            {
                "string",
            },
            Nesting = false,
        },
        PoolId = "string",
        Disk = new ProxmoxVE.CT.Inputs.ContainerDiskArgs
        {
            DatastoreId = "string",
            Size = 0,
        },
        StartOnBoot = false,
        HookScriptFileId = "string",
        Initialization = new ProxmoxVE.CT.Inputs.ContainerInitializationArgs
        {
            Dns = new ProxmoxVE.CT.Inputs.ContainerInitializationDnsArgs
            {
                Domain = "string",
                Servers = new[]
                {
                    "string",
                },
            },
            Hostname = "string",
            IpConfigs = new[]
            {
                new ProxmoxVE.CT.Inputs.ContainerInitializationIpConfigArgs
                {
                    Ipv4 = new ProxmoxVE.CT.Inputs.ContainerInitializationIpConfigIpv4Args
                    {
                        Address = "string",
                        Gateway = "string",
                    },
                    Ipv6 = new ProxmoxVE.CT.Inputs.ContainerInitializationIpConfigIpv6Args
                    {
                        Address = "string",
                        Gateway = "string",
                    },
                },
            },
            UserAccount = new ProxmoxVE.CT.Inputs.ContainerInitializationUserAccountArgs
            {
                Keys = new[]
                {
                    "string",
                },
                Password = "string",
            },
        },
        Started = false,
        MountPoints = new[]
        {
            new ProxmoxVE.CT.Inputs.ContainerMountPointArgs
            {
                Path = "string",
                Volume = "string",
                Acl = false,
                Backup = false,
                MountOptions = new[]
                {
                    "string",
                },
                Quota = false,
                ReadOnly = false,
                Replicate = false,
                Shared = false,
                Size = "string",
            },
        },
        NetworkInterfaces = new[]
        {
            new ProxmoxVE.CT.Inputs.ContainerNetworkInterfaceArgs
            {
                Name = "string",
                Bridge = "string",
                Enabled = false,
                Firewall = false,
                MacAddress = "string",
                Mtu = 0,
                RateLimit = 0,
                VlanId = 0,
            },
        },
        Console = new ProxmoxVE.CT.Inputs.ContainerConsoleArgs
        {
            Enabled = false,
            TtyCount = 0,
            Type = "string",
        },
        Clone = new ProxmoxVE.CT.Inputs.ContainerCloneArgs
        {
            VmId = 0,
            DatastoreId = "string",
            NodeName = "string",
        },
        Description = "string",
        Cpu = new ProxmoxVE.CT.Inputs.ContainerCpuArgs
        {
            Architecture = "string",
            Cores = 0,
            Units = 0,
        },
        Memory = new ProxmoxVE.CT.Inputs.ContainerMemoryArgs
        {
            Dedicated = 0,
            Swap = 0,
        },
        Startup = new ProxmoxVE.CT.Inputs.ContainerStartupArgs
        {
            DownDelay = 0,
            Order = 0,
            UpDelay = 0,
        },
        Tags = new[]
        {
            "string",
        },
        Template = false,
        TimeoutClone = 0,
        TimeoutCreate = 0,
        TimeoutDelete = 0,
        TimeoutUpdate = 0,
        Unprivileged = false,
        VmId = 0,
    });
    
    example, err := CT.NewContainer(ctx, "containerResource", &CT.ContainerArgs{
    	NodeName: pulumi.String("string"),
    	OperatingSystem: &ct.ContainerOperatingSystemArgs{
    		TemplateFileId: pulumi.String("string"),
    		Type:           pulumi.String("string"),
    	},
    	Features: &ct.ContainerFeaturesArgs{
    		Fuse:   pulumi.Bool(false),
    		Keyctl: pulumi.Bool(false),
    		Mounts: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Nesting: pulumi.Bool(false),
    	},
    	PoolId: pulumi.String("string"),
    	Disk: &ct.ContainerDiskArgs{
    		DatastoreId: pulumi.String("string"),
    		Size:        pulumi.Int(0),
    	},
    	StartOnBoot:      pulumi.Bool(false),
    	HookScriptFileId: pulumi.String("string"),
    	Initialization: &ct.ContainerInitializationArgs{
    		Dns: &ct.ContainerInitializationDnsArgs{
    			Domain: pulumi.String("string"),
    			Servers: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Hostname: pulumi.String("string"),
    		IpConfigs: ct.ContainerInitializationIpConfigArray{
    			&ct.ContainerInitializationIpConfigArgs{
    				Ipv4: &ct.ContainerInitializationIpConfigIpv4Args{
    					Address: pulumi.String("string"),
    					Gateway: pulumi.String("string"),
    				},
    				Ipv6: &ct.ContainerInitializationIpConfigIpv6Args{
    					Address: pulumi.String("string"),
    					Gateway: pulumi.String("string"),
    				},
    			},
    		},
    		UserAccount: &ct.ContainerInitializationUserAccountArgs{
    			Keys: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Password: pulumi.String("string"),
    		},
    	},
    	Started: pulumi.Bool(false),
    	MountPoints: ct.ContainerMountPointArray{
    		&ct.ContainerMountPointArgs{
    			Path:   pulumi.String("string"),
    			Volume: pulumi.String("string"),
    			Acl:    pulumi.Bool(false),
    			Backup: pulumi.Bool(false),
    			MountOptions: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Quota:     pulumi.Bool(false),
    			ReadOnly:  pulumi.Bool(false),
    			Replicate: pulumi.Bool(false),
    			Shared:    pulumi.Bool(false),
    			Size:      pulumi.String("string"),
    		},
    	},
    	NetworkInterfaces: ct.ContainerNetworkInterfaceArray{
    		&ct.ContainerNetworkInterfaceArgs{
    			Name:       pulumi.String("string"),
    			Bridge:     pulumi.String("string"),
    			Enabled:    pulumi.Bool(false),
    			Firewall:   pulumi.Bool(false),
    			MacAddress: pulumi.String("string"),
    			Mtu:        pulumi.Int(0),
    			RateLimit:  pulumi.Float64(0),
    			VlanId:     pulumi.Int(0),
    		},
    	},
    	Console: &ct.ContainerConsoleArgs{
    		Enabled:  pulumi.Bool(false),
    		TtyCount: pulumi.Int(0),
    		Type:     pulumi.String("string"),
    	},
    	Clone: &ct.ContainerCloneArgs{
    		VmId:        pulumi.Int(0),
    		DatastoreId: pulumi.String("string"),
    		NodeName:    pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Cpu: &ct.ContainerCpuArgs{
    		Architecture: pulumi.String("string"),
    		Cores:        pulumi.Int(0),
    		Units:        pulumi.Int(0),
    	},
    	Memory: &ct.ContainerMemoryArgs{
    		Dedicated: pulumi.Int(0),
    		Swap:      pulumi.Int(0),
    	},
    	Startup: &ct.ContainerStartupArgs{
    		DownDelay: pulumi.Int(0),
    		Order:     pulumi.Int(0),
    		UpDelay:   pulumi.Int(0),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Template:      pulumi.Bool(false),
    	TimeoutClone:  pulumi.Int(0),
    	TimeoutCreate: pulumi.Int(0),
    	TimeoutDelete: pulumi.Int(0),
    	TimeoutUpdate: pulumi.Int(0),
    	Unprivileged:  pulumi.Bool(false),
    	VmId:          pulumi.Int(0),
    })
    
    var containerResource = new Container("containerResource", ContainerArgs.builder()
        .nodeName("string")
        .operatingSystem(ContainerOperatingSystemArgs.builder()
            .templateFileId("string")
            .type("string")
            .build())
        .features(ContainerFeaturesArgs.builder()
            .fuse(false)
            .keyctl(false)
            .mounts("string")
            .nesting(false)
            .build())
        .poolId("string")
        .disk(ContainerDiskArgs.builder()
            .datastoreId("string")
            .size(0)
            .build())
        .startOnBoot(false)
        .hookScriptFileId("string")
        .initialization(ContainerInitializationArgs.builder()
            .dns(ContainerInitializationDnsArgs.builder()
                .domain("string")
                .servers("string")
                .build())
            .hostname("string")
            .ipConfigs(ContainerInitializationIpConfigArgs.builder()
                .ipv4(ContainerInitializationIpConfigIpv4Args.builder()
                    .address("string")
                    .gateway("string")
                    .build())
                .ipv6(ContainerInitializationIpConfigIpv6Args.builder()
                    .address("string")
                    .gateway("string")
                    .build())
                .build())
            .userAccount(ContainerInitializationUserAccountArgs.builder()
                .keys("string")
                .password("string")
                .build())
            .build())
        .started(false)
        .mountPoints(ContainerMountPointArgs.builder()
            .path("string")
            .volume("string")
            .acl(false)
            .backup(false)
            .mountOptions("string")
            .quota(false)
            .readOnly(false)
            .replicate(false)
            .shared(false)
            .size("string")
            .build())
        .networkInterfaces(ContainerNetworkInterfaceArgs.builder()
            .name("string")
            .bridge("string")
            .enabled(false)
            .firewall(false)
            .macAddress("string")
            .mtu(0)
            .rateLimit(0)
            .vlanId(0)
            .build())
        .console(ContainerConsoleArgs.builder()
            .enabled(false)
            .ttyCount(0)
            .type("string")
            .build())
        .clone(ContainerCloneArgs.builder()
            .vmId(0)
            .datastoreId("string")
            .nodeName("string")
            .build())
        .description("string")
        .cpu(ContainerCpuArgs.builder()
            .architecture("string")
            .cores(0)
            .units(0)
            .build())
        .memory(ContainerMemoryArgs.builder()
            .dedicated(0)
            .swap(0)
            .build())
        .startup(ContainerStartupArgs.builder()
            .downDelay(0)
            .order(0)
            .upDelay(0)
            .build())
        .tags("string")
        .template(false)
        .timeoutClone(0)
        .timeoutCreate(0)
        .timeoutDelete(0)
        .timeoutUpdate(0)
        .unprivileged(false)
        .vmId(0)
        .build());
    
    container_resource = proxmoxve.ct.Container("containerResource",
        node_name="string",
        operating_system=proxmoxve.ct.ContainerOperatingSystemArgs(
            template_file_id="string",
            type="string",
        ),
        features=proxmoxve.ct.ContainerFeaturesArgs(
            fuse=False,
            keyctl=False,
            mounts=["string"],
            nesting=False,
        ),
        pool_id="string",
        disk=proxmoxve.ct.ContainerDiskArgs(
            datastore_id="string",
            size=0,
        ),
        start_on_boot=False,
        hook_script_file_id="string",
        initialization=proxmoxve.ct.ContainerInitializationArgs(
            dns=proxmoxve.ct.ContainerInitializationDnsArgs(
                domain="string",
                servers=["string"],
            ),
            hostname="string",
            ip_configs=[proxmoxve.ct.ContainerInitializationIpConfigArgs(
                ipv4=proxmoxve.ct.ContainerInitializationIpConfigIpv4Args(
                    address="string",
                    gateway="string",
                ),
                ipv6=proxmoxve.ct.ContainerInitializationIpConfigIpv6Args(
                    address="string",
                    gateway="string",
                ),
            )],
            user_account=proxmoxve.ct.ContainerInitializationUserAccountArgs(
                keys=["string"],
                password="string",
            ),
        ),
        started=False,
        mount_points=[proxmoxve.ct.ContainerMountPointArgs(
            path="string",
            volume="string",
            acl=False,
            backup=False,
            mount_options=["string"],
            quota=False,
            read_only=False,
            replicate=False,
            shared=False,
            size="string",
        )],
        network_interfaces=[proxmoxve.ct.ContainerNetworkInterfaceArgs(
            name="string",
            bridge="string",
            enabled=False,
            firewall=False,
            mac_address="string",
            mtu=0,
            rate_limit=0,
            vlan_id=0,
        )],
        console=proxmoxve.ct.ContainerConsoleArgs(
            enabled=False,
            tty_count=0,
            type="string",
        ),
        clone=proxmoxve.ct.ContainerCloneArgs(
            vm_id=0,
            datastore_id="string",
            node_name="string",
        ),
        description="string",
        cpu=proxmoxve.ct.ContainerCpuArgs(
            architecture="string",
            cores=0,
            units=0,
        ),
        memory=proxmoxve.ct.ContainerMemoryArgs(
            dedicated=0,
            swap=0,
        ),
        startup=proxmoxve.ct.ContainerStartupArgs(
            down_delay=0,
            order=0,
            up_delay=0,
        ),
        tags=["string"],
        template=False,
        timeout_clone=0,
        timeout_create=0,
        timeout_delete=0,
        timeout_update=0,
        unprivileged=False,
        vm_id=0)
    
    const containerResource = new proxmoxve.ct.Container("containerResource", {
        nodeName: "string",
        operatingSystem: {
            templateFileId: "string",
            type: "string",
        },
        features: {
            fuse: false,
            keyctl: false,
            mounts: ["string"],
            nesting: false,
        },
        poolId: "string",
        disk: {
            datastoreId: "string",
            size: 0,
        },
        startOnBoot: false,
        hookScriptFileId: "string",
        initialization: {
            dns: {
                domain: "string",
                servers: ["string"],
            },
            hostname: "string",
            ipConfigs: [{
                ipv4: {
                    address: "string",
                    gateway: "string",
                },
                ipv6: {
                    address: "string",
                    gateway: "string",
                },
            }],
            userAccount: {
                keys: ["string"],
                password: "string",
            },
        },
        started: false,
        mountPoints: [{
            path: "string",
            volume: "string",
            acl: false,
            backup: false,
            mountOptions: ["string"],
            quota: false,
            readOnly: false,
            replicate: false,
            shared: false,
            size: "string",
        }],
        networkInterfaces: [{
            name: "string",
            bridge: "string",
            enabled: false,
            firewall: false,
            macAddress: "string",
            mtu: 0,
            rateLimit: 0,
            vlanId: 0,
        }],
        console: {
            enabled: false,
            ttyCount: 0,
            type: "string",
        },
        clone: {
            vmId: 0,
            datastoreId: "string",
            nodeName: "string",
        },
        description: "string",
        cpu: {
            architecture: "string",
            cores: 0,
            units: 0,
        },
        memory: {
            dedicated: 0,
            swap: 0,
        },
        startup: {
            downDelay: 0,
            order: 0,
            upDelay: 0,
        },
        tags: ["string"],
        template: false,
        timeoutClone: 0,
        timeoutCreate: 0,
        timeoutDelete: 0,
        timeoutUpdate: 0,
        unprivileged: false,
        vmId: 0,
    });
    
    type: proxmoxve:CT:Container
    properties:
        clone:
            datastoreId: string
            nodeName: string
            vmId: 0
        console:
            enabled: false
            ttyCount: 0
            type: string
        cpu:
            architecture: string
            cores: 0
            units: 0
        description: string
        disk:
            datastoreId: string
            size: 0
        features:
            fuse: false
            keyctl: false
            mounts:
                - string
            nesting: false
        hookScriptFileId: string
        initialization:
            dns:
                domain: string
                servers:
                    - string
            hostname: string
            ipConfigs:
                - ipv4:
                    address: string
                    gateway: string
                  ipv6:
                    address: string
                    gateway: string
            userAccount:
                keys:
                    - string
                password: string
        memory:
            dedicated: 0
            swap: 0
        mountPoints:
            - acl: false
              backup: false
              mountOptions:
                - string
              path: string
              quota: false
              readOnly: false
              replicate: false
              shared: false
              size: string
              volume: string
        networkInterfaces:
            - bridge: string
              enabled: false
              firewall: false
              macAddress: string
              mtu: 0
              name: string
              rateLimit: 0
              vlanId: 0
        nodeName: string
        operatingSystem:
            templateFileId: string
            type: string
        poolId: string
        startOnBoot: false
        started: false
        startup:
            downDelay: 0
            order: 0
            upDelay: 0
        tags:
            - string
        template: false
        timeoutClone: 0
        timeoutCreate: 0
        timeoutDelete: 0
        timeoutUpdate: 0
        unprivileged: false
        vmId: 0
    

    Container Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Container resource accepts the following input properties:

    NodeName string
    The name of the node to assign the container to.
    Clone Pulumi.ProxmoxVE.CT.Inputs.ContainerClone
    The cloning configuration.
    Console Pulumi.ProxmoxVE.CT.Inputs.ContainerConsole
    The console configuration.
    Cpu Pulumi.ProxmoxVE.CT.Inputs.ContainerCpu
    The CPU configuration.
    Description string
    The description.
    Disk Pulumi.ProxmoxVE.CT.Inputs.ContainerDisk
    The disk configuration.
    Features Pulumi.ProxmoxVE.CT.Inputs.ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    HookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    Initialization Pulumi.ProxmoxVE.CT.Inputs.ContainerInitialization
    The initialization configuration.
    Memory Pulumi.ProxmoxVE.CT.Inputs.ContainerMemory
    The memory configuration.
    MountPoints List<Pulumi.ProxmoxVE.CT.Inputs.ContainerMountPoint>
    A mount point
    NetworkInterfaces List<Pulumi.ProxmoxVE.CT.Inputs.ContainerNetworkInterface>
    A network interface (multiple blocks supported).
    OperatingSystem Pulumi.ProxmoxVE.CT.Inputs.ContainerOperatingSystem
    The Operating System configuration.
    PoolId string
    The identifier for a pool to assign the container to.
    StartOnBoot bool
    Automatically start container when the host system boots (defaults to true).
    Started bool
    Whether to start the container (defaults to true).
    Startup Pulumi.ProxmoxVE.CT.Inputs.ContainerStartup
    Defines startup and shutdown behavior of the container.
    Tags List<string>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    Template bool
    Whether to create a template (defaults to false).
    TimeoutClone int
    Timeout for cloning a container in seconds (defaults to 1800).
    TimeoutCreate int
    Timeout for creating a container in seconds (defaults to 1800).
    TimeoutDelete int
    Timeout for deleting a container in seconds (defaults to 60).
    TimeoutStart int
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    TimeoutUpdate 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).
    VmId int
    The container identifier
    NodeName string
    The name of the node to assign the container to.
    Clone ContainerCloneArgs
    The cloning configuration.
    Console ContainerConsoleArgs
    The console configuration.
    Cpu ContainerCpuArgs
    The CPU configuration.
    Description string
    The description.
    Disk ContainerDiskArgs
    The disk configuration.
    Features ContainerFeaturesArgs
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    HookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    Initialization ContainerInitializationArgs
    The initialization configuration.
    Memory ContainerMemoryArgs
    The memory configuration.
    MountPoints []ContainerMountPointArgs
    A mount point
    NetworkInterfaces []ContainerNetworkInterfaceArgs
    A network interface (multiple blocks supported).
    OperatingSystem ContainerOperatingSystemArgs
    The Operating System configuration.
    PoolId string
    The identifier for a pool to assign the container to.
    StartOnBoot bool
    Automatically start container when the host system boots (defaults to true).
    Started bool
    Whether to start the container (defaults to true).
    Startup ContainerStartupArgs
    Defines startup and shutdown behavior of the container.
    Tags []string
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    Template bool
    Whether to create a template (defaults to false).
    TimeoutClone int
    Timeout for cloning a container in seconds (defaults to 1800).
    TimeoutCreate int
    Timeout for creating a container in seconds (defaults to 1800).
    TimeoutDelete int
    Timeout for deleting a container in seconds (defaults to 60).
    TimeoutStart int
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    TimeoutUpdate 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).
    VmId int
    The container identifier
    nodeName String
    The name of the node to assign the container to.
    clone_ ContainerClone
    The cloning configuration.
    console ContainerConsole
    The console configuration.
    cpu ContainerCpu
    The CPU configuration.
    description String
    The description.
    disk ContainerDisk
    The disk configuration.
    features ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId String
    The identifier for a file containing a hook script (needs to be executable).
    initialization ContainerInitialization
    The initialization configuration.
    memory ContainerMemory
    The memory configuration.
    mountPoints List<ContainerMountPoint>
    A mount point
    networkInterfaces List<ContainerNetworkInterface>
    A network interface (multiple blocks supported).
    operatingSystem ContainerOperatingSystem
    The Operating System configuration.
    poolId String
    The identifier for a pool to assign the container to.
    startOnBoot Boolean
    Automatically start container when the host system boots (defaults to true).
    started Boolean
    Whether to start the container (defaults to true).
    startup ContainerStartup
    Defines startup and shutdown behavior of the container.
    tags List<String>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template Boolean
    Whether to create a template (defaults to false).
    timeoutClone Integer
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate Integer
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete Integer
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart Integer
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId Integer
    The container identifier
    nodeName string
    The name of the node to assign the container to.
    clone ContainerClone
    The cloning configuration.
    console ContainerConsole
    The console configuration.
    cpu ContainerCpu
    The CPU configuration.
    description string
    The description.
    disk ContainerDisk
    The disk configuration.
    features ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    initialization ContainerInitialization
    The initialization configuration.
    memory ContainerMemory
    The memory configuration.
    mountPoints ContainerMountPoint[]
    A mount point
    networkInterfaces ContainerNetworkInterface[]
    A network interface (multiple blocks supported).
    operatingSystem ContainerOperatingSystem
    The Operating System configuration.
    poolId string
    The identifier for a pool to assign the container to.
    startOnBoot boolean
    Automatically start container when the host system boots (defaults to true).
    started boolean
    Whether to start the container (defaults to true).
    startup ContainerStartup
    Defines startup and shutdown behavior of the container.
    tags string[]
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template boolean
    Whether to create a template (defaults to false).
    timeoutClone number
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate number
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete number
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart number
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId number
    The container identifier
    node_name str
    The name of the node to assign the container to.
    clone ct.ContainerCloneArgs
    The cloning configuration.
    console ct.ContainerConsoleArgs
    The console configuration.
    cpu ct.ContainerCpuArgs
    The CPU configuration.
    description str
    The description.
    disk ct.ContainerDiskArgs
    The disk configuration.
    features ct.ContainerFeaturesArgs
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hook_script_file_id str
    The identifier for a file containing a hook script (needs to be executable).
    initialization ct.ContainerInitializationArgs
    The initialization configuration.
    memory ct.ContainerMemoryArgs
    The memory configuration.
    mount_points Sequence[ct.ContainerMountPointArgs]
    A mount point
    network_interfaces Sequence[ct.ContainerNetworkInterfaceArgs]
    A network interface (multiple blocks supported).
    operating_system ct.ContainerOperatingSystemArgs
    The Operating System configuration.
    pool_id str
    The identifier for a pool to assign the container to.
    start_on_boot bool
    Automatically start container when the host system boots (defaults to true).
    started bool
    Whether to start the container (defaults to true).
    startup ct.ContainerStartupArgs
    Defines startup and shutdown behavior of the container.
    tags Sequence[str]
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle 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

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    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
    nodeName 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.
    disk Property Map
    The disk configuration.
    features Property Map
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId String
    The identifier for a file containing a hook script (needs to be executable).
    initialization Property Map
    The initialization configuration.
    memory Property Map
    The memory configuration.
    mountPoints List<Property Map>
    A mount point
    networkInterfaces List<Property Map>
    A network interface (multiple blocks supported).
    operatingSystem Property Map
    The Operating System configuration.
    poolId String
    The identifier for a pool to assign the container to.
    startOnBoot Boolean
    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.
    tags List<String>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template Boolean
    Whether to create a template (defaults to false).
    timeoutClone Number
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate Number
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete Number
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart Number
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId Number
    The container identifier

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Container resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Container Resource

    Get an existing Container 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?: ContainerState, opts?: CustomResourceOptions): Container
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            clone: Optional[_ct.ContainerCloneArgs] = None,
            console: Optional[_ct.ContainerConsoleArgs] = None,
            cpu: Optional[_ct.ContainerCpuArgs] = None,
            description: Optional[str] = None,
            disk: Optional[_ct.ContainerDiskArgs] = None,
            features: Optional[_ct.ContainerFeaturesArgs] = None,
            hook_script_file_id: Optional[str] = None,
            initialization: Optional[_ct.ContainerInitializationArgs] = None,
            memory: Optional[_ct.ContainerMemoryArgs] = None,
            mount_points: Optional[Sequence[_ct.ContainerMountPointArgs]] = None,
            network_interfaces: Optional[Sequence[_ct.ContainerNetworkInterfaceArgs]] = None,
            node_name: Optional[str] = None,
            operating_system: Optional[_ct.ContainerOperatingSystemArgs] = None,
            pool_id: Optional[str] = None,
            start_on_boot: Optional[bool] = None,
            started: Optional[bool] = None,
            startup: Optional[_ct.ContainerStartupArgs] = 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) -> Container
    func GetContainer(ctx *Context, name string, id IDInput, state *ContainerState, opts ...ResourceOption) (*Container, error)
    public static Container Get(string name, Input<string> id, ContainerState? state, CustomResourceOptions? opts = null)
    public static Container get(String name, Output<String> id, ContainerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Clone Pulumi.ProxmoxVE.CT.Inputs.ContainerClone
    The cloning configuration.
    Console Pulumi.ProxmoxVE.CT.Inputs.ContainerConsole
    The console configuration.
    Cpu Pulumi.ProxmoxVE.CT.Inputs.ContainerCpu
    The CPU configuration.
    Description string
    The description.
    Disk Pulumi.ProxmoxVE.CT.Inputs.ContainerDisk
    The disk configuration.
    Features Pulumi.ProxmoxVE.CT.Inputs.ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    HookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    Initialization Pulumi.ProxmoxVE.CT.Inputs.ContainerInitialization
    The initialization configuration.
    Memory Pulumi.ProxmoxVE.CT.Inputs.ContainerMemory
    The memory configuration.
    MountPoints List<Pulumi.ProxmoxVE.CT.Inputs.ContainerMountPoint>
    A mount point
    NetworkInterfaces List<Pulumi.ProxmoxVE.CT.Inputs.ContainerNetworkInterface>
    A network interface (multiple blocks supported).
    NodeName string
    The name of the node to assign the container to.
    OperatingSystem Pulumi.ProxmoxVE.CT.Inputs.ContainerOperatingSystem
    The Operating System configuration.
    PoolId string
    The identifier for a pool to assign the container to.
    StartOnBoot bool
    Automatically start container when the host system boots (defaults to true).
    Started bool
    Whether to start the container (defaults to true).
    Startup Pulumi.ProxmoxVE.CT.Inputs.ContainerStartup
    Defines startup and shutdown behavior of the container.
    Tags List<string>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    Template bool
    Whether to create a template (defaults to false).
    TimeoutClone int
    Timeout for cloning a container in seconds (defaults to 1800).
    TimeoutCreate int
    Timeout for creating a container in seconds (defaults to 1800).
    TimeoutDelete int
    Timeout for deleting a container in seconds (defaults to 60).
    TimeoutStart int
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    TimeoutUpdate 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).
    VmId int
    The container identifier
    Clone ContainerCloneArgs
    The cloning configuration.
    Console ContainerConsoleArgs
    The console configuration.
    Cpu ContainerCpuArgs
    The CPU configuration.
    Description string
    The description.
    Disk ContainerDiskArgs
    The disk configuration.
    Features ContainerFeaturesArgs
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    HookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    Initialization ContainerInitializationArgs
    The initialization configuration.
    Memory ContainerMemoryArgs
    The memory configuration.
    MountPoints []ContainerMountPointArgs
    A mount point
    NetworkInterfaces []ContainerNetworkInterfaceArgs
    A network interface (multiple blocks supported).
    NodeName string
    The name of the node to assign the container to.
    OperatingSystem ContainerOperatingSystemArgs
    The Operating System configuration.
    PoolId string
    The identifier for a pool to assign the container to.
    StartOnBoot bool
    Automatically start container when the host system boots (defaults to true).
    Started bool
    Whether to start the container (defaults to true).
    Startup ContainerStartupArgs
    Defines startup and shutdown behavior of the container.
    Tags []string
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    Template bool
    Whether to create a template (defaults to false).
    TimeoutClone int
    Timeout for cloning a container in seconds (defaults to 1800).
    TimeoutCreate int
    Timeout for creating a container in seconds (defaults to 1800).
    TimeoutDelete int
    Timeout for deleting a container in seconds (defaults to 60).
    TimeoutStart int
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    TimeoutUpdate 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).
    VmId int
    The container identifier
    clone_ ContainerClone
    The cloning configuration.
    console ContainerConsole
    The console configuration.
    cpu ContainerCpu
    The CPU configuration.
    description String
    The description.
    disk ContainerDisk
    The disk configuration.
    features ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId String
    The identifier for a file containing a hook script (needs to be executable).
    initialization ContainerInitialization
    The initialization configuration.
    memory ContainerMemory
    The memory configuration.
    mountPoints List<ContainerMountPoint>
    A mount point
    networkInterfaces List<ContainerNetworkInterface>
    A network interface (multiple blocks supported).
    nodeName String
    The name of the node to assign the container to.
    operatingSystem ContainerOperatingSystem
    The Operating System configuration.
    poolId String
    The identifier for a pool to assign the container to.
    startOnBoot Boolean
    Automatically start container when the host system boots (defaults to true).
    started Boolean
    Whether to start the container (defaults to true).
    startup ContainerStartup
    Defines startup and shutdown behavior of the container.
    tags List<String>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template Boolean
    Whether to create a template (defaults to false).
    timeoutClone Integer
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate Integer
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete Integer
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart Integer
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId Integer
    The container identifier
    clone ContainerClone
    The cloning configuration.
    console ContainerConsole
    The console configuration.
    cpu ContainerCpu
    The CPU configuration.
    description string
    The description.
    disk ContainerDisk
    The disk configuration.
    features ContainerFeatures
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId string
    The identifier for a file containing a hook script (needs to be executable).
    initialization ContainerInitialization
    The initialization configuration.
    memory ContainerMemory
    The memory configuration.
    mountPoints ContainerMountPoint[]
    A mount point
    networkInterfaces ContainerNetworkInterface[]
    A network interface (multiple blocks supported).
    nodeName string
    The name of the node to assign the container to.
    operatingSystem ContainerOperatingSystem
    The Operating System configuration.
    poolId string
    The identifier for a pool to assign the container to.
    startOnBoot boolean
    Automatically start container when the host system boots (defaults to true).
    started boolean
    Whether to start the container (defaults to true).
    startup ContainerStartup
    Defines startup and shutdown behavior of the container.
    tags string[]
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template boolean
    Whether to create a template (defaults to false).
    timeoutClone number
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate number
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete number
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart number
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId number
    The container identifier
    clone ct.ContainerCloneArgs
    The cloning configuration.
    console ct.ContainerConsoleArgs
    The console configuration.
    cpu ct.ContainerCpuArgs
    The CPU configuration.
    description str
    The description.
    disk ct.ContainerDiskArgs
    The disk configuration.
    features ct.ContainerFeaturesArgs
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hook_script_file_id str
    The identifier for a file containing a hook script (needs to be executable).
    initialization ct.ContainerInitializationArgs
    The initialization configuration.
    memory ct.ContainerMemoryArgs
    The memory configuration.
    mount_points Sequence[ct.ContainerMountPointArgs]
    A mount point
    network_interfaces Sequence[ct.ContainerNetworkInterfaceArgs]
    A network interface (multiple blocks supported).
    node_name str
    The name of the node to assign the container to.
    operating_system ct.ContainerOperatingSystemArgs
    The Operating System configuration.
    pool_id str
    The identifier for a pool to assign the container to.
    start_on_boot bool
    Automatically start container when the host system boots (defaults to true).
    started bool
    Whether to start the container (defaults to true).
    startup ct.ContainerStartupArgs
    Defines startup and shutdown behavior of the container.
    tags Sequence[str]
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle 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

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    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
    clone Property Map
    The cloning configuration.
    console Property Map
    The console configuration.
    cpu Property Map
    The CPU configuration.
    description String
    The description.
    disk Property Map
    The disk configuration.
    features Property Map
    The container feature flags. Changing flags (except nesting) is only allowed for root@pam authenticated user.
    hookScriptFileId String
    The identifier for a file containing a hook script (needs to be executable).
    initialization Property Map
    The initialization configuration.
    memory Property Map
    The memory configuration.
    mountPoints List<Property Map>
    A mount point
    networkInterfaces List<Property Map>
    A network interface (multiple blocks supported).
    nodeName String
    The name of the node to assign the container to.
    operatingSystem Property Map
    The Operating System configuration.
    poolId String
    The identifier for a pool to assign the container to.
    startOnBoot Boolean
    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.
    tags List<String>
    A list of tags the container tags. This is only meta information (defaults to []). Note: Proxmox always sorts the container tags. If the list in template is not sorted, then Proxmox will always report a difference on the resource. You may use the ignore_changes lifecycle meta-argument to ignore changes to this attribute.
    template Boolean
    Whether to create a template (defaults to false).
    timeoutClone Number
    Timeout for cloning a container in seconds (defaults to 1800).
    timeoutCreate Number
    Timeout for creating a container in seconds (defaults to 1800).
    timeoutDelete Number
    Timeout for deleting a container in seconds (defaults to 60).
    timeoutStart Number
    Start container timeout

    Deprecated: This field is deprecated and will be removed in a future release. An overall operation timeout (timeout_create / timeout_clone) is used instead.

    timeoutUpdate 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).
    vmId Number
    The container identifier

    Supporting Types

    ContainerClone, ContainerCloneArgs

    VmId int
    The identifier for the source container.
    DatastoreId string
    The identifier for the target datastore.
    NodeName string
    The name of the source node (leave blank, if equal to the node_name argument).
    VmId int
    The identifier for the source container.
    DatastoreId string
    The identifier for the target datastore.
    NodeName string
    The name of the source node (leave blank, if equal to the node_name argument).
    vmId Integer
    The identifier for the source container.
    datastoreId String
    The identifier for the target datastore.
    nodeName String
    The name of the source node (leave blank, if equal to the node_name argument).
    vmId number
    The identifier for the source container.
    datastoreId string
    The identifier for the target datastore.
    nodeName string
    The name of the source node (leave blank, if equal to the node_name argument).
    vm_id int
    The identifier for the source container.
    datastore_id str
    The identifier for the target datastore.
    node_name str
    The name of the source node (leave blank, if equal to the node_name argument).
    vmId Number
    The identifier for the source container.
    datastoreId String
    The identifier for the target datastore.
    nodeName String
    The name of the source node (leave blank, if equal to the node_name argument).

    ContainerConsole, ContainerConsoleArgs

    Enabled bool
    Whether to enable the console device (defaults to true).
    TtyCount int
    The number of available TTY (defaults to 2).
    Type string
    The console mode (defaults to tty).
    Enabled bool
    Whether to enable the console device (defaults to true).
    TtyCount int
    The number of available TTY (defaults to 2).
    Type string
    The console mode (defaults to tty).
    enabled Boolean
    Whether to enable the console device (defaults to true).
    ttyCount Integer
    The number of available TTY (defaults to 2).
    type String
    The console mode (defaults to tty).
    enabled boolean
    Whether to enable the console device (defaults to true).
    ttyCount number
    The number of available TTY (defaults to 2).
    type string
    The console mode (defaults to tty).
    enabled bool
    Whether to enable the console device (defaults to true).
    tty_count int
    The number of available TTY (defaults to 2).
    type str
    The console mode (defaults to tty).
    enabled Boolean
    Whether to enable the console device (defaults to true).
    ttyCount Number
    The number of available TTY (defaults to 2).
    type String
    The console mode (defaults to tty).

    ContainerCpu, ContainerCpuArgs

    Architecture string
    The CPU architecture (defaults to amd64).
    Cores int
    The number of CPU cores (defaults to 1).
    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).
    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).
    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).
    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).
    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).
    units Number
    The CPU units (defaults to 1024).

    ContainerDisk, ContainerDiskArgs

    DatastoreId string
    The identifier for the datastore to create the disk in (defaults to local).
    Size int
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.
    DatastoreId string
    The identifier for the datastore to create the disk in (defaults to local).
    Size int
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.
    datastoreId String
    The identifier for the datastore to create the disk in (defaults to local).
    size Integer
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.
    datastoreId string
    The identifier for the datastore to create the disk in (defaults to local).
    size number
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.
    datastore_id str
    The identifier for the datastore to create the disk in (defaults to local).
    size int
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.
    datastoreId String
    The identifier for the datastore to create the disk in (defaults to local).
    size Number
    The size of the root filesystem in gigabytes (defaults to 4). Requires datastore_id to be set.

    ContainerFeatures, ContainerFeaturesArgs

    Fuse bool
    Whether the container supports FUSE mounts (defaults to false)
    Keyctl bool
    Whether the container supports keyctl() system call (defaults to false)
    Mounts List<string>
    List of allowed mount types (cifs or nfs)
    Nesting bool
    Whether the container is nested (defaults to false)
    Fuse bool
    Whether the container supports FUSE mounts (defaults to false)
    Keyctl bool
    Whether the container supports keyctl() system call (defaults to false)
    Mounts []string
    List of allowed mount types (cifs or nfs)
    Nesting bool
    Whether the container is nested (defaults to false)
    fuse Boolean
    Whether the container supports FUSE mounts (defaults to false)
    keyctl Boolean
    Whether the container supports keyctl() system call (defaults to false)
    mounts List<String>
    List of allowed mount types (cifs or nfs)
    nesting Boolean
    Whether the container is nested (defaults to false)
    fuse boolean
    Whether the container supports FUSE mounts (defaults to false)
    keyctl boolean
    Whether the container supports keyctl() system call (defaults to false)
    mounts string[]
    List of allowed mount types (cifs or nfs)
    nesting boolean
    Whether the container is nested (defaults to false)
    fuse bool
    Whether the container supports FUSE mounts (defaults to false)
    keyctl bool
    Whether the container supports keyctl() system call (defaults to false)
    mounts Sequence[str]
    List of allowed mount types (cifs or nfs)
    nesting bool
    Whether the container is nested (defaults to false)
    fuse Boolean
    Whether the container supports FUSE mounts (defaults to false)
    keyctl Boolean
    Whether the container supports keyctl() system call (defaults to false)
    mounts List<String>
    List of allowed mount types (cifs or nfs)
    nesting Boolean
    Whether the container is nested (defaults to false)

    ContainerInitialization, ContainerInitializationArgs

    Dns ContainerInitializationDns
    The DNS configuration.
    Hostname string
    The hostname.
    IpConfigs []ContainerInitializationIpConfig
    The IP configuration (one block per network device).
    UserAccount ContainerInitializationUserAccount
    The user account configuration.
    dns ContainerInitializationDns
    The DNS configuration.
    hostname String
    The hostname.
    ipConfigs List<ContainerInitializationIpConfig>
    The IP configuration (one block per network device).
    userAccount ContainerInitializationUserAccount
    The user account configuration.
    dns ContainerInitializationDns
    The DNS configuration.
    hostname string
    The hostname.
    ipConfigs ContainerInitializationIpConfig[]
    The IP configuration (one block per network device).
    userAccount ContainerInitializationUserAccount
    The user account configuration.
    dns ct.ContainerInitializationDns
    The DNS configuration.
    hostname str
    The hostname.
    ip_configs Sequence[ct.ContainerInitializationIpConfig]
    The IP configuration (one block per network device).
    user_account ct.ContainerInitializationUserAccount
    The user account configuration.
    dns Property Map
    The DNS configuration.
    hostname String
    The hostname.
    ipConfigs List<Property Map>
    The IP configuration (one block per network device).
    userAccount Property Map
    The user account configuration.

    ContainerInitializationDns, ContainerInitializationDnsArgs

    Domain string
    The DNS search domain.
    Server string
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Servers List<string>
    The list of DNS servers.
    Domain string
    The DNS search domain.
    Server string
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Servers []string
    The list of DNS servers.
    domain String
    The DNS search domain.
    server String
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    servers List<String>
    The list of DNS servers.
    domain string
    The DNS search domain.
    server string
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    servers string[]
    The list of DNS servers.
    domain str
    The DNS search domain.
    server str
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    servers Sequence[str]
    The list of DNS servers.
    domain String
    The DNS search domain.
    server String
    The DNS server. The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    Deprecated: The server attribute is deprecated and will be removed in a future release. Please use the servers attribute instead.

    servers List<String>
    The list of DNS servers.

    ContainerInitializationIpConfig, ContainerInitializationIpConfigArgs

    ipv4 Property Map
    The IPv4 configuration.
    ipv6 Property Map
    The IPv4 configuration.

    ContainerInitializationIpConfigIpv4, ContainerInitializationIpConfigIpv4Args

    Address string
    The IPv4 address (use dhcp for autodiscovery).
    Gateway string
    The IPv4 gateway (must be omitted when dhcp is used as the address).
    Address string
    The IPv4 address (use dhcp for autodiscovery).
    Gateway string
    The IPv4 gateway (must be omitted when dhcp is used as the address).
    address String
    The IPv4 address (use dhcp for autodiscovery).
    gateway String
    The IPv4 gateway (must be omitted when dhcp is used as the address).
    address string
    The IPv4 address (use dhcp for autodiscovery).
    gateway string
    The IPv4 gateway (must be omitted when dhcp is used as the address).
    address str
    The IPv4 address (use dhcp for autodiscovery).
    gateway str
    The IPv4 gateway (must be omitted when dhcp is used as the address).
    address String
    The IPv4 address (use dhcp for autodiscovery).
    gateway String
    The IPv4 gateway (must be omitted when dhcp is used as the address).

    ContainerInitializationIpConfigIpv6, ContainerInitializationIpConfigIpv6Args

    Address string
    The IPv6 address (use dhcp for autodiscovery).
    Gateway string
    The IPv6 gateway (must be omitted when dhcp is used as the address).
    Address string
    The IPv6 address (use dhcp for autodiscovery).
    Gateway string
    The IPv6 gateway (must be omitted when dhcp is used as the address).
    address String
    The IPv6 address (use dhcp for autodiscovery).
    gateway String
    The IPv6 gateway (must be omitted when dhcp is used as the address).
    address string
    The IPv6 address (use dhcp for autodiscovery).
    gateway string
    The IPv6 gateway (must be omitted when dhcp is used as the address).
    address str
    The IPv6 address (use dhcp for autodiscovery).
    gateway str
    The IPv6 gateway (must be omitted when dhcp is used as the address).
    address String
    The IPv6 address (use dhcp for autodiscovery).
    gateway String
    The IPv6 gateway (must be omitted when dhcp is used as the address).

    ContainerInitializationUserAccount, ContainerInitializationUserAccountArgs

    Keys List<string>
    The SSH keys for the root account.
    Password string
    The password for the root account.
    Keys []string
    The SSH keys for the root account.
    Password string
    The password for the root account.
    keys List<String>
    The SSH keys for the root account.
    password String
    The password for the root account.
    keys string[]
    The SSH keys for the root account.
    password string
    The password for the root account.
    keys Sequence[str]
    The SSH keys for the root account.
    password str
    The password for the root account.
    keys List<String>
    The SSH keys for the root account.
    password String
    The password for the root account.

    ContainerMemory, ContainerMemoryArgs

    Dedicated int
    The dedicated memory in megabytes (defaults to 512).
    Swap int
    The swap size in megabytes (defaults to 0).
    Dedicated int
    The dedicated memory in megabytes (defaults to 512).
    Swap int
    The swap size in megabytes (defaults to 0).
    dedicated Integer
    The dedicated memory in megabytes (defaults to 512).
    swap Integer
    The swap size in megabytes (defaults to 0).
    dedicated number
    The dedicated memory in megabytes (defaults to 512).
    swap number
    The swap size in megabytes (defaults to 0).
    dedicated int
    The dedicated memory in megabytes (defaults to 512).
    swap int
    The swap size in megabytes (defaults to 0).
    dedicated Number
    The dedicated memory in megabytes (defaults to 512).
    swap Number
    The swap size in megabytes (defaults to 0).

    ContainerMountPoint, ContainerMountPointArgs

    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).
    MountOptions List<string>
    List of extra mount options.
    Quota bool
    Enable user quotas inside the container (not supported with ZFS subvolumes).
    ReadOnly bool
    Read-only mount point.
    Replicate bool
    Will include this volume to a storage replica job.
    Shared 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).
    MountOptions []string
    List of extra mount options.
    Quota bool
    Enable user quotas inside the container (not supported with ZFS subvolumes).
    ReadOnly bool
    Read-only mount point.
    Replicate bool
    Will include this volume to a storage replica job.
    Shared 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).
    mountOptions List<String>
    List of extra mount options.
    quota Boolean
    Enable user quotas inside the container (not supported with ZFS subvolumes).
    readOnly Boolean
    Read-only mount point.
    replicate Boolean
    Will include this volume to a storage replica job.
    shared 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).
    mountOptions string[]
    List of extra mount options.
    quota boolean
    Enable user quotas inside the container (not supported with ZFS subvolumes).
    readOnly boolean
    Read-only mount point.
    replicate boolean
    Will include this volume to a storage replica job.
    shared 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.
    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.
    shared 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).
    mountOptions List<String>
    List of extra mount options.
    quota Boolean
    Enable user quotas inside the container (not supported with ZFS subvolumes).
    readOnly Boolean
    Read-only mount point.
    replicate Boolean
    Will include this volume to a storage replica job.
    shared 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).

    ContainerNetworkInterface, ContainerNetworkInterfaceArgs

    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).
    MacAddress string
    The MAC address.
    Mtu int
    Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
    RateLimit double
    The rate limit in megabytes per second.
    VlanId 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).
    MacAddress string
    The MAC address.
    Mtu int
    Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
    RateLimit float64
    The rate limit in megabytes per second.
    VlanId 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).
    macAddress String
    The MAC address.
    mtu Integer
    Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
    rateLimit Double
    The rate limit in megabytes per second.
    vlanId 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).
    macAddress string
    The MAC address.
    mtu number
    Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
    rateLimit number
    The rate limit in megabytes per second.
    vlanId 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).
    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).
    macAddress String
    The MAC address.
    mtu Number
    Maximum transfer unit of the interface. Cannot be larger than the bridge's MTU.
    rateLimit Number
    The rate limit in megabytes per second.
    vlanId Number
    The VLAN identifier.

    ContainerOperatingSystem, ContainerOperatingSystemArgs

    TemplateFileId string
    The identifier for an OS template file.
    Type string
    The type (defaults to unmanaged).
    TemplateFileId string
    The identifier for an OS template file.
    Type string
    The type (defaults to unmanaged).
    templateFileId String
    The identifier for an OS template file.
    type String
    The type (defaults to unmanaged).
    templateFileId string
    The identifier for an OS template file.
    type string
    The type (defaults to unmanaged).
    template_file_id str
    The identifier for an OS template file.
    type str
    The type (defaults to unmanaged).
    templateFileId String
    The identifier for an OS template file.
    type String
    The type (defaults to unmanaged).

    ContainerStartup, ContainerStartupArgs

    DownDelay 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.
    UpDelay int
    A non-negative number defining the delay in seconds before the next container is started.
    DownDelay 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.
    UpDelay int
    A non-negative number defining the delay in seconds before the next container is started.
    downDelay Integer
    A non-negative number defining the delay in seconds before the next container is shut down.
    order Integer
    A non-negative number defining the general startup order.
    upDelay Integer
    A non-negative number defining the delay in seconds before the next container is started.
    downDelay number
    A non-negative number defining the delay in seconds before the next container is shut down.
    order number
    A non-negative number defining the general startup order.
    upDelay number
    A non-negative number defining the delay in seconds before the next container is started.
    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.
    downDelay Number
    A non-negative number defining the delay in seconds before the next container is shut down.
    order Number
    A non-negative number defining the general startup order.
    upDelay Number
    A non-negative number defining the delay in seconds before the next container is started.

    Import

    Instances can be imported using the node_name and the vm_id, e.g.,

    bash

    $ pulumi import proxmoxve:CT/container:Container 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 proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v6.10.0 published on Friday, Jun 14, 2024 by Daniel Muehlbachler-Pietrzykowski