---
title: "POST /v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributes"
method: POST
path: "/v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributes"
tags: ["projects"]
---

# POST /v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributes

`POST /v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributes`

## Request

- Base URL: `https://tpu.googleapis.com`
- URL: `https://tpu.googleapis.com/v2/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributes`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Retrieves the guest attributes for the node.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `nodesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GetGuestAttributesRequest: Request for GetGuestAttributes.
  - `queryPath` string: The guest attributes path to be queried.
  - `workerIds` string[]: The 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned.

## Response `200`

Successful response

- GetGuestAttributesResponse: Response for GetGuestAttributes.
  - `guestAttributes` GuestAttributes[]: The guest attributes for the TPU workers.
    - `queryPath` string: The path to be queried. This can be the default namespace ('/') or a nested namespace ('/\/') or a specified key ('/\/\')
    - `queryValue` GuestAttributesValue: Array of guest attribute namespace/key/value tuples.
      - `items` GuestAttributesEntry[]: The list of guest attributes entries.
        - `key` string: Key for the guest attribute entry.
        - `namespace` string: Namespace for the guest attribute entry.
        - `value` string: Value for the guest attribute entry.

---

[API](https://skmtc.dev/google/apis/tpu.md) - [All operations](https://skmtc.dev/google/apis/tpu/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/tpu/revisions/ebe9b0673ab2?raw)
