proxmoxve.CT.Container
Explore with Pulumi AI
Create Container Resource
new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);
@overload
def Container(resource_name: 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,
initialization: Optional[_ct.ContainerInitializationArgs] = None,
memory: Optional[_ct.ContainerMemoryArgs] = None,
network_interfaces: Optional[Sequence[_ct.ContainerNetworkInterfaceArgs]] = None,
node_name: Optional[str] = None,
operating_system: Optional[_ct.ContainerOperatingSystemArgs] = None,
pool_id: Optional[str] = None,
started: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[bool] = None,
unprivileged: Optional[bool] = None,
vm_id: Optional[int] = None)
@overload
def Container(resource_name: str,
args: ContainerArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Node
Name string The node name
- Clone
Pulumi.
Proxmox VE. CT. Inputs. Container Clone Args The cloning configuration
- Console
Pulumi.
Proxmox VE. CT. Inputs. Container Console Args The console configuration
- Cpu
Pulumi.
Proxmox VE. CT. Inputs. Container Cpu Args The CPU allocation
- Description string
The description
- Disk
Pulumi.
Proxmox VE. CT. Inputs. Container Disk Args The disks
- Features
Pulumi.
Proxmox VE. CT. Inputs. Container Features Args Features
- Initialization
Pulumi.
Proxmox VE. CT. Inputs. Container Initialization Args The initialization configuration
- Memory
Pulumi.
Proxmox VE. CT. Inputs. Container Memory Args The memory allocation
- Network
Interfaces List<Pulumi.Proxmox VE. CT. Inputs. Container Network Interface Args> The network interfaces
- Operating
System Pulumi.Proxmox VE. CT. Inputs. Container Operating System Args The operating system configuration
- Pool
Id string The ID of the pool to assign the container to
- Started bool
Whether to start the container
- List<string>
Tags of the container. This is only meta information.
- Template bool
Whether to create a template
- Unprivileged bool
Whether the container runs as unprivileged on the host
- Vm
Id int The VM identifier
- Node
Name string The node name
- Clone
Container
Clone Args The cloning configuration
- Console
Container
Console Args The console configuration
- Cpu
Container
Cpu Args The CPU allocation
- Description string
The description
- Disk
Container
Disk Args The disks
- Features
Container
Features Args Features
- Initialization
Container
Initialization Args The initialization configuration
- Memory
Container
Memory Args The memory allocation
- Network
Interfaces []ContainerNetwork Interface Args The network interfaces
- Operating
System ContainerOperating System Args The operating system configuration
- Pool
Id string The ID of the pool to assign the container to
- Started bool
Whether to start the container
- []string
Tags of the container. This is only meta information.
- Template bool
Whether to create a template
- Unprivileged bool
Whether the container runs as unprivileged on the host
- Vm
Id int The VM identifier
- node
Name String The node name
- clone_
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description String
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network
Interfaces List<ContainerNetwork Interface Args> The network interfaces
- operating
System ContainerOperating System Args The operating system configuration
- pool
Id String The ID of the pool to assign the container to
- started Boolean
Whether to start the container
- List<String>
Tags of the container. This is only meta information.
- template Boolean
Whether to create a template
- unprivileged Boolean
Whether the container runs as unprivileged on the host
- vm
Id Integer The VM identifier
- node
Name string The node name
- clone
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description string
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network
Interfaces ContainerNetwork Interface Args[] The network interfaces
- operating
System ContainerOperating System Args The operating system configuration
- pool
Id string The ID of the pool to assign the container to
- started boolean
Whether to start the container
- string[]
Tags of the container. This is only meta information.
- template boolean
Whether to create a template
- unprivileged boolean
Whether the container runs as unprivileged on the host
- vm
Id number The VM identifier
- node_
name str The node name
- clone
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description str
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network_
interfaces ContainerNetwork Interface Args] The network interfaces
- operating_
system ContainerOperating System Args The operating system configuration
- pool_
id str The ID of the pool to assign the container to
- started bool
Whether to start the container
- Sequence[str]
Tags of the container. This is only meta information.
- template bool
Whether to create a template
- unprivileged bool
Whether the container runs as unprivileged on the host
- vm_
id int The VM identifier
- node
Name String The node name
- clone Property Map
The cloning configuration
- console Property Map
The console configuration
- cpu Property Map
The CPU allocation
- description String
The description
- disk Property Map
The disks
- features Property Map
Features
- initialization Property Map
The initialization configuration
- memory Property Map
The memory allocation
- network
Interfaces List<Property Map> The network interfaces
- operating
System Property Map The operating system configuration
- pool
Id String The ID of the pool to assign the container to
- started Boolean
Whether to start the container
- List<String>
Tags of the container. This is only meta information.
- template Boolean
Whether to create a template
- unprivileged Boolean
Whether the container runs as unprivileged on the host
- vm
Id Number The VM 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,
initialization: Optional[_ct.ContainerInitializationArgs] = None,
memory: Optional[_ct.ContainerMemoryArgs] = None,
network_interfaces: Optional[Sequence[_ct.ContainerNetworkInterfaceArgs]] = None,
node_name: Optional[str] = None,
operating_system: Optional[_ct.ContainerOperatingSystemArgs] = None,
pool_id: Optional[str] = None,
started: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
template: Optional[bool] = 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.
- Clone
Pulumi.
Proxmox VE. CT. Inputs. Container Clone Args The cloning configuration
- Console
Pulumi.
Proxmox VE. CT. Inputs. Container Console Args The console configuration
- Cpu
Pulumi.
Proxmox VE. CT. Inputs. Container Cpu Args The CPU allocation
- Description string
The description
- Disk
Pulumi.
Proxmox VE. CT. Inputs. Container Disk Args The disks
- Features
Pulumi.
Proxmox VE. CT. Inputs. Container Features Args Features
- Initialization
Pulumi.
Proxmox VE. CT. Inputs. Container Initialization Args The initialization configuration
- Memory
Pulumi.
Proxmox VE. CT. Inputs. Container Memory Args The memory allocation
- Network
Interfaces List<Pulumi.Proxmox VE. CT. Inputs. Container Network Interface Args> The network interfaces
- Node
Name string The node name
- Operating
System Pulumi.Proxmox VE. CT. Inputs. Container Operating System Args The operating system configuration
- Pool
Id string The ID of the pool to assign the container to
- Started bool
Whether to start the container
- List<string>
Tags of the container. This is only meta information.
- Template bool
Whether to create a template
- Unprivileged bool
Whether the container runs as unprivileged on the host
- Vm
Id int The VM identifier
- Clone
Container
Clone Args The cloning configuration
- Console
Container
Console Args The console configuration
- Cpu
Container
Cpu Args The CPU allocation
- Description string
The description
- Disk
Container
Disk Args The disks
- Features
Container
Features Args Features
- Initialization
Container
Initialization Args The initialization configuration
- Memory
Container
Memory Args The memory allocation
- Network
Interfaces []ContainerNetwork Interface Args The network interfaces
- Node
Name string The node name
- Operating
System ContainerOperating System Args The operating system configuration
- Pool
Id string The ID of the pool to assign the container to
- Started bool
Whether to start the container
- []string
Tags of the container. This is only meta information.
- Template bool
Whether to create a template
- Unprivileged bool
Whether the container runs as unprivileged on the host
- Vm
Id int The VM identifier
- clone_
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description String
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network
Interfaces List<ContainerNetwork Interface Args> The network interfaces
- node
Name String The node name
- operating
System ContainerOperating System Args The operating system configuration
- pool
Id String The ID of the pool to assign the container to
- started Boolean
Whether to start the container
- List<String>
Tags of the container. This is only meta information.
- template Boolean
Whether to create a template
- unprivileged Boolean
Whether the container runs as unprivileged on the host
- vm
Id Integer The VM identifier
- clone
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description string
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network
Interfaces ContainerNetwork Interface Args[] The network interfaces
- node
Name string The node name
- operating
System ContainerOperating System Args The operating system configuration
- pool
Id string The ID of the pool to assign the container to
- started boolean
Whether to start the container
- string[]
Tags of the container. This is only meta information.
- template boolean
Whether to create a template
- unprivileged boolean
Whether the container runs as unprivileged on the host
- vm
Id number The VM identifier
- clone
Container
Clone Args The cloning configuration
- console
Container
Console Args The console configuration
- cpu
Container
Cpu Args The CPU allocation
- description str
The description
- disk
Container
Disk Args The disks
- features
Container
Features Args Features
- initialization
Container
Initialization Args The initialization configuration
- memory
Container
Memory Args The memory allocation
- network_
interfaces ContainerNetwork Interface Args] The network interfaces
- node_
name str The node name
- operating_
system ContainerOperating System Args The operating system configuration
- pool_
id str The ID of the pool to assign the container to
- started bool
Whether to start the container
- Sequence[str]
Tags of the container. This is only meta information.
- template bool
Whether to create a template
- unprivileged bool
Whether the container runs as unprivileged on the host
- vm_
id int The VM identifier
- clone Property Map
The cloning configuration
- console Property Map
The console configuration
- cpu Property Map
The CPU allocation
- description String
The description
- disk Property Map
The disks
- features Property Map
Features
- initialization Property Map
The initialization configuration
- memory Property Map
The memory allocation
- network
Interfaces List<Property Map> The network interfaces
- node
Name String The node name
- operating
System Property Map The operating system configuration
- pool
Id String The ID of the pool to assign the container to
- started Boolean
Whether to start the container
- List<String>
Tags of the container. This is only meta information.
- template Boolean
Whether to create a template
- unprivileged Boolean
Whether the container runs as unprivileged on the host
- vm
Id Number The VM identifier
Supporting Types
ContainerClone
- Vm
Id int - Datastore
Id string - Node
Name string
- Vm
Id int - Datastore
Id string - Node
Name string
- vm
Id Integer - datastore
Id String - node
Name String
- vm
Id number - datastore
Id string - node
Name string
- vm_
id int - datastore_
id str - node_
name str
- vm
Id Number - datastore
Id String - node
Name String
ContainerConsole
ContainerCpu
- Architecture string
- Cores int
- Units int
- Architecture string
- Cores int
- Units int
- architecture String
- cores Integer
- units Integer
- architecture string
- cores number
- units number
- architecture str
- cores int
- units int
- architecture String
- cores Number
- units Number
ContainerDisk
- Datastore
Id string - Size int
- Datastore
Id string - Size int
- datastore
Id String - size Integer
- datastore
Id string - size number
- datastore_
id str - size int
- datastore
Id String - size Number
ContainerFeatures
- Nesting bool
- Nesting bool
- nesting Boolean
- nesting boolean
- nesting bool
- nesting Boolean
ContainerInitialization
ContainerInitializationDns
ContainerInitializationIpConfig
ContainerInitializationIpConfigIpv4
ContainerInitializationIpConfigIpv6
ContainerInitializationUserAccount
ContainerMemory
ContainerNetworkInterface
- name str
- bridge str
- enabled bool
- firewall bool
- mac_
address str - mtu int
- rate_
limit float - vlan_
id int
ContainerOperatingSystem
- Template
File stringId - Type string
- Template
File stringId - Type string
- template
File StringId - type String
- template
File stringId - type string
- template_
file_ strid - type str
- template
File StringId - type String
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
proxmoxve
Terraform Provider.