- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates a sink. This method replaces the values of the destination
and filter
fields of the existing sink with the corresponding values from the new sink.
The updated sink might also have a new writerIdentity
; see the uniqueWriterIdentity
field.
HTTP request
PATCH https://logging.googleapis.com/v2/{sinkName=folders/*/sinks/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
sink |
Required. The full resource name of the sink to update, including the parent resource and the sink identifier:
For example:
Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
unique |
Optional. See
|
custom |
Optional. The service account provided by the caller that will be used to write the log entries. The format must be |
update |
Optional. Field mask that specifies the fields in An empty
At some point in the future, behavior will be removed and specifying an empty For a detailed For example: This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of LogSink
.
Response body
If successful, the response body contains an instance of LogSink
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/logging.admin
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.