Method: instances.getGuestAttributes

Returns the specified guest attributes entry.

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/getGuestAttributes

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

zone

string

The name of the zone for this request.

resourceId

string

Name of the instance scoping this request.

Query parameters

Parameters
variableKey

string

Specifies the key for the guest attributes entry.

queryPath

string

Specifies the guest attributes path to be queried.

Request body

The request body must be empty.

Response body

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

A guest attributes entry.

JSON representation
{
  "variableKey": string,
  "variableValue": string,
  "queryPath": string,
  "queryValue": {
    "items": [
      {
        "namespace": string,