Shape the future of software operations and make your voice heard by taking the 2021 State of DevOps survey.

Method: locations.buckets.create

Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource in which to create the bucket:


Example: "projects/my-logging-project/locations/global"

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

  • logging.buckets.create

Query parameters



Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

Request body

The request body contains an instance of LogBucket.

Response body

If successful, the response body contains a newly created instance of LogBucket.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.