File: //snap/google-cloud-cli/394/lib/surface/looker/operations/list.yaml
- help_text:
brief: |
List Looker operations.
description: |
List all Looker operations under the specified project and region.
To specify the maximum number of operations to list, use the --limit flag.
examples: |
To list up to five operations, run:
$ {command} --limit=5
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.looker.resources:region
help_text: |
The region of the operations to display.
request:
ALPHA:
api_version: v1alpha2
GA:
api_version: v1
collection: looker.projects.locations.operations
response:
id_field: name
output:
format: |
table(
name.basename():label=OPERATION_NAME,
name.segment(3):label=REGION,
metadata.verb:label=TYPE,
metadata.target.basename(),
done,
metadata.createTime.date():sort=1,
duration(start=metadata.createTime,end=metadata.endTime,precision=0,calendar=false).slice(2:).join("").yesno(no="<1S"):label=DURATION
)