Method: folders.exclusions.create

Creates a new exclusion 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 Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"

Examples: "projects/my-logging-project", "organizations/123456789".

Authorization requires the following Google IAM permission on the specified resource parent:

  • logging.exclusions.create

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.

Try it!

Var denne side nyttig? Giv os en anmeldelse af den:

Send feedback om...

Stackdriver Logging