- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
profiles.patch updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.
Direct use of this API is discouraged, please use a supported profiler agent instead for profile collection.
HTTP request
PATCH https://cloudprofiler.googleapis.com/v2/{profile.name=projects/*/profiles/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
profile.name
|
Output only. Opaque, server-assigned, unique ID for this profile. It takes the form |
Query parameters
| Parameters | |
|---|---|
updateMask
|
Field mask used to specify the fields to be overwritten. Currently only profileBytes and labels fields are supported by profiles.patch, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of Profile
.
Response body
If successful, the response body contains an instance of Profile
.
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/monitoring -
https://www.googleapis.com/auth/monitoring.write -
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .

