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/edge_cache/services/invalidate_cache.yaml
- release_tracks: [ALPHA, GA]
  help_text:
    brief: Invalidate the cache for an EdgeCacheService resource.
    description: |
      Invalidate the cache entries associated with an EdgeCacheService
      resource.
    examples: |
      To invalidate content via a tag, or tags for a given host for
      an EdgeCacheService named 'my-service':

        $ {command} my-service --tags="status=404" --host="media.example.com"

      To invalidate all content under a specific path, specify an
      exact path, or a prefix. Prefixes are denoted with a trailing
      `*` character.

        $ {command} my-service --path="/static/*"

      You can optionally combine this with a status code. For example,
      to invalidate all cached HTTP 404s:

        $ {command} my-service --tags="status=404" --path="/static/*"

  request:
    collection: networkservices.projects.locations.edgeCacheServices
    ALPHA:
      api_version: v1alpha1
    GA:
      api_version: v1
    method: invalidateCache

  arguments:
    resource:
      help_text: The EdgeCacheService resource you want to invalidate
        the cache for.
      spec: !REF googlecloudsdk.command_lib.edge_cache.resources:edgeCacheService

    params:
    - group:
        required: true
        params:
        - _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.host
        - _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.path
        - _REF_: googlecloudsdk.command_lib.edge_cache.flags:invalidateCacheRequest.tags