- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List all DNS Authorizations in a project.
    description: |
      List existing DNS Authorizations.
    examples: |
      To list existing DNS authorizations, run:

        $ {command}

  request:
    collection: certificatemanager.projects.locations.dnsAuthorizations
    api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: The location (defaults to '-') of the resources.
      spec: !REF googlecloudsdk.command_lib.certificate_manager.resources:allDefaultLocation

  output:
    format: |
      table(
        name.basename():label=NAME:sort=1,
        name.segment(3):label=LOCATION,
        domain:label=DOMAIN,
        dnsResourceRecord.name:label=DNS_RECORD,
        dnsResourceRecord.type:label=RECORD_TYPE,
        dnsResourceRecord.data:label=DNS_VALUE,
        type:label=TYPE
      )
