Reference documentation and code samples for the Stackdriver Logging V2 Client class CreateExclusionRequest.
The parameters toCreateExclusion.
Generated from protobuf messagegoogle.logging.v2.CreateExclusionRequest
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ 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]" For examples:"projects/my-logging-project""organizations/123456789"
Required. The new exclusion, whosenameparameter is an exclusion name that is not already used in the parent resource.
getParent
Required. The parent resource in which to create the exclusion:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
For examples:"projects/my-logging-project""organizations/123456789"
Returns
Type
Description
string
setParent
Required. The parent resource in which to create the exclusion:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"
For examples:"projects/my-logging-project""organizations/123456789"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getExclusion
Required. The new exclusion, whosenameparameter is an exclusion name
that is not already used in the parent resource.
[[["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-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class CreateExclusionRequest (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.CreateExclusionRequest)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.CreateExclusionRequest)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.CreateExclusionRequest)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.CreateExclusionRequest)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.CreateExclusionRequest)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.CreateExclusionRequest)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.CreateExclusionRequest)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.CreateExclusionRequest)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.CreateExclusionRequest)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.CreateExclusionRequest) \nReference documentation and code samples for the Stackdriver Logging V2 Client class CreateExclusionRequest.\n\nThe parameters to `CreateExclusion`.\n\nGenerated from protobuf message `google.logging.v2.CreateExclusionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent resource in which to create the exclusion:\n\"projects/\\[PROJECT_ID\\]\"\n\"organizations/\\[ORGANIZATION_ID\\]\"\n\"billingAccounts/\\[BILLING_ACCOUNT_ID\\]\"\n\"folders/\\[FOLDER_ID\\]\"\nFor examples:\n`\"projects/my-logging-project\"`\n`\"organizations/123456789\"`\n\n### setParent\n\nRequired. The parent resource in which to create the exclusion:\n\"projects/\\[PROJECT_ID\\]\"\n\"organizations/\\[ORGANIZATION_ID\\]\"\n\"billingAccounts/\\[BILLING_ACCOUNT_ID\\]\"\n\"folders/\\[FOLDER_ID\\]\"\nFor examples:\n`\"projects/my-logging-project\"`\n`\"organizations/123456789\"`\n\n### getExclusion\n\nRequired. The new exclusion, whose `name` parameter is an exclusion name\nthat is not already used in the parent resource.\n\n### hasExclusion\n\n### clearExclusion\n\n### setExclusion\n\nRequired. The new exclusion, whose `name` parameter is an exclusion name\nthat is not already used in the parent resource.\n\n### static::build"]]