File: //snap/google-cloud-cli/current/lib/surface/active_directory/operations/list.yaml
- release_tracks: [GA, BETA, ALPHA]
help_text:
brief: |
List Managed Microsoft AD operations.
description: |
List all Managed Microsoft AD 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.active_directory.resources:project
help_text: |
Region of the operations to display.
request: &request
api_version: v1
collection: managedidentities.projects.locations.global.operations
modify_request_hooks:
- googlecloudsdk.command_lib.active_directory.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
)