1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00

gcloud: Sat Jun 14 05:31:37 UTC 2025

This commit is contained in:
Automated 2025-06-14 05:31:37 +00:00
parent 1799759190
commit fa40c10f6a
712 changed files with 17386 additions and 4918 deletions

View file

@ -1,17 +1,17 @@
NAME
gcloud alpha logging logs delete - delete all entries from a log in the
_Default log bucket
global _Default log bucket
SYNOPSIS
gcloud alpha logging logs delete LOG_NAME [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Delete all entries from a log in the _Default log bucket. With no
entries, the log will not appear in the list of your project's logs.
However, you can write new entries to the log.
(ALPHA) Delete all entries from a log in the global _Default log bucket.
With no entries, the log will not appear in the list of your project's
logs. However, you can write new entries to the log.
EXAMPLES
To delete all entries from log 'my-log' in the _Default log bucket:
To delete all entries from log 'my-log' in the global _Default log bucket:
$ gcloud alpha logging logs delete my-log

View file

@ -16,7 +16,8 @@ COMMANDS
COMMAND is one of the following:
delete
(ALPHA) Delete all entries from a log in the _Default log bucket.
(ALPHA) Delete all entries from a log in the global _Default log
bucket.
list
(ALPHA) List your project's logs.

View file

@ -10,15 +10,37 @@ SYNOPSIS
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Return a list of long running operation details in given LOCATION.
The operations were scheduled by other gcloud commands. For example: a
copy_log_entries operation scheduled by command: gcloud alpha logging
operations copy BUCKET_ID DESTINATION --location=LOCATION. Note: while
listing the operations, the request_type must be specified in filter.
Example: --operation-filter=request_type=CopyLogEntries, Supported
operation types are: CopyLogEntries, CreateBucket and UpdateBucket. Other
supported filter expression are: operation_start_time,
operation_finish_time and operation_state.
(ALPHA) Return a list of long running operations in the given LOCATION. The
operations were scheduled by other gcloud commands.
For example, a CopyLogEntries operation may be scheduled by the command:
gcloud logging copy BUCKET_ID DESTINATION --location=LOCATION.
The --operation-filter flag is required and must specify the request_type.
Supported request types include but are not limited to: CopyLogEntries,
CreateBucket and UpdateBucket.
Additional supported filter expressions include: operation_start_time,
operation_finish_time and operation_state. These can be combined with the
case-sensitive keyword AND between them.
For operation_start_time and operation_end_time, the operators >=, >, <=,
and < are supported.
Timestamps must be in either RFC3339 or ISO8601 formats. If the timestamp
contains a time value, then it must be quoted. For examples:
"YYYY-MM-DDTHH:MM:SSZ", "YYYY-MM-DDTHH:MM:SS.mmmZ", "YY-MM-DD",
"YYYY-MM-DDTHH:MM:SS-0000", "YYYY-MM-DDTHH:MM+0000", "YYYY-MM-DD",
YYYY-MM-DD, YY-MM-DD, etc.
The operation_state filter expression can be used to filter for operations
that are in a specific state. The value can be one of the following:
SCHEDULED, WAITING_FOR_PRECONDITIONS, RUNNING, SUCCESS, FAILURE, CANCELLED,
PENDING.
For operation_state, the operators = and != are supported.
Other filter options are not supported.
EXAMPLES
To list CopyLogEntries operations, run:
@ -39,17 +61,17 @@ EXAMPLES
--operation-filter='request_type=CopyLogEntries AND
operation_finish_time<="2023-11-20T00:00:00Z"'
To list CopyLogEntries operations that have a specified state, run:
To list CopyLogEntries operations that completed successfully, run:
$ gcloud alpha logging operations list --location=LOCATION \
--operation-filter='request_type=CopyLogEntries AND
operation_state=STATE'
operation_state=SUCCESS'
To list CopyLogEntries operations that don't have a specified state, run:
To list CopyLogEntries operations that have not failed, run:
$ gcloud alpha logging operations list --location=LOCATION \
--operation-filter='request_type=CopyLogEntries AND
operation_state!=STATE'
operation_state!=FAILURE'
REQUIRED FLAGS
--location=LOCATION