Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
  • Yandex Container Solution
  • Access management
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • UpdateMetadata
        • GetSerialPortOutput
        • Stop
        • Start
        • Restart
        • AttachDisk
        • DetachDisk
        • AttachFilesystem
        • DetachFilesystem
        • AttachNetworkInterface
        • DetachNetworkInterface
        • AddOneToOneNat
        • RemoveOneToOneNat
        • UpdateNetworkInterface
        • ListOperations
        • Move
        • Relocate
        • SimulateMaintenanceEvent
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • StartInstanceRequest
  • operation.Operation
  • StartInstanceMetadata
  • Instance
  • Resources
  • MetadataOptions
  • AttachedDisk
  • AttachedLocalDisk
  • AttachedFilesystem
  • NetworkInterface
  • PrimaryAddress
  • OneToOneNat
  • DnsRecord
  • SerialPortSettings
  • GpuSettings
  • SchedulingPolicy
  • NetworkSettings
  • PlacementPolicy
  • HostAffinityRule
  • HardwareGeneration
  • LegacyHardwareFeatures
  • Generation2HardwareFeatures
  1. API reference
  2. gRPC
  3. Instance
  4. Start

Compute Cloud API, gRPC: InstanceService.Start

Written by
Yandex Cloud
Improved by
Tania L.
Updated at February 21, 2025
  • gRPC request
  • StartInstanceRequest
  • operation.Operation
  • StartInstanceMetadata
  • Instance
  • Resources
  • MetadataOptions
  • AttachedDisk
  • AttachedLocalDisk
  • AttachedFilesystem
  • NetworkInterface
  • PrimaryAddress
  • OneToOneNat
  • DnsRecord
  • SerialPortSettings
  • GpuSettings
  • SchedulingPolicy
  • NetworkSettings
  • PlacementPolicy
  • HostAffinityRule
  • HardwareGeneration
  • LegacyHardwareFeatures
  • Generation2HardwareFeatures

Starts the stopped instance.

gRPC requestgRPC request

rpc Start (StartInstanceRequest) returns (operation.Operation)

StartInstanceRequestStartInstanceRequest

{
  "instance_id": "string"
}

Field

Description

instance_id

string

Required field. ID of the instance to start.
To get the instance ID, use a InstanceService.List request.

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": {
    "instance_id": "string"
  },
  // Includes only one of the fields `error`, `response`
  "error": "google.rpc.Status",
  "response": {
    "id": "string",
    "folder_id": "string",
    "created_at": "google.protobuf.Timestamp",
    "name": "string",
    "description": "string",
    "labels": "map<string, string>",
    "zone_id": "string",
    "platform_id": "string",
    "resources": {
      "memory": "int64",
      "cores": "int64",
      "core_fraction": "int64",
      "gpus": "int64"
    },
    "status": "Status",
    "metadata": "map<string, string>",
    "metadata_options": {
      "gce_http_endpoint": "MetadataOption",
      "aws_v1_http_endpoint": "MetadataOption",
      "gce_http_token": "MetadataOption",
      "aws_v1_http_token": "MetadataOption"
    },
    "boot_disk": {
      "mode": "Mode",
      "device_name": "string",
      "auto_delete": "bool",
      "disk_id": "string"
    },
    "secondary_disks": [
      {
        "mode": "Mode",
        "device_name": "string",
        "auto_delete": "bool",
        "disk_id": "string"
      }
    ],
    "local_disks": [
      {
        "size": "int64",
        "device_name": "string"
      }
    ],
    "filesystems": [
      {
        "mode": "Mode",
        "device_name": "string",
        "filesystem_id": "string"
      }
    ],
    "network_interfaces": [
      {
        "index": "string",
        "mac_address": "string",
        "subnet_id": "string",
        "primary_v4_address": {
          "address": "string",
          "one_to_one_nat": {
            "address": "string",
            "ip_version": "IpVersion",
            "dns_records": [
              {
                "fqdn": "string",
                "dns_zone_id": "string",
                "ttl": "int64",
                "ptr": "bool"
              }
            ]
          },
          "dns_records": [
            {
              "fqdn": "string",
              "dns_zone_id": "string",
              "ttl": "int64",
              "ptr": "bool"
            }
          ]
        },
        "primary_v6_address": {
          "address": "string",
          "one_to_one_nat": {
            "address": "string",
            "ip_version": "IpVersion",
            "dns_records": [
              {
                "fqdn": "string",
                "dns_zone_id": "string",
                "ttl": "int64",
                "ptr": "bool"
              }
            ]
          },
          "dns_records": [
            {
              "fqdn": "string",
              "dns_zone_id": "string",
              "ttl": "int64",
              "ptr": "bool"
            }
          ]
        },
        "security_group_ids": [
          "string"
        ]
      }
    ],
    "serial_port_settings": {
      "ssh_authorization": "SSHAuthorization"
    },
    "gpu_settings": {
      "gpu_cluster_id": "string"
    },
    "fqdn": "string",
    "scheduling_policy": {
      "preemptible": "bool"
    },
    "service_account_id": "string",
    "network_settings": {
      "type": "Type"
    },
    "placement_policy": {
      "placement_group_id": "string",
      "host_affinity_rules": [
        {
          "key": "string",
          "op": "Operator",
          "values": [
            "string"
          ]
        }
      ],
      "placement_group_partition": "int64"
    },
    "host_group_id": "string",
    "host_id": "string",
    "maintenance_policy": "MaintenancePolicy",
    "maintenance_grace_period": "google.protobuf.Duration",
    "hardware_generation": {
      // Includes only one of the fields `legacy_features`, `generation2_features`
      "legacy_features": {
        "pci_topology": "PCITopology"
      },
      "generation2_features": "Generation2HardwareFeatures"
      // end of the list of possible fields
    },
    "reserved_instance_pool_id": "string"
  }
  // end of the list of possible fields
}

