Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 3.38 KB

File metadata and controls

43 lines (34 loc) · 3.38 KB

CreateInstancesPayload

Properties

Name Type Description Notes
name str The name of the virtual machine being created.
environment_name str The name of the environment in which the virtual machine is to be created.
image_name str The operating system (OS) image name designated for installation on the virtual machine. [optional]
volume_name str The names of the volume(s) to be attached to the virtual machine being created. [optional]
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]
flavor_name str The name of the GPU hardware configuration (flavor) for the virtual machines being created.
flavor FlavorObjectFields [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.
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]
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]
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]
security_rules List[CreateSecurityRulePayload] [optional]
profile ProfileObjectFields [optional]
count int The number of virtual machines to be created.
labels List[str] [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_form_dict = create_instances_payload.from_dict(create_instances_payload_dict)

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