- Resource: Instance
- Status
- InstanceParams
- DisplayDevice
- ShieldedInstanceIntegrityPolicy
- ResourceStatus
- Scheduling
- UpcomingMaintenance
- MaintenanceType
- MaintenanceStatus
- Methods
Resource: Instance
Represents an Instance resource.
An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances.
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "tags": { object ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for instances. |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creation |
[Output Only] Creation timestamp in RFC3339 text format. |
name |
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
tags |
Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. |
machine |
Full or partial URL of the machine type resource to use for this instance, in the format:
. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type:
To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB):
For example:
For a full list of restrictions, read the Specifications for custom machine types. |
status |
[Output Only] The status of the instance. One of the following values:
,
,
,
,
,
,
, and
. For more information about the status of the instance, see Instance life cycle. |
status |
[Output Only] An optional, human-readable explanation of the status. |
zone |
[Output Only] URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
can |
Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. |
network |
An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. |
disks[] |
Array of disks associated with this instance. Persistent disks must be created before you can assign them. |
metadata |
The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. |
service |
A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. |
self |
[Output Only] Server-defined URL for this resource. |
scheduling |
Sets the scheduling options for this instance. |
cpu |
[Output Only] The CPU platform used by this instance. |
labels |
Labels to apply to this instance. These can be later modified by the
method. |
params |
Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. |
label |
A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make
request to the instance. A base64-encoded string. |
instance |
Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation. |
min |
Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
or
. |
guest |
A list of the type and count of accelerator cards attached to the instance. |
start |
[Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. |
deletion |
Whether the resource should be protected against deletion. |
resource |
Resource policies applied to this instance. |
source |
Source machine image |
reservation |
Specifies the reservations that this instance can consume from. |
hostname |
Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. |
display |
Enables display device for the instance. |
shielded |
|
shielded |
|
source |
Source machine image encryption key when creating an instance from a machine image. |
confidential |
|
fingerprint |
Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make
request to the instance. A base64-encoded string. |
private |
The private IPv6 google access type for the VM. If not specified, use
as default. |
advanced |
Controls for advanced machine-related behavior features. |
last |
[Output Only] Last start timestamp in RFC3339 text format. |
last |
[Output Only] Last stop timestamp in RFC3339 text format. |
last |
[Output Only] Last suspended timestamp in RFC3339 text format. |
satisfies |
[Output Only] Reserved for future use. |
satisfies |
[Output Only] Reserved for future use. |
resource |
[Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field. |
network |
|
key |
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. |
Status
Enums | |
---|---|
PROVISIONING |
Resources are being allocated for the instance. |
STAGING |
All required resources have been allocated and the instance is being started. |
RUNNING |
The instance is running. |
STOPPING |
The instance is currently stopping (either being deleted or killed). |
STOPPED |
The instance has stopped successfully. |
TERMINATED |
The instance has stopped (either by explicit action or underlying failure). |
SUSPENDING |
The instance is suspending. |
SUSPENDED |
The instance has suspended. |
REPAIRING |
The instance is in repair. |
DEPROVISIONING |
The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc. |
InstanceParams
Additional instance params.
JSON representation |
---|
{ "resourceManagerTags": { string: string, ... } } |
Fields | |
---|---|
resource |
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format |
DisplayDevice
A set of Display Device options
JSON representation |
---|
{ "enableDisplay": boolean } |
Fields | |
---|---|
enable |
Defines whether the instance has Display enabled. |
ShieldedInstanceIntegrityPolicy
The policy describes the baseline against which Instance boot integrity is measured.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
update |
Updates the integrity policy baseline using the measurements from the VM instance's most recent boot. |
ResourceStatus
Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.
JSON representation |
---|
{ "scheduling": { object ( |
Fields | |
---|---|
scheduling |
|
upcoming |
|
physical |
[Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. |
Scheduling
JSON representation |
---|
{ "availabilityDomain": integer } |
Fields | |
---|---|
availability |
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. |
UpcomingMaintenance
Upcoming Maintenance notification information.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Defines the type of maintenance. |
can |
Indicates if the maintenance can be customer triggered. |
window |
The current start time of the maintenance window. This timestamp value is in RFC3339 text format. |
window |
The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format. |
latest |
The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format. |
maintenance |
|
MaintenanceType
Enums | |
---|---|
UNKNOWN_TYPE |
No type specified. Do not use this value. |
SCHEDULED |
Scheduled maintenance (e.g. maintenance after uptime guarantee is complete). |
UNSCHEDULED |
Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee). |
MaintenanceStatus
Enums | |
---|---|
UNKNOWN |
Unknown maintenance status. Do not use this value. |
PENDING |
There is pending maintenance. |
ONGOING |
There is ongoing maintenance on this VM. |
Methods |
|
---|---|
|
The method compute.v1.InstancesService.AddAccessConfig is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.AddResourcePolicies is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.AggregatedList is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.AttachDisk is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.BulkInsert is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Delete is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.DeleteAccessConfig is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.DetachDisk is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Get is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetEffectiveFirewalls is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetGuestAttributes is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetScreenshot is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetSerialPortOutput is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.GetShieldedInstanceIdentity is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Insert is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.List is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.ListReferrers is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.PerformMaintenance is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.RemoveResourcePolicies is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Reset is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Resume is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SendDiagnosticInterrupt is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetDeletionProtection is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetDiskAutoDelete is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetLabels is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetMachineResources is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetMachineType is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetMetadata is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetMinCpuPlatform is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetName is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetScheduling is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetSecurityPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetServiceAccount is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetShieldedInstanceIntegrityPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SetTags is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.SimulateMaintenanceEvent is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Start is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.StartWithEncryptionKey is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Stop is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Suspend is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.TestPermissions is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.Update is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.UpdateAccessConfig is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.UpdateDisplayDevice is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.UpdateNetworkInterface is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.InstancesService.UpdateShieldedInstanceConfig is not available in this (s3nsapis.fr) universe. |