google_api_compute v0.11.0 GoogleApi.Compute.V1.Model.Instance View Source
Represents an Instance resource.
An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, read Virtual Machine Instances. (== resource_for {$api_version}.instances ==)
Attributes
canIpForward
(type:boolean()
, default:nil
) - 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.cpuPlatform
(type:String.t
, default:nil
) - [Output Only] The CPU platform used by this instance.creationTimestamp
(type:String.t
, default:nil
) - [Output Only] Creation timestamp in RFC3339 text format.deletionProtection
(type:boolean()
, default:nil
) - Whether the resource should be protected against deletion.description
(type:String.t
, default:nil
) - An optional description of this resource. Provide this property when you create the resource.disks
(type:list(GoogleApi.Compute.V1.Model.AttachedDisk.t)
, default:nil
) - Array of disks associated with this instance. Persistent disks must be created before you can assign them.displayDevice
(type:GoogleApi.Compute.V1.Model.DisplayDevice.t
, default:nil
) - Enables display device for the instance.guestAccelerators
(type:list(GoogleApi.Compute.V1.Model.AcceleratorConfig.t)
, default:nil
) - A list of the type and count of accelerator cards attached to the instance.hostname
(type:String.t
, default:nil
) - 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.id
(type:String.t
, default:nil
) - [Output Only] The unique identifier for the resource. This identifier is defined by the server.kind
(type:String.t
, default:compute#instance
) - [Output Only] Type of the resource. Always compute#instance for instances.labelFingerprint
(type:String.t
, default:nil
) - 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 get() request to the instance.
labels
(type:map()
, default:nil
) - Labels to apply to this instance. These can be later modified by the setLabels method.machineType
(type:String.t
, default:nil
) - Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. 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: zones/us-central1-f/machineTypes/n1-standard-1To 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): zones/zone/machineTypes/custom-CPUS-MEMORY
For example: zones/us-central1-f/machineTypes/custom-4-5120
For a full list of restrictions, read the Specifications for custom machine types.
metadata
(type:GoogleApi.Compute.V1.Model.Metadata.t
, default:nil
) - The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.minCpuPlatform
(type:String.t
, default:nil
) - Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".name
(type:String.t
, default:nil
) - 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[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.networkInterfaces
(type:list(GoogleApi.Compute.V1.Model.NetworkInterface.t)
, default:nil
) - 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.reservationAffinity
(type:GoogleApi.Compute.V1.Model.ReservationAffinity.t
, default:nil
) - Specifies the reservations that this instance can consume from.scheduling
(type:GoogleApi.Compute.V1.Model.Scheduling.t
, default:nil
) - Sets the scheduling options for this instance.selfLink
(type:String.t
, default:nil
) - [Output Only] Server-defined URL for this resource.serviceAccounts
(type:list(GoogleApi.Compute.V1.Model.ServiceAccount.t)
, default:nil
) - 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.
shieldedInstanceConfig
(type:GoogleApi.Compute.V1.Model.ShieldedInstanceConfig.t
, default:nil
) -shieldedInstanceIntegrityPolicy
(type:GoogleApi.Compute.V1.Model.ShieldedInstanceIntegrityPolicy.t
, default:nil
) -startRestricted
(type:boolean()
, default:nil
) - [Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity.status
(type:String.t
, default:nil
) - [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED.statusMessage
(type:String.t
, default:nil
) - [Output Only] An optional, human-readable explanation of the status.tags
(type:GoogleApi.Compute.V1.Model.Tags.t
, default:nil
) - 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.zone
(type:String.t
, default:nil
) - [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.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
t()
View Sourcet() :: %GoogleApi.Compute.V1.Model.Instance{ canIpForward: boolean(), cpuPlatform: String.t(), creationTimestamp: String.t(), deletionProtection: boolean(), description: String.t(), disks: [GoogleApi.Compute.V1.Model.AttachedDisk.t()], displayDevice: GoogleApi.Compute.V1.Model.DisplayDevice.t(), guestAccelerators: [GoogleApi.Compute.V1.Model.AcceleratorConfig.t()], hostname: String.t(), id: String.t(), kind: String.t(), labelFingerprint: String.t(), labels: map(), machineType: String.t(), metadata: GoogleApi.Compute.V1.Model.Metadata.t(), minCpuPlatform: String.t(), name: String.t(), networkInterfaces: [GoogleApi.Compute.V1.Model.NetworkInterface.t()], reservationAffinity: GoogleApi.Compute.V1.Model.ReservationAffinity.t(), scheduling: GoogleApi.Compute.V1.Model.Scheduling.t(), selfLink: String.t(), serviceAccounts: [GoogleApi.Compute.V1.Model.ServiceAccount.t()], shieldedInstanceConfig: GoogleApi.Compute.V1.Model.ShieldedInstanceConfig.t(), shieldedInstanceIntegrityPolicy: GoogleApi.Compute.V1.Model.ShieldedInstanceIntegrityPolicy.t(), startRestricted: boolean(), status: String.t(), statusMessage: String.t(), tags: GoogleApi.Compute.V1.Model.Tags.t(), zone: String.t() }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.