class InstanceSpec(pb_classes.Message): (source)
Constructor: InstanceSpec(initial_message, service_account_id, resources, gpu_cluster, ...)
Undocumented
Method | __dir__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | boot |
Undocumented |
Method | cloud |
Undocumented |
Method | filesystems |
Undocumented |
Method | gpu |
Undocumented |
Method | network |
Undocumented |
Method | recovery |
Undocumented |
Method | resources |
Undocumented |
Method | secondary |
Undocumented |
Method | service |
Undocumented |
Method | stopped |
Undocumented |
Constant | __PB2 |
Undocumented |
Constant | __PY |
Undocumented |
Class Variable | __mask |
Undocumented |
Property | boot |
Specified boot disk attached to the instance. |
Property | cloud |
Data in cloud-init format for customizing instance initialization. For details, see https://docs.nebius.com/compute/virtual-machines/manage#user-data |
Property | filesystems |
List of Shared Filesystems attached to the instance. |
Property | gpu |
If you want to interconnect several instances in a GPU cluster via NVIDIA InfiniBand, set the ID of an existing GPU cluster. You can only add the VM to the cluster when creating the VM. For details, see https://docs... |
Property | network |
List of network interfaces attached to the instance. |
Property | recovery |
Recovery policy defines how the instance will be treated in case of a failure. Common source of failure is a host failure, but it can be any other failure. Instance undergoing a guest shutdown (poweroff, etc... |
Property | resources |
Specification of compute resources allocated to the instance. For details, see https://docs.nebius.com/compute/virtual-machines/types |
Property | secondary |
List of additional data disks attached to the instance beyond the boot disk. |
Property | service |
Unique identifier of the service account associated with this instance. For details, see https://docs.nebius.dev/en/iam/about-iam/concepts/service-accounts |
Property | stopped |
Indicates whether the instance should be stopped. |
Inherited from Message
:
Class Method | get |
Undocumented |
Class Method | is |
Undocumented |
Class Method | is |
Undocumented |
Method | __repr__ |
Undocumented |
Method | check |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | set |
Undocumented |
Method | which |
Undocumented |
Class Variable | __PB2 |
Undocumented |
Instance Variable | __pb2 |
Undocumented |
Method | _clear |
Undocumented |
Method | _get |
Undocumented |
Method | _set |
Undocumented |
Class Variable | __credentials |
Undocumented |
Class Variable | __default |
Undocumented |
Class Variable | __sensitive |
Undocumented |
Instance Variable | __recorded |
Undocumented |
message_1.Message | None
= None, *, service_account_id: builtins.str | None | unset.UnsetType
= unset.Unset, resources: ResourcesSpec | instance_pb2.ResourcesSpec | None | unset.UnsetType
= unset.Unset, gpu_cluster: InstanceGpuClusterSpec | instance_pb2.InstanceGpuClusterSpec | None | unset.UnsetType
= unset.Unset, network_interfaces: abc.Iterable[ NetworkInterfaceSpec] | None | unset.UnsetType
= unset.Unset, boot_disk: AttachedDiskSpec | instance_pb2.AttachedDiskSpec | None | unset.UnsetType
= unset.Unset, secondary_disks: abc.Iterable[ AttachedDiskSpec] | None | unset.UnsetType
= unset.Unset, filesystems: abc.Iterable[ AttachedFilesystemSpec] | None | unset.UnsetType
= unset.Unset, cloud_init_user_data: builtins.str | None | unset.UnsetType
= unset.Unset, stopped: builtins.bool | None | unset.UnsetType
= unset.Unset, recovery_policy: InstanceRecoveryPolicy | instance_pb2.InstanceRecoveryPolicy | None | unset.UnsetType
= unset.Unset):
(source)
¶
Undocumented
Undocumented
InstanceGpuClusterSpec | instance_pb2.InstanceGpuClusterSpec | None
):
(source)
¶
Undocumented
Undocumented
InstanceRecoveryPolicy | instance_pb2.InstanceRecoveryPolicy | None
):
(source)
¶
Undocumented
Undocumented
Undocumented
Value |
|
Undocumented
Value |
|
Data in cloud-init format for customizing instance initialization. For details, see https://docs.nebius.com/compute/virtual-machines/manage#user-data
If you want to interconnect several instances in a GPU cluster via NVIDIA InfiniBand, set the ID of an existing GPU cluster. You can only add the VM to the cluster when creating the VM. For details, see https://docs.nebius.com/compute/clusters/gpu
Recovery policy defines how the instance will be treated in case of a failure. Common source of failure is a host failure, but it can be any other failure. Instance undergoing a guest shutdown (poweroff, etc.) will be subject to recovery policy, meaning that it could be restarted and billed accordingly. Stop instance via API or UI to stop it to avoid recovering. If set to RECOVER, instance will be restarted, if possible. It could be restarted on the same host or on another host. If set to FAIL, instance will be stopped and not restarted.
Specification of compute resources allocated to the instance. For details, see https://docs.nebius.com/compute/virtual-machines/types