logging.sinks.create

POST {{baseUrl}}/v2/:parent/sinks?uniqueWriterIdentity=<boolean>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

Request Params

KeyDatatypeRequiredDescription
uniqueWriterIdentitystringOptional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

Request Body

{"bigqueryOptions"=>{"usePartitionedTables"=>false, "usesTimestampColumnPartitioning"=>true}, "description"=>"<string>", "destination"=>"<string>", "disabled"=>"<boolean>", "exclusions"=>[{"createTime"=>"ut consequat dolore Lorem aliqua", "description"=>"<string>", "disabled"=>"<boolean>", "filter"=>"<string>", "name"=>"<string>", "updateTime"=>"qui sunt elit"}, {"createTime"=>"minim sit", "description"=>"<string>", "disabled"=>"<boolean>", "filter"=>"<string>", "name"=>"<string>", "updateTime"=>"nostrud fugiat"}], "filter"=>"<string>", "includeChildren"=>"<boolean>", "name"=>"<string>", "outputVersionFormat"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;bigqueryOptions&quot;:{&quot;usePartitionedTables&quot;:true,&quot;usesTimestampColumnPartitioning&quot;:false},&quot;createTime&quot;:&quot;reprehenderit esse&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;destination&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;exclusions&quot;:[{&quot;createTime&quot;:&quot;aute&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;amet&quot;},{&quot;createTime&quot;:&quot;ad ut&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;officia irure Excepteur exer&quot;}],&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;includeChildren&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;outputVersionFormat&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;fugiat culpa in&quot;,&quot;writerIdentity&quot;:&quot;ut ipsum Lorem ad&quot;}