---
title: "POST /projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"
method: POST
path: "/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"
tags: ["targetVpnGateways"]
---

# POST /projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels

`POST /projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels`

Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling
Resources documentation.

## Path parameters

- `project` string, required
- `region` string, required
- `resource` string, required

## Query parameters

- `requestId` string

## Request body

- RegionSetLabelsRequest
  - `labels` object — The labels to set for this resource.
  - `labelFingerprint` string, byte — The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/compute.md) · [All operations](https://skmtc.net/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/compute/versions/6120ed8969d4/schema)
