Method: targetInstances.get

Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.

HTTP request

GET https://compute.googleapis.com/compute/beta/projects/{project}/zones/{zone}/targetInstances/{resourceId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

zone

string

Name of the zone scoping this request.

resourceId

string

Name of the TargetInstance resource to return.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Represents a Target Instance resource.

You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances.

JSON representation
{
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "zone": string,
  "natPolicy": enum,
  "instance": string,
  "selfLink": string,
  "network": string,
  "kind": string
}
Fields
id

string (uint64 format)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

creationTimestamp

string

[Output Only] Creation timestamp in