An Operation resource. For more information, see Operation.

Field

Description

id

string

ID of the operation.

description

string

Description of the operation. 0-256 characters long.

created_at

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

StartInstanceMetadata

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

Instance

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

StartInstanceMetadataStartInstanceMetadata

Field

Description

instance_id

string

ID of the instance.

InstanceInstance

An Instance resource. For more information, see Instances.

Field

Description

id

string

ID of the instance.

folder_id

string

ID of the folder that the instance belongs to.

created_at

google.protobuf.Timestamp

name

string

Name of the instance. 1-63 characters long.

description

string

Description of the instance. 0-256 characters long.

labels

object (map<string, string>)

Resource labels as key:value pairs. Maximum of 64 per resource.

zone_id

string

ID of the availability zone where the instance resides.

platform_id

string

ID of the hardware platform configuration for the instance.

resources

Resources

Computing resources of the instance such as the amount of memory and number of cores.

status

enum Status

Status of the instance.

  • STATUS_UNSPECIFIED
  • PROVISIONING: Instance is waiting for resources to be allocated.
  • RUNNING: Instance is running normally.
  • STOPPING: Instance is being stopped.
  • STOPPED: Instance stopped.
  • STARTING: Instance is being started.
  • RESTARTING: Instance is being restarted.
  • UPDATING: Instance is being updated.
  • ERROR: Instance encountered a problem and cannot operate.
  • CRASHED: Instance crashed and will be restarted automatically.
  • DELETING: Instance is being deleted.

metadata

object (map<string, string>)

The metadata key:value pairs assigned to this instance. This includes custom metadata and predefined keys.

For example, you may use the metadata in order to provide your public SSH key to the instance.
For more information, see Metadata.

metadata_options

MetadataOptions

Options allow user to configure access to instance's metadata

boot_disk

AttachedDisk

Boot disk that is attached to the instance.

secondary_disks[]

AttachedDisk

Array of secondary disks that are attached to the instance.

local_disks[]

AttachedLocalDisk

Array of local disks that are attached to the instance.

filesystems[]

AttachedFilesystem

Array of filesystems that are attached to the instance.

network_interfaces[]

NetworkInterface

Array of network interfaces that are attached to the instance.

serial_port_settings

SerialPortSettings

