Resource: LogBucket
Describes a repository of logs.
JSON representation | |
---|---|
{
"name": string,
"description": string,
"createTime": string,
"updateTime": string,
"retentionDays": integer,
"locked": boolean,
"lifecycleState": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id" The supported locations are: For the location of |
description |
Describes this bucket. |
createTime |
Output only. The creation timestamp of the bucket. This is not set for any of the default buckets. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The last update timestamp of the bucket. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
retentionDays |
Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. |
locked |
Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty. |
lifecycleState |
Output only. The bucket lifecycle state. |
LifecycleState
LogBucket lifecycle states.
Enums | |
---|---|
LIFECYCLE_STATE_UNSPECIFIED |
Unspecified state. This is only used/useful for distinguishing unset values. |
ACTIVE |
The normal and active state. |
DELETE_REQUESTED |
The bucket has been marked for deletion by the user. |
Methods |
|
---|---|
|
Gets a bucket. |