HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/artifacts/attachments/list.yaml
- release_tracks: [GA]

  help_text:
    brief: |
      List Artifact Registry attachments.
    description: |
      List all Artifact Registry attachments in the specified repository and project.

      To specify the maximum number of attachments to list, use the `--limit` flag.
    examples: |
      The following command lists a maximum of five attachments:

          $ {command} --limit=5

      The following command lists attachments with target `projects/my-project/locations/us/repositories/my-repo/packages/my-package/versions/sha256:123`:

          $ {command} --target=projects/my-project/locations/us/repositories/my-repo/packages/my-package/versions/sha256:123

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.artifacts.resources:repository
      help_text: |
        Parent repository for the list of attachments.
    params:
    - arg_name: target
      help_text: |
        Target for the list of attachments.
    - arg_name: attachment-type
      hidden: true
      help_text: |
        Type for the list of attachments.

  request: &request
    api_version: v1
    collection: artifactregistry.projects.locations.repositories.attachments
    modify_request_hooks:
    - googlecloudsdk.command_lib.artifacts.util:AddTargetForAttachments
    - googlecloudsdk.command_lib.artifacts.util:AddTypeForAttachments