| name | gcloud-cloudlocationfinder |
| description | Cloud Location Finder via gcloud (`gcloud cloudlocationfinder`). Manage Cloudlocationfinder resources — cloud-locations. |
gcloud cloudlocationfinder — Cloud Location Finder
Preview: Cloud Location Finder is in Preview and subject to the Pre-GA Offerings Terms. It is provided "as is" with potentially limited support, and its surface may change before GA.
Overview
Cloud Location Finder is a read-only discovery API that exposes a single repository of cloud locations across Google Cloud and Google Distributed Cloud, plus locations for Amazon Web Services, Microsoft Azure, and Oracle Cloud Infrastructure. Reach for it when you need to enumerate available locations, find Google Cloud regions or zones close to an existing workload in another cloud, filter locations by provider/type for placement decisions, or screen locations by attributes such as country (for compliance) or carbon data. All commands are read-only — there is no create/update/delete surface.
Quick reference — common workflows
1. Enable the API and grant access
gcloud services enable cloudlocationfinder.googleapis.com --project PROJECT_ID
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="user:USER@example.com" \
--role="roles/cloudlocationfinder.viewer"
2. List cloud locations
gcloud cloudlocationfinder cloud-locations list
gcloud cloudlocationfinder cloud-locations list --uri
3. Describe a specific location
gcloud cloudlocationfinder cloud-locations describe gcp-us-central1
gcloud cloudlocationfinder cloud-locations describe gcp-us-central1 \
--location=global
4. Filter the list by provider and location type
gcloud cloudlocationfinder cloud-locations list \
--filter="cloud_provider=CLOUD_PROVIDER_GCP AND cloud_location_type=CLOUD_LOCATION_TYPE_REGION"
gcloud cloudlocationfinder cloud-locations list \
--filter="cloud_provider=CLOUD_PROVIDER_AWS AND cloud_location_type=CLOUD_LOCATION_TYPE_ZONE"
5. Find locations near an existing workload in another cloud
gcloud cloudlocationfinder cloud-locations search \
--source-cloud-location=aws-us-east-1 \
--query=display_name="us-east4"
6. Paginate a large result set
gcloud cloudlocationfinder cloud-locations list \
--page-size=50 \
--limit=200
Command groups
| Group | Reference file | Commands | Description |
|---|
cloudlocationfinder cloud-locations | cloud-locations.md | 3 | manage Cloud Location resources |
See index.md for a one-line index of all 3 commands.
Common flags & tips
beta / alpha
There is no gcloud beta cloudlocationfinder surface. An alpha surface (gcloud alpha cloudlocationfinder) mirrors the same three commands (cloud-locations describe, list, search) and is where more advanced search/list query expressions tend to appear first. The underlying REST API also has a v1alpha version that adds an extraLocationTypes parameter to the location-list method. The whole product remains in Preview regardless of the CLI track.
Official documentation