v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134794214.4 KB
projects

Creates a log scope.

post/v2/{+parent}/logScopes

Path parameters

parentstring required

Required. The parent resource in which to create the log scope: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global"

Query parameters

logScopeIdstring

Required. A client-assigned identifier such as "log-scope". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.

Request body

namestring

Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope

resourceNamesstring[]

Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.

descriptionstring

Optional. Describes this log scope.The maximum length of the description is 8000 characters.

updateTimestring google-datetime

Output only. The last update timestamp of the log scope.

createTimestring google-datetime

Output only. The creation timestamp of the log scope.

Response

Successful response