Represents a TargetInstance resource. See Target Instances for more information.
For a list of methods for this resource, see the end of this page.
Resource representations
A TargetInstance resource. This resource defines an endpoint VM that terminates traffic of certain protocols.
{ "kind": "compute#targetInstance", "id": unsigned long, "creationTimestamp": string, "name": string, "description": string, "zone": string, "natPolicy": string, "instance": string, "selfLink": string }
Property name | Value | Description | Notes |
---|---|---|---|
creationTimestamp
|
string
|
[Output Only] Creation timestamp in RFC3339 text format. | |
description
|
string
|
An optional textual description of the resource; provided by the client when the resource is created. | |
id
|
unsigned long
|
[Output Only] Unique identifier for the resource, generated by the server. | |
instance
|
string
|
A fully-qualified URL to the virtual machine instance that handles traffic for this target instance. For example:
https://www.googleapis.com/compute/v1/projects/<project-id>/zones/us-central1-b/instances/<instance-name> |
|
kind
|
string
|
[Output Only]
Type of the resource. Always
compute#targetInstance
.
|
|
name
|
string
|
Name of the resource; provided by the client when the resource is created. The 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.
|
|
natPolicy
|
string
|
NAT option controlling how IPs are NAT'ed to the VM. Currently, only
NO_NAT
(the default value) is supported.
Acceptable values are:
|
|
selfLink
|
string
|
[Output Only] Server defined URL for the resource. | |
zone
|
string
|
The fully-qualified URL of the zone where the target instance resides. |
Methods
- aggregatedList
- Retrieves the list of target instances grouped by scope.
- delete
- Deletes the specified TargetInstance resource.
- get
- Returns the specified TargetInstance resource.
- insert
- Creates a TargetInstance resource in the specified project and zone using the data included in the request.
- list
- Retrieves the list of TargetInstance resources available to the specified project and zone.