File: //snap/google-cloud-cli/current/lib/surface/network_management/operations/list.yaml
- release_tracks: [GA, BETA]
help_text:
brief: |
List Network Management operations.
description: |
List all Network Management operations in the specified project.
You can specify the maximum number of operations to list using the
`--limit` flag.
examples: |
The following command lists a maximum of five operations:
$ {command} --limit=5
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_management.resources:project
help_text: |
Project of the operations to display.
request:
api_version: v1
collection: networkmanagement.projects.locations.global.operations
modify_request_hooks:
- googlecloudsdk.command_lib.network_management.util:UpdateOperationRequestNameVariable
output:
format: |
table(
name.basename():label=OPERATION_NAME,
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
)