Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 3.75 KB

File metadata and controls

44 lines (35 loc) · 3.75 KB

CreateInstancesPayload

Properties

Name Type Description Notes
assign_floating_ip bool When this field is set to `true`, it attaches a public IP address to the virtual machine, enabling internet accessibility. [optional]
callback_url str An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, click here. [optional]
count int The number of virtual machines to be created.
create_bootable_volume bool Indicates whether to create a bootable volume for the virtual machine. When set to `true`, a bootable volume will be created; the default value is `false`. [optional]
enable_port_randomization bool Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true. [optional] [default to True]
environment_name str The name of the environment in which the virtual machine is to be created.
flavor FlavorObjectFields [optional]
flavor_name str The name of the GPU hardware configuration (flavor) for the virtual machines being created.
image_name str The operating system (OS) image name designated for installation on the virtual machine.It also accepts custom, private images, created from existing snapshots. [optional]
key_name str The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, click here.
labels List[str] [optional]
name str The name of the virtual machine being created.
profile ProfileObjectFields [optional]
security_rules List[CreateSecurityRulePayload] [optional]
user_data str Optional initialization configuration commands to manage the configuration of a virtual machine at launch using cloud-init scripts. For more information about custom VM configuration using cloud-init, click here. [optional]
volume_name str The names of the volume(s) to be attached to the virtual machine being created. [optional]

Example

from hyperstack.models.create_instances_payload import CreateInstancesPayload

# TODO update the JSON string below
json = "{}"
# create an instance of CreateInstancesPayload from a JSON string
create_instances_payload_instance = CreateInstancesPayload.from_json(json)
# print the JSON string representation of the object
print(CreateInstancesPayload.to_json())

# convert the object into a dict
create_instances_payload_dict = create_instances_payload_instance.to_dict()
# create an instance of CreateInstancesPayload from a dict
create_instances_payload_from_dict = CreateInstancesPayload.from_dict(create_instances_payload_dict)

[Back to Model list] [Back to API list] [Back to README]