Get
|
|||||
|
|
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- View and manage your Google Compute Engine resources
- View your Google Compute Engine resources
Input
This building block consumes 3 input parameters
Name | Format | Description |
---|---|---|
project Required |
STRING |
Project ID for this request |
zone Required |
STRING |
Name of the zone scoping this request |
targetInstance Required |
STRING |
Name of the TargetInstance resource to return |
= Parameter name
= Format
project STRING Required Project ID for this request |
zone STRING Required Name of the zone scoping this request |
targetInstance STRING Required Name of the TargetInstance resource to return |
Output
This building block provides 9 output parameters
Name | Format | Description |
---|---|---|
creationTimestamp |
STRING |
[Output Only] Creation timestamp in RFC3339 text format |
description |
STRING |
An optional description of this resource. Provide this property when you create the resource |
id |
INTEGER |
[Output Only] The unique identifier for the resource. This identifier is defined by the server |
instance |
STRING |
A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs:
|
kind |
STRING |
[Output Only] The type of the resource. Always compute#targetInstance for target instances |
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 |
natPolicy |
ENUMERATION |
NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported |
selfLink |
STRING |
[Output Only] Server-defined URL for the resource |
zone |
STRING |
[Output Only] URL of the zone where the target 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 |
= Parameter name
= Format
creationTimestamp STRING [Output Only] Creation timestamp in RFC3339 text format |
description STRING An optional description of this resource. Provide this property when you create the resource |
id INTEGER [Output Only] The unique identifier for the resource. This identifier is defined by the server |
instance STRING A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs:
|
kind STRING [Output Only] The type of the resource. Always compute#targetInstance for target instances |
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 |
natPolicy ENUMERATION NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported |
selfLink STRING [Output Only] Server-defined URL for the resource |
zone STRING [Output Only] URL of the zone where the target 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 |