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, orglobalfor 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
| Filter | Description | Value format | Note |
|---|---|---|---|
--filter | Filter by scope and service in one string. | scope,service | Quote values containing spaces. |
--filter-scope | Filter by scope. | Comma-separated scopes, such as asia-east1,global | Multiple values use OR matching. Case-insensitive. |
--filter-service | Filter by the service label. | Comma-separated service labels, currently Google Cloud | Multiple 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 Cloudmatches global Google Cloud ranges.asia-east1,matches every service inasia-east1.,Google Cloudmatches theGoogle Cloudservice 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.