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
PUT https://logging.googleapis.com/v2/{sinkName=organizations/*/sinks/*}
Authorization requires the following IAM permission on the specified resource sinkName:
logging.sinks.update
Query parameters
Parameters
uniqueWriterIdentity
boolean
Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writerIdentity in the updated sink depends on both the old and new values of this field:
If the old and new values of this field are both false or both true, then there is no change to the sink's writerIdentity.
If the old value is false and the new value is true, then writerIdentity is changed to a service agent owned by Cloud Logging.
It is an error if the old value is true and the new value is set to false or defaulted to false.
customWriterIdentity
string
Optional. The service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified when you are routing logs to a log bucket that is in a different project than the sink. When not specified, a Logging service account will automatically be generated.
Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.
An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:
destination,filter,includeChildren
At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-09 UTC."],[],[]]