Serial port settings

gpu_settings

GpuSettings

GPU settings

fqdn

string

A domain name of the instance. FQDN is defined by the server
in the format <hostname>.<region_id>.internal when the instance is created.
If the hostname were not specified when the instance was created, FQDN would be <id>.auto.internal.

scheduling_policy

SchedulingPolicy

Scheduling policy configuration.

service_account_id

string

ID of the service account to use for authentication inside the instance.
To get the service account ID, use a yandex.cloud.iam.v1.ServiceAccountService.List request.

network_settings

NetworkSettings

Network Settings

placement_policy

PlacementPolicy

Placement policy configuration.

host_group_id

string

ID of the dedicated host group that the instance belongs to.

host_id

string

ID of the dedicated host that the instance belongs to.

maintenance_policy

enum MaintenancePolicy

Behaviour on maintenance events

  • MAINTENANCE_POLICY_UNSPECIFIED
  • RESTART: Restart instance to move it to another host during maintenance
  • MIGRATE: Use live migration to move instance to another host during maintenance

maintenance_grace_period

google.protobuf.Duration

Time between notification via metadata service and maintenance

hardware_generation

HardwareGeneration

This feature set is inherited from the image/disk used as a boot one at the creation of the instance.

reserved_instance_pool_id

string

ID of the reserved instance pool that the instance belongs to.

ResourcesResources

Field

Description

memory

int64

The amount of memory available to the instance, specified in bytes.

cores

int64

The number of cores available to the instance.

core_fraction

int64

Baseline level of CPU performance with the ability to burst performance above that baseline level.
This field sets baseline performance for each core.

gpus

int64

The number of GPUs available to the instance.

MetadataOptionsMetadataOptions

Field

Description

gce_http_endpoint

enum MetadataOption

Enabled access to GCE flavored metadata

  • METADATA_OPTION_UNSPECIFIED
  • ENABLED: Option is enabled
  • DISABLED: Option is disabled

aws_v1_http_endpoint

enum MetadataOption

Enabled access to AWS flavored metadata (IMDSv1)

  • METADATA_OPTION_UNSPECIFIED
  • ENABLED: Option is enabled
  • DISABLED: Option is disabled

gce_http_token

enum MetadataOption

Enabled access to IAM credentials with GCE flavored metadata

  • METADATA_OPTION_UNSPECIFIED
  • ENABLED: Option is enabled
  • DISABLED: Option is disabled

aws_v1_http_token

enum MetadataOption

Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)

  • METADATA_OPTION_UNSPECIFIED
  • ENABLED: Option is enabled
  • DISABLED: Option is disabled

AttachedDiskAttachedDisk

Field

Description

mode

enum Mode

Access mode to the Disk resource.

  • MODE_UNSPECIFIED
  • READ_ONLY: Read-only access.
  • READ_WRITE: Read/Write access.

device_name

string

Serial number that is reflected into the /dev/disk/by-id/ tree
of a Linux operating system running within the instance.

This value can be used to reference the device for mounting, resizing, and so on, from within the instance.

auto_delete

bool

Specifies whether the disk will be auto-deleted when the instance is deleted.

disk_id

string

ID of the disk that is attached to the instance.

AttachedLocalDiskAttachedLocalDisk

Field

Description

size

int64

Size of the disk, specified in bytes.

device_name

string

Serial number that is reflected into the /dev/disk/by-id/ tree
of a Linux operating system running within the instance.

This value can be used to reference the device for mounting, resizing, and so on, from within the instance.

AttachedFilesystemAttachedFilesystem

Field

Description

mode

enum Mode

Access mode to the filesystem.

  • MODE_UNSPECIFIED
  • READ_ONLY: Read-only access.
  • READ_WRITE: Read/Write access.

device_name

string

Name of the device representing the filesystem on the instance.

The name should be used for referencing the filesystem from within the instance
when it's being mounted, resized etc.

filesystem_id

string

ID of the filesystem that is attached to the instance.

NetworkInterfaceNetworkInterface

Field

Description

index

string

The index of the network interface, will be generated by the server, 0,1,2... etc if not specified.

