- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Creates a log scope.
HTTP request
 POST https://logging.googleapis.com/v2/{parent=projects/*/locations/*}/logScopes 
The URL uses gRPC Transcoding syntax.
Path parameters
parent 
 string 
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" 
Authorization requires the following IAM 
permission on the specified resource parent 
:
-  logging.logScopes.create
Query parameters
| Parameters | |
|---|---|
| logScopeId |   Required. A client-assigned identifier such as  | 
Request body
The request body contains an instance of  LogScope 
 
.
Response body
If successful, the response body contains a newly created instance of  LogScope 
 
.
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 .

