Skip to main content

Google Cloud

The cipr gcp command retrieves Google Cloud external IP ranges. With mini verbosity, each result contains the CIDR, scope, and service label.

CLI command
cipr gcp --ipv4 --filter-scope asia-east1 --verbose-mode mini
Output
34.80.0.0/15,asia-east1,Google Cloud

Data Format
CIDR | Google Cloud Scope | Google Cloud Service
  • Scope is a Google Cloud region name such as asia-east1, or global for non-regional ranges.
  • Service is currently Google Cloud. It is a feed label, not a product or API name.

With full verbosity, the same fields are labeled:

Full output example
IP Prefix: 8.228.224.0/20, Scope: global, Service: Google Cloud

Filter values

FilterDescriptionValue formatNote
--filterFilter by scope and service in one string.scope,serviceQuote values containing spaces.
--filter-scopeFilter by scope.Comma-separated scopes, such as asia-east1,globalMultiple values use OR matching. Case-insensitive.
--filter-serviceFilter by the service label.Comma-separated service labels, currently Google CloudMultiple values use OR matching. Case-insensitive.

Separate individual filter flags use AND matching. The composite --filter remains limited to one value per field.

Combined-filter examples:

  • global,Google Cloud matches global Google Cloud ranges.
  • asia-east1, matches every service in asia-east1.
  • ,Google Cloud matches the Google Cloud service in every scope.

Use quotes when passing the combined service value:

cipr gcp --filter 'global,Google Cloud'

Run cipr gcp --list scopes or cipr gcp --list services to print the selectable values from the current feed.