Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Create Machine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Machine(name: string, args: MachineArgs, opts?: CustomResourceOptions);@overload
def Machine(resource_name: str,
args: MachineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Machine(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_type: Optional[str] = None,
vcpus: Optional[int] = None,
name: Optional[str] = None,
memory: Optional[int] = None,
disk_path: Optional[str] = None,
cloudinit_userdata: Optional[str] = None,
enable_cloudinit: Optional[bool] = None,
enable_screen: Optional[bool] = None,
bind_usb_ports: Optional[Sequence[str]] = None,
cloudinit_hostname: Optional[str] = None,
os: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[_root_inputs.VirtualMachineTimeoutsArgs] = None,
cd_path: Optional[str] = None)func NewMachine(ctx *Context, name string, args MachineArgs, opts ...ResourceOption) (*Machine, error)public Machine(string name, MachineArgs args, CustomResourceOptions? opts = null)
public Machine(String name, MachineArgs args)
public Machine(String name, MachineArgs args, CustomResourceOptions options)
type: freebox:virtual:Machine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_virtual_machine" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MachineArgs
- 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 MachineArgs
- 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 MachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MachineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var machineResource = new Freebox.Virtual.Machine("machineResource", new()
{
DiskType = "string",
Vcpus = 0,
Name = "string",
Memory = 0,
DiskPath = "string",
CloudinitUserdata = "string",
EnableCloudinit = false,
EnableScreen = false,
BindUsbPorts = new[]
{
"string",
},
CloudinitHostname = "string",
Os = "string",
Status = "string",
Timeouts = new Freebox.Inputs.VirtualMachineTimeoutsArgs
{
Create = 0,
Delete = 0,
Kill = 0,
Networking = 0,
Read = 0,
Update = 0,
},
CdPath = "string",
});
example, err := virtual.NewMachine(ctx, "machineResource", &virtual.MachineArgs{
DiskType: pulumi.String("string"),
Vcpus: pulumi.Int(0),
Name: pulumi.String("string"),
Memory: pulumi.Int(0),
DiskPath: pulumi.String("string"),
CloudinitUserdata: pulumi.String("string"),
EnableCloudinit: pulumi.Bool(false),
EnableScreen: pulumi.Bool(false),
BindUsbPorts: pulumi.StringArray{
pulumi.String("string"),
},
CloudinitHostname: pulumi.String("string"),
Os: pulumi.String("string"),
Status: pulumi.String("string"),
Timeouts: &freebox.VirtualMachineTimeoutsArgs{
Create: pulumi.Int(0),
Delete: pulumi.Int(0),
Kill: pulumi.Int(0),
Networking: pulumi.Int(0),
Read: pulumi.Int(0),
Update: pulumi.Int(0),
},
CdPath: pulumi.String("string"),
})
resource "freebox_virtual_machine" "machineResource" {
disk_type = "string"
vcpus = 0
name = "string"
memory = 0
disk_path = "string"
cloudinit_userdata = "string"
enable_cloudinit = false
enable_screen = false
bind_usb_ports = ["string"]
cloudinit_hostname = "string"
os = "string"
status = "string"
timeouts = {
create = 0
delete = 0
kill = 0
networking = 0
read = 0
update = 0
}
cd_path = "string"
}
var machineResource = new Machine("machineResource", MachineArgs.builder()
.diskType("string")
.vcpus(0)
.name("string")
.memory(0)
.diskPath("string")
.cloudinitUserdata("string")
.enableCloudinit(false)
.enableScreen(false)
.bindUsbPorts("string")
.cloudinitHostname("string")
.os("string")
.status("string")
.timeouts(VirtualMachineTimeoutsArgs.builder()
.create(0)
.delete(0)
.kill(0)
.networking(0)
.read(0)
.update(0)
.build())
.cdPath("string")
.build());
machine_resource = freebox.virtual.Machine("machineResource",
disk_type="string",
vcpus=0,
name="string",
memory=0,
disk_path="string",
cloudinit_userdata="string",
enable_cloudinit=False,
enable_screen=False,
bind_usb_ports=["string"],
cloudinit_hostname="string",
os="string",
status="string",
timeouts={
"create": 0,
"delete": 0,
"kill": 0,
"networking": 0,
"read": 0,
"update": 0,
},
cd_path="string")
const machineResource = new freebox.virtual.Machine("machineResource", {
diskType: "string",
vcpus: 0,
name: "string",
memory: 0,
diskPath: "string",
cloudinitUserdata: "string",
enableCloudinit: false,
enableScreen: false,
bindUsbPorts: ["string"],
cloudinitHostname: "string",
os: "string",
status: "string",
timeouts: {
create: 0,
"delete": 0,
kill: 0,
networking: 0,
read: 0,
update: 0,
},
cdPath: "string",
});
type: freebox:virtual:Machine
properties:
bindUsbPorts:
- string
cdPath: string
cloudinitHostname: string
cloudinitUserdata: string
diskPath: string
diskType: string
enableCloudinit: false
enableScreen: false
memory: 0
name: string
os: string
status: string
timeouts:
create: 0
delete: 0
kill: 0
networking: 0
read: 0
update: 0
vcpus: 0
Machine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Machine resource accepts the following input properties:
- Disk
Path string - Path to the disk image.
- Disk
Type string - Disk type: qcow2 or raw.
- Memory int
- Memory in MB.
- Name string
- Name of the VM.
- Vcpus int
- Number of vCPUs.
- Bind
Usb List<string>Ports - USB ports to bind.
- Cd
Path string - Path to CD/ISO image.
- Cloudinit
Hostname string - Cloud-init hostname.
- Cloudinit
Userdata string - Cloud-init user-data.
- Enable
Cloudinit bool - Enable cloud-init.
- Enable
Screen bool - Enable VNC screen.
- Os string
- OS type (for icon).
- Status string
- Desired state: running or stopped. Default running.
- Timeouts
Olivier
Paquien. Pulumi. Freebox. Inputs. Virtual Machine Timeouts - Operation timeouts (create, update, read, delete, kill, networking).
- Disk
Path string - Path to the disk image.
- Disk
Type string - Disk type: qcow2 or raw.
- Memory int
- Memory in MB.
- Name string
- Name of the VM.
- Vcpus int
- Number of vCPUs.
- Bind
Usb []stringPorts - USB ports to bind.
- Cd
Path string - Path to CD/ISO image.
- Cloudinit
Hostname string - Cloud-init hostname.
- Cloudinit
Userdata string - Cloud-init user-data.
- Enable
Cloudinit bool - Enable cloud-init.
- Enable
Screen bool - Enable VNC screen.
- Os string
- OS type (for icon).
- Status string
- Desired state: running or stopped. Default running.
- Timeouts
Virtual
Machine Timeouts Args - Operation timeouts (create, update, read, delete, kill, networking).
- disk_
path string - Path to the disk image.
- disk_
type string - Disk type: qcow2 or raw.
- memory number
- Memory in MB.
- name string
- Name of the VM.
- vcpus number
- Number of vCPUs.
- bind_
usb_ list(string)ports - USB ports to bind.
- cd_
path string - Path to CD/ISO image.
- cloudinit_
hostname string - Cloud-init hostname.
- cloudinit_
userdata string - Cloud-init user-data.
- enable_
cloudinit bool - Enable cloud-init.
- enable_
screen bool - Enable VNC screen.
- os string
- OS type (for icon).
- status string
- Desired state: running or stopped. Default running.
- timeouts object
- Operation timeouts (create, update, read, delete, kill, networking).
- disk
Path String - Path to the disk image.
- disk
Type String - Disk type: qcow2 or raw.
- memory Integer
- Memory in MB.
- name String
- Name of the VM.
- vcpus Integer
- Number of vCPUs.
- bind
Usb List<String>Ports - USB ports to bind.
- cd
Path String - Path to CD/ISO image.
- cloudinit
Hostname String - Cloud-init hostname.
- cloudinit
Userdata String - Cloud-init user-data.
- enable
Cloudinit Boolean - Enable cloud-init.
- enable
Screen Boolean - Enable VNC screen.
- os String
- OS type (for icon).
- status String
- Desired state: running or stopped. Default running.
- timeouts
Virtual
Machine Timeouts - Operation timeouts (create, update, read, delete, kill, networking).
- disk
Path string - Path to the disk image.
- disk
Type string - Disk type: qcow2 or raw.
- memory number
- Memory in MB.
- name string
- Name of the VM.
- vcpus number
- Number of vCPUs.
- bind
Usb string[]Ports - USB ports to bind.
- cd
Path string - Path to CD/ISO image.
- cloudinit
Hostname string - Cloud-init hostname.
- cloudinit
Userdata string - Cloud-init user-data.
- enable
Cloudinit boolean - Enable cloud-init.
- enable
Screen boolean - Enable VNC screen.
- os string
- OS type (for icon).
- status string
- Desired state: running or stopped. Default running.
- timeouts
Virtual
Machine Timeouts - Operation timeouts (create, update, read, delete, kill, networking).
- disk_
path str - Path to the disk image.
- disk_
type str - Disk type: qcow2 or raw.
- memory int
- Memory in MB.
- name str
- Name of the VM.
- vcpus int
- Number of vCPUs.
- bind_
usb_ Sequence[str]ports - USB ports to bind.
- cd_
path str - Path to CD/ISO image.
- cloudinit_
hostname str - Cloud-init hostname.
- cloudinit_
userdata str - Cloud-init user-data.
- enable_
cloudinit bool - Enable cloud-init.
- enable_
screen bool - Enable VNC screen.
- os str
- OS type (for icon).
- status str
- Desired state: running or stopped. Default running.
- timeouts
Virtual
Machine Timeouts Args - Operation timeouts (create, update, read, delete, kill, networking).
- disk
Path String - Path to the disk image.
- disk
Type String - Disk type: qcow2 or raw.
- memory Number
- Memory in MB.
- name String
- Name of the VM.
- vcpus Number
- Number of vCPUs.
- bind
Usb List<String>Ports - USB ports to bind.
- cd
Path String - Path to CD/ISO image.
- cloudinit
Hostname String - Cloud-init hostname.
- cloudinit
Userdata String - Cloud-init user-data.
- enable
Cloudinit Boolean - Enable cloud-init.
- enable
Screen Boolean - Enable VNC screen.
- os String
- OS type (for icon).
- status String
- Desired state: running or stopped. Default running.
- timeouts Property Map
- Operation timeouts (create, update, read, delete, kill, networking).
Outputs
All input properties are implicitly available as output properties. Additionally, the Machine resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- MAC address of the VM.
- Vm
Id int - Freebox API VM ID.
- Ipv4 string
- First IPv4 address of the VM on the LAN (when running).
- Networking
List<Olivier
Paquien. Pulumi. Freebox. Outputs. Networking Bind> - Network binds (interface, IPv4, IPv6) for the VM.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- MAC address of the VM.
- Vm
Id int - Freebox API VM ID.
- Ipv4 string
- First IPv4 address of the VM on the LAN (when running).
- Networking
Networking
Bind - Network binds (interface, IPv4, IPv6) for the VM.
- id string
- The provider-assigned unique ID for this managed resource.
- mac string
- MAC address of the VM.
- vm_
id number - Freebox API VM ID.
- ipv4 string
- First IPv4 address of the VM on the LAN (when running).
- networking list(object)
- Network binds (interface, IPv4, IPv6) for the VM.
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- MAC address of the VM.
- vm
Id Integer - Freebox API VM ID.
- ipv4 String
- First IPv4 address of the VM on the LAN (when running).
- networking
List<Networking
Bind> - Network binds (interface, IPv4, IPv6) for the VM.
- id string
- The provider-assigned unique ID for this managed resource.
- mac string
- MAC address of the VM.
- vm
Id number - Freebox API VM ID.
- ipv4 string
- First IPv4 address of the VM on the LAN (when running).
- networking
Networking
Bind[] - Network binds (interface, IPv4, IPv6) for the VM.
- id str
- The provider-assigned unique ID for this managed resource.
- mac str
- MAC address of the VM.
- vm_
id int - Freebox API VM ID.
- ipv4 str
- First IPv4 address of the VM on the LAN (when running).
- networking
Sequence[root_Networking
Bind] - Network binds (interface, IPv4, IPv6) for the VM.
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- MAC address of the VM.
- vm
Id Number - Freebox API VM ID.
- ipv4 String
- First IPv4 address of the VM on the LAN (when running).
- networking List<Property Map>
- Network binds (interface, IPv4, IPv6) for the VM.
Supporting Types
NetworkingBind, NetworkingBindArgs
- interface_ String
- ipv4 String
- ipv6 List<String>
VirtualMachineTimeouts, VirtualMachineTimeoutsArgs
Package Details
- Repository
- freebox
- License
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien