TargetInstances: get

Requires authorization

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

Request

HTTP request

GET https://www.googleapis.com/compute/v1/projects/project/zones/zone/targetInstances/targetInstance

Parameters

Parameter name Value Description
Path parameters
project string Project ID for this request.
targetInstance string Name of the TargetInstance resource to return.
zone string Name of the zone scoping this request.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a TargetInstances resource in the response body.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Compute Engine