class InstanceSpec(Message): (source)
Constructor: InstanceSpec(initial_message, service_account_id, resources, gpu_cluster, ...)
Undocumented
| Method | __init__ |
Create a message from a source message and field values. |
| Method | boot |
Set or clear the generated boot_disk field. |
| Method | cloud |
Set or clear the generated cloud_init_user_data field. |
| Method | filesystems |
Set or clear the generated filesystems field. |
| Method | gpu |
Set or clear the generated gpu_cluster field. |
| Method | hostname |
Set or clear the generated hostname field. |
| Method | local |
Set or clear the generated local_disks field. |
| Method | network |
Set or clear the generated network_interfaces field. |
| Method | nvl |
Set or clear the generated nvl_instance_group_id field. |
| Method | preemptible |
Set or clear the generated preemptible field. |
| Method | recovery |
Set or clear the generated recovery_policy field. |
| Method | reservation |
Set or clear the generated reservation_policy field. |
| Method | resources |
Set or clear the generated resources field. |
| Method | secondary |
Set or clear the generated secondary_disks field. |
| Method | service |
Set or clear the generated service_account_id field. |
| Method | stopped |
Set or clear the generated stopped field. |
| Constant | __PROTO |
Protobuf message descriptor from the registry. |
| Constant | __PROTO |
Fully qualified protobuf message name. |
| Constant | __PY |
Mapping from Python member names to protobuf names. |
| 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 ... |
| Property | hostname |
Instance's hostname. Used to generate default DNS record in format <hostname>.<network_id>.compute.internal. or <instance_id>.<network_id>.compute.internal. if hostname is not specified. |
| Property | local |
Local disks are meaningfully different from regular (remote) disks: they are provided by the underlying host and are tied to a particular VM run. Local disk data is not preserved across Stop-Start initiated via Compute API... |
| Property | network |
List of network interfaces attached to the instance. |
| Property | nvl |
NVLink Instance Group ID associated with the VM |
| Property | preemptible |
Include these parameters to create a Preemptible VM and omit them to create a Regular VM For details, see https://docs.nebius.com/compute/virtual-machines/preemptible |
| 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 | reservation |
Undocumented |
| 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.com/iam/service-accounts/manage |
| Property | stopped |
Indicates whether the instance should be stopped. |
Inherited from Message:
| Class Method | from |
Create a message from protobuf JSON mapping. |
| Class Method | |
Create a message by parsing protobuf wire-format bytes. |
| Class Method | get |
Return the message descriptor from the registry. |
| Class Method | is |
Return True if a Python field contains credentials. |
| Class Method | is |
Return True if a Python field has the sensitive annotation. |
| Method | __dir__ |
List generated fields, oneofs, and nested declarations. |
| Method | __repr__ |
Render non-default fields without disclosing annotated secrets. |
| Method | |
Return the serialized protobuf wire size in bytes. |
| Method | check |
Check presence using a generated Python field name. |
| Method | |
Clear all fields, extensions, unknown fields, and the reset mask. |
| Method | clear |
Clear an extension value. |
| Method | |
Clear a protobuf field or oneof and record it in the reset mask. |
| Method | |
Replace this message with an independent copy of another message. |
| Method | |
Return paths of missing required fields. |
| Method | get |
Return an extension value. |
| Method | get |
Create a reset mask from the current protobuf state. |
| Method | get |
Return the reset mask for field changes. |
| Method | has |
Return True if an extension has explicit presence. |
| Method | |
Return True if a protobuf field or oneof has explicit presence. |
| Method | is |
Return True if a generated field has its default value. |
| Method | |
Return True if every required field is initialized. |
| Method | |
Merge fields from another message of the same generated type. |
| Method | |
Merge protobuf wire-format bytes into this message. |
| Method | |
Parse protobuf wire-format bytes and replace this message. |
| Method | |
Serialize the message using protobuf wire format. |
| Method | set |
Set an extension value. |
| Method | set |
Set the reset mask for this message. |
| Method | to |
Serialize this message using protobuf JSON mapping. |
| Method | which |
Return the selected Python field name for a protobuf oneof. |
| Method | |
Return the selected protobuf field name for a oneof. |
| Constant | __EXTENSION |
Registry that decodes protobuf extensions. |
| Constant | __FIELDS__ |
Runtime field data that the generator creates. |
| Constant | __MAX |
Maximum protobuf nesting depth for serialization, parsing, and initialization checks. |
| Constant | __PB2 |
Alias for code that expects a protobuf descriptor. |
| Constant | __REGISTRY__ |
Registry for the message and its descriptor. |
| Property | |
Provide protobuf-compatible mapping access to extension values. |
| Class Method | _fields |
Undocumented |
| Class Method | _fields |
Undocumented |
| Class Method | _fields |
Undocumented |
| Class Method | _from |
Deserialize internally without invoking generated user warnings. |
| Class Method | _oneof |
Undocumented |
| Class Method | _public |
Undocumented |
| Class Method | _public |
Undocumented |
| Static Method | _format |
Undocumented |
| Static Method | _repr |
Undocumented |
| Method | _bind |
Undocumented |
| Method | _bind |
Undocumented |
| Method | _check |
Undocumented |
| Method | _child |
Undocumented |
| Method | _clear |
Undocumented |
| Method | _closed |
Undocumented |
| Method | _converted |
Undocumented |
| Method | _decode |
Undocumented |
| Method | _detach |
Undocumented |
| Method | _field |
Undocumented |
| Method | _field |
Undocumented |
| Method | _find |
Undocumented |
| Method | _get |
Undocumented |
| Method | _map |
Undocumented |
| Method | _merge |
Undocumented |
| Method | _nesting |
Undocumented |
| Method | _notify |
Undocumented |
| Method | _record |
Undocumented |
| Method | _repeated |
Undocumented |
| Method | _select |
Undocumented |
| Method | _serialize |
Undocumented |
| Method | _set |
Undocumented |
| Method | _suspend |
Undocumented |
| Method | _suspend |
Undocumented |
| Method | _try |
Undocumented |
| Method | _write |
Undocumented |
| Instance Variable | _extensions |
Undocumented |
| Instance Variable | _mutation |
Undocumented |
| Instance Variable | _on |
Undocumented |
| Instance Variable | _oneofs |
Undocumented |
| Instance Variable | _present |
Undocumented |
| Instance Variable | _reset |
Undocumented |
| Instance Variable | _reset |
Undocumented |
| Instance Variable | _unknown |
Undocumented |
| Instance Variable | _values |
Undocumented |
| Instance Variable | _views |
Undocumented |
SerializableMessage | None = None, *, service_account_id: str | None | UnsetType = _NEBIUS_UNSET, resources: ResourcesSpec | None | UnsetType = _NEBIUS_UNSET, gpu_cluster: InstanceGpuClusterSpec | None | UnsetType = _NEBIUS_UNSET, network_interfaces: Iterable[ NetworkInterfaceSpec] | None | UnsetType = _NEBIUS_UNSET, boot_disk: AttachedDiskSpec | None | UnsetType = _NEBIUS_UNSET, secondary_disks: Iterable[ AttachedDiskSpec] | None | UnsetType = _NEBIUS_UNSET, filesystems: Iterable[ AttachedFilesystemSpec] | None | UnsetType = _NEBIUS_UNSET, cloud_init_user_data: str | None | UnsetType = _NEBIUS_UNSET, stopped: bool | None | UnsetType = _NEBIUS_UNSET, recovery_policy: InstanceRecoveryPolicy | None | UnsetType = _NEBIUS_UNSET, preemptible: PreemptibleSpec | None | UnsetType = _NEBIUS_UNSET, hostname: str | None | UnsetType = _NEBIUS_UNSET, nvl_instance_group_id: str | None | UnsetType = _NEBIUS_UNSET, reservation_policy: ReservationPolicy | None | UnsetType = _NEBIUS_UNSET, local_disks: LocalDisksSpec | None | UnsetType = _NEBIUS_UNSET):
(source)
¶
Create a message from a source message and field values.
def filesystems(self, value:
Iterable[ AttachedFilesystemSpec] | None):
(source)
¶
Set or clear the generated filesystems field.
def network_interfaces(self, value:
Iterable[ NetworkInterfaceSpec] | None):
(source)
¶
Set or clear the generated network_interfaces field.
def reservation_policy(self, value:
ReservationPolicy | None):
(source)
¶
Set or clear the generated reservation_policy field.
def secondary_disks(self, value:
Iterable[ AttachedDiskSpec] | None):
(source)
¶
Set or clear the generated secondary_disks field.
Protobuf message descriptor from the registry.
| Value |
|
Mapping from Python member names to protobuf names.
| 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
Instance's hostname. Used to generate default DNS record in format <hostname>.<network_id>.compute.internal. or <instance_id>.<network_id>.compute.internal. if hostname is not specified.
Local disks are meaningfully different from regular (remote) disks: they are provided by the underlying host and are tied to a particular VM run. Local disk data is not preserved across Stop-Start initiated via Compute API. Local disks are not provided by default. To get them, explicitly request them via this field. Availability depends on the selected platform, preset and region. Changing this field will result in disks change and content loss, but only after stop and start the instance.
Include these parameters to create a Preemptible VM and omit them to create a Regular VM For details, see https://docs.nebius.com/compute/virtual-machines/preemptible
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.
- If set to ALWAYS, keep retrying recovery indefinitely until the instance is recovered. Available only for instances in nvlinstancegroup
Specification of compute resources allocated to the instance. For details, see https://docs.nebius.com/compute/virtual-machines/types
Unique identifier of the service account associated with this instance. For details, see https://docs.nebius.com/iam/service-accounts/manage