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 MachinePower Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MachinePower(name: string, args: MachinePowerArgs, opts?: CustomResourceOptions);@overload
def MachinePower(resource_name: str,
args: MachinePowerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MachinePower(resource_name: str,
opts: Optional[ResourceOptions] = None,
power_state: Optional[str] = None,
vm_id: Optional[int] = None,
kill_timeout: Optional[int] = None,
timeouts: Optional[_root_inputs.VirtualMachinePowerTimeoutsArgs] = None)func NewMachinePower(ctx *Context, name string, args MachinePowerArgs, opts ...ResourceOption) (*MachinePower, error)public MachinePower(string name, MachinePowerArgs args, CustomResourceOptions? opts = null)
public MachinePower(String name, MachinePowerArgs args)
public MachinePower(String name, MachinePowerArgs args, CustomResourceOptions options)
type: freebox:virtual:MachinePower
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_virtual_machinepower" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MachinePowerArgs
- 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 MachinePowerArgs
- 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 MachinePowerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MachinePowerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MachinePowerArgs
- 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 machinePowerResource = new Freebox.Virtual.MachinePower("machinePowerResource", new()
{
PowerState = "string",
VmId = 0,
KillTimeout = 0,
Timeouts = new Freebox.Inputs.VirtualMachinePowerTimeoutsArgs
{
Kill = 0,
},
});
example, err := virtual.NewMachinePower(ctx, "machinePowerResource", &virtual.MachinePowerArgs{
PowerState: pulumi.String("string"),
VmId: pulumi.Int(0),
KillTimeout: pulumi.Int(0),
Timeouts: &freebox.VirtualMachinePowerTimeoutsArgs{
Kill: pulumi.Int(0),
},
})
resource "freebox_virtual_machinepower" "machinePowerResource" {
power_state = "string"
vm_id = 0
kill_timeout = 0
timeouts = {
kill = 0
}
}
var machinePowerResource = new MachinePower("machinePowerResource", MachinePowerArgs.builder()
.powerState("string")
.vmId(0)
.killTimeout(0)
.timeouts(VirtualMachinePowerTimeoutsArgs.builder()
.kill(0)
.build())
.build());
machine_power_resource = freebox.virtual.MachinePower("machinePowerResource",
power_state="string",
vm_id=0,
kill_timeout=0,
timeouts={
"kill": 0,
})
const machinePowerResource = new freebox.virtual.MachinePower("machinePowerResource", {
powerState: "string",
vmId: 0,
killTimeout: 0,
timeouts: {
kill: 0,
},
});
type: freebox:virtual:MachinePower
properties:
killTimeout: 0
powerState: string
timeouts:
kill: 0
vmId: 0
MachinePower 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 MachinePower resource accepts the following input properties:
- Power
State string - Desired power state: running or stopped.
- Vm
Id int - Identifier of the virtual machine.
- Kill
Timeout int - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- Timeouts
Olivier
Paquien. Pulumi. Freebox. Inputs. Virtual Machine Power Timeouts - Timeouts for power operations.
- Power
State string - Desired power state: running or stopped.
- Vm
Id int - Identifier of the virtual machine.
- Kill
Timeout int - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- Timeouts
Virtual
Machine Power Timeouts Args - Timeouts for power operations.
- power_
state string - Desired power state: running or stopped.
- vm_
id number - Identifier of the virtual machine.
- kill_
timeout number - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- timeouts object
- Timeouts for power operations.
- power
State String - Desired power state: running or stopped.
- vm
Id Integer - Identifier of the virtual machine.
- kill
Timeout Integer - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- timeouts
Virtual
Machine Power Timeouts - Timeouts for power operations.
- power
State string - Desired power state: running or stopped.
- vm
Id number - Identifier of the virtual machine.
- kill
Timeout number - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- timeouts
Virtual
Machine Power Timeouts - Timeouts for power operations.
- power_
state str - Desired power state: running or stopped.
- vm_
id int - Identifier of the virtual machine.
- kill_
timeout int - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- timeouts
Virtual
Machine Power Timeouts Args - Timeouts for power operations.
- power
State String - Desired power state: running or stopped.
- vm
Id Number - Identifier of the virtual machine.
- kill
Timeout Number - Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
- timeouts Property Map
- Timeouts for power operations.
Outputs
All input properties are implicitly available as output properties. Additionally, the MachinePower 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 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.
Supporting Types
VirtualMachinePowerTimeouts, VirtualMachinePowerTimeoutsArgs
- Kill int
- Kill int
- kill number
- kill Integer
- kill number
- kill int
- kill Number
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