Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
HTTP request
POST https://logging.googleapis.com/v2/{parent=folders/*}/exclusions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource in which to create the exclusion:
For examples:
Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains an instance of LogExclusion
.
Response body
If successful, the response body contains a newly created instance of LogExclusion
.
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.