Instance

A set of methods for managing Instance resources.

JSON Representation

 {
  "id": "string",
  "folderId": "string",
  "createdAt": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "zoneId": "string",
  "platformId": "string",
  "resources": {
    "memory": "string",
    "cores": "string",
    "coreFraction": "string"
  },
  "status": "string",
  "metadata": "object",
  "bootDisk": {
    "mode": "string",
    "deviceName": "string",
    "autoDelete": true,
    "diskId": "string"
  },
  "secondaryDisks": [
    {
      "mode": "string",
      "deviceName": "string",
      "autoDelete": true,
      "diskId": "string"
    }
  ],
  "networkInterfaces": [
    {
      "index": "string",
      "macAddress": "string",
      "subnetId": "string",
      "primaryV4Address": {
        "address": "string",
        "oneToOneNat": {
          "address": "string",
          "ipVersion": "string"
        }
      },
      "primaryV6Address": {
        "address": "string",
        "oneToOneNat": {
          "address": "string",
          "ipVersion": "string"
        }
      }
    }
  ],
  "fqdn": "string",
  "schedulingPolicy": {
    "preemptible": true
  }
}

Methods

Method Description
attachDisk Attaches the disk to the instance.
create Creates an instance in the specified folder. Method starts an asynchronous operation that can be cancelled while it is in progress.
delete Deletes the specified instance.
detachDisk Detaches the disk from the instance.
get Returns the specified Instance resource.
getSerialPortOutput Returns the serial port output of the specified Instance resource.
list Retrieves the list of Instance resources in the specified folder.
listOperations Lists operations for the specified instance.
restart Restarts the running instance.
start Starts the stopped instance.
stop Stops the running instance.
update Updates the specified instance.
updateMetadata Updates the metadata of the specified instance.