mac_address

string

MAC address that is assigned to the network interface.

subnet_id

string

ID of the subnet.

primary_v4_address

PrimaryAddress

Primary IPv4 address that is assigned to the instance for this network interface.

primary_v6_address

PrimaryAddress

Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.

security_group_ids[]

string

ID's of security groups attached to the interface

PrimaryAddressPrimaryAddress

Field

Description

address

string

An IPv4 internal network address that is assigned to the instance for this network interface.

one_to_one_nat

OneToOneNat

One-to-one NAT configuration. If missing, NAT has not been set up.

dns_records[]

DnsRecord

Internal DNS configuration

OneToOneNatOneToOneNat

Field

Description

address

string

An external IP address associated with this instance.

ip_version

enum IpVersion

IP version for the external IP address.

  • IP_VERSION_UNSPECIFIED
  • IPV4: IPv4 address, for example 192.0.2.235.
  • IPV6: IPv6 address. Not available yet.

dns_records[]

DnsRecord

External DNS configuration

DnsRecordDnsRecord

Field

Description

fqdn

string

Name of the A/AAAA record as specified when creating the instance.
Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).

dns_zone_id

string

DNS zone id for the record (optional, if not set, some private zone is used).

ttl

int64

DNS record ttl (optional, if not set, a reasonable default is used.)

ptr

bool

When true, indicates there is a corresponding auto-created PTR DNS record.

SerialPortSettingsSerialPortSettings

Field

Description

ssh_authorization

enum SSHAuthorization

Authentication and authorization in serial console when using SSH protocol

  • SSH_AUTHORIZATION_UNSPECIFIED
  • INSTANCE_METADATA: Authentication and authorization using SSH keys in instance metadata
  • OS_LOGIN: Authentication and authorization using Oslogin service

GpuSettingsGpuSettings

Field

Description

gpu_cluster_id

string

Attach instance to specified GPU cluster.

SchedulingPolicySchedulingPolicy

Field

Description

preemptible

bool

True for short-lived compute instances. For more information, see Preemptible VMs.

NetworkSettingsNetworkSettings

Field

Description

type

enum Type

Network Type

  • TYPE_UNSPECIFIED
  • STANDARD: Standard network.
  • SOFTWARE_ACCELERATED: Software accelerated network.
  • HARDWARE_ACCELERATED: Hardware accelerated network (not available yet, reserved for future use).

PlacementPolicyPlacementPolicy

Field

Description

placement_group_id

string

Placement group ID.

host_affinity_rules[]

HostAffinityRule

List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.

placement_group_partition

int64

Placement group partition

HostAffinityRuleHostAffinityRule

Affinity definition

Field

Description

key

string

Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'

op

enum Operator

Include or exclude action

  • OPERATOR_UNSPECIFIED
  • IN
  • NOT_IN

values[]

string

Affinity value or host ID or host group ID

HardwareGenerationHardwareGeneration

A set of features, specific to a particular Compute hardware generation.
They are not necessary supported by every host OS or distro, thus they are fixed to an image
and are applied to all instances created with it as their boot disk image.
These features significantly determine how the instance is created, thus cannot be changed after the fact.

Field

Description

legacy_features

LegacyHardwareFeatures

Includes only one of the fields legacy_features, generation2_features.

generation2_features

Generation2HardwareFeatures

Includes only one of the fields legacy_features, generation2_features.

LegacyHardwareFeaturesLegacyHardwareFeatures

A first hardware generation, by default compatible with all legacy images.
Allows switching to PCI_TOPOLOGY_V2 and back.

Field

Description

pci_topology

enum PCITopology

  • PCI_TOPOLOGY_UNSPECIFIED
  • PCI_TOPOLOGY_V1
  • PCI_TOPOLOGY_V2

Generation2HardwareFeaturesGeneration2HardwareFeatures

A second hardware generation, which by default assumes PCI_TOPOLOGY_V2
and UEFI boot (with UEFI related features).

Field

Description

Empty

Was the article helpful?

Previous
Stop
Next
Restart
© 2025 Direct Cursus Technology L.L.C.