# TargetAttribute

- [JSON representation](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/TargetAttribute#SCHEMA_REPRESENTATION)

Contains criteria for selecting Targets. This could be used to select targets for a Deploy Policy or for an Automation.

| JSON representation |
|---|
| ``` { "id": string, "labels": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `id` | `string` Optional. ID of the `Target`. The value of this field could be one of the following: - The last segment of a target name - "\*", all targets in a location |
| `labels` | `map (key: string, value: string)` Target labels. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |