本頁面說明如何查看可用地區和區域清單,以及如何取得有關特定地區的資訊。
如要進一步瞭解地區和區域,請參閱地區和區域說明文件。
如要進一步瞭解全球、區域和地區 Compute Engine 資源,請參閱全球、區域和地區資源說明文件。
事前準備
-
如果尚未設定驗證,請先完成設定。
「驗證」是指驗證身分的程序,確認您有權存取 Trusted Cloud by S3NS 服務和 API。如要從本機開發環境執行程式碼或範例,請選取下列任一選項,向 Compute Engine 進行驗證:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Trusted Cloud console to access Trusted Cloud by S3NS services and APIs, you don't need to set up authentication.
gcloud
-
安裝 Google Cloud CLI,然後 使用同盟身分登入 gcloud CLI。 登入後,執行下列指令初始化 Google Cloud CLI:
gcloud init
- Set a default region and zone.
REST
如要在本機開發環境中使用本頁的 REST API 範例,請使用您提供給 gcloud CLI 的憑證。
安裝 Google Cloud CLI,然後 使用同盟身分登入 gcloud CLI。 登入後,執行下列指令初始化 Google Cloud CLI:
gcloud init
詳情請參閱 Trusted Cloud 驗證說明文件中的「Authenticate for using REST」。
必要的角色
如要取得查看可用區域和地帶所需的權限,請要求管理員授予您專案的 Compute Viewer (
roles/compute.viewer
) 身分與存取權管理角色。如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和機構的存取權」。查看可用區域清單
主控台
在 Trusted Cloud 控制台的「Zones」(區域) 頁面中查看區域清單。
gcloud
使用 Google Cloud CLI 執行
gcloud compute zones list
指令:gcloud compute zones list
REST
對
zones.list
方法發出GET
要求,即可取得專案的區域清單。將PROJECT_ID
改成您的PROJECT_ID。https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones
查看 GPU 區域清單
如要查看支援 GPU 的區域清單,請使用 gcloud CLI 或 REST。
gcloud
依 GPU 類型搜尋
如要依 GPU 類型搜尋,請使用
gcloud compute accelerator-types list
指令搭配--filter
標記,找出可用的區域。舉例來說,如要找出所有具有 H100 GPU 的區域,請執行下列指令:
gcloud compute accelerator-types list --filter="nvidia-h100-80gb" gcloud compute accelerator-types list --filter="nvidia-h100-mega-80gb"
輸出內容會傳回依區域分類的可用 GPU 清單。接著,您可以使用
gcloud compute accelerator-types describe
指令取得傳回的每個 GPU 型號說明。依機器類型搜尋
A3、A2 或 G2加速器最佳化機型會自動將 GPU 連接至 VM。如要瞭解這些機器類型的可用區域,請使用
gcloud compute machine-types list
指令搭配--filter
旗標。舉例來說,如要找出所有提供 A3 High 機型的區域,請執行下列指令:gcloud compute machine-types list --filter="name=a3-highgpu-8g"
REST
依 GPU 類型搜尋
如要查看特定 GPU 型號的可用區域,請使用
--filter
參數,向acceleratorTypes.aggregatedList
方法發出GET
要求。舉例來說,如要找出所有配備 H100 GPU 的區域,請執行下列查詢:
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/aggregated/acceleratorTypes?filter=name=nvidia-h100-80gb
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/aggregated/acceleratorTypes?filter=name=nvidia-h100-mega-80gb
依機器類型搜尋
A3、A2 或 G2加速器最佳化機型會自動將 GPU 連接至 VM。如要使用這些機器類型,可以搭配
--filter
參數使用machineTypes.aggregatedList
方法,找出可用的區域。舉例來說,如要找出所有提供 A3 High 機型的區域,請執行下列指令:
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/aggregated/machineTypes?filter=name=a3-higgpu-8
並將
PROJECT_ID
替換為專案 ID。輸出內容會傳回可用 GPU 的清單,以及各 GPU 型號的說明 (按區域分類)。
查看可用地區清單
主控台
在 Trusted Cloud 控制台的「Zones」(區域) 頁面中查看地區清單。
gcloud
使用 Google Cloud CLI 執行
gcloud compute regions list
指令:gcloud compute regions list
這項指令會列出所有可用區域,並提供配額和區域狀態等資訊。
例如:
gcloud compute regions list NAME CPUS DISKS_GB ADDRESSES RESERVED_ADDRESSES STATUS asia-east1 0/24 0/10240 0/23 0/7 UP asia-northeast1 0/24 0/10240 0/23 0/7 UP asia-southeast1 0/24 0/10240 0/23 0/7 UP europe-west1 0/24 0/10240 2/23 0/7 UP us-central1 0/24 0/10240 0/23 0/7 UP us-east1 0/24 0/10240 0/23 0/7 UP us-west1 0/24 0/10240 0/23 0/7 UP
REST
對
regions.list
方法發出GET
要求,取得區域清單。將PROJECT_ID
改成您的PROJECT_ID。https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions
查看地區資訊
主控台
您可以在 Trusted Cloud 控制台的「Zones」(區域) 頁面上查看有關地區的資訊。
gcloud
如要取得有關單一地區的資訊,請執行
gcloud compute regions describe
指令,其中REGION
是您想要取得更多相關資訊的地區名稱:gcloud compute regions describe REGION
畫面會顯示類似以下的回應:
creationTimestamp: '2013-09-06T17:54:12.193-07:00' description: us-central1 id: '5778272079688511892' kind: compute#region name: us-central1 quotas: - limit: 24.0 metric: CPUS usage: 5.0 - limit: 5120.0 metric: DISKS_TOTAL_GB usage: 650.0 - limit: 7.0 metric: STATIC_ADDRESSES usage: 4.0 - limit: 23.0 metric: IN_USE_ADDRESSES usage: 5.0 - limit: 1024.0 metric: SSD_TOTAL_GB usage: 0.0 selfLink: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/regions/us-central1 status: UP zones: - https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-a - https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-c - https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/us-central1-f
REST
對
regions.get
方法發出GET
要求,即可取得區域相關資訊。請將PROJECT_ID
替換為您的 PROJECT_ID,並將REGION
替換為您要取得更多資訊的區域。https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION
後續步驟
- 進一步瞭解地區和區域
- 瞭解如何變更預設地區或區域
- 進一步瞭解全域、區域和可用區資源
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-19 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-19 (世界標準時間)。"],[[["\u003cp\u003eThis guide provides instructions on how to view lists of available regions and zones within Google Cloud, using the Google Cloud console, gcloud CLI, and REST API methods.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the gcloud CLI and REST API to search for zones that support specific GPU types or accelerator-optimized machine types, utilizing commands such as \u003ccode\u003egcloud compute accelerator-types list\u003c/code\u003e and \u003ccode\u003eacceleratorTypes.aggregatedList\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe gcloud CLI \u003ccode\u003egcloud compute regions list\u003c/code\u003e command and the REST API's \u003ccode\u003eregions.list\u003c/code\u003e method allow users to see a list of available regions, including details like quotas and status.\u003c/p\u003e\n"],["\u003cp\u003eThe gcloud CLI \u003ccode\u003egcloud compute regions describe\u003c/code\u003e command, and the REST API \u003ccode\u003eregions.get\u003c/code\u003e method, can be used to retrieve detailed information about a particular region, including its quotas, status, and associated zones.\u003c/p\u003e\n"],["\u003cp\u003eBefore viewing available regions and zones, you must authenticate using the gcloud CLI or by visiting the Google Cloud console, ensuring you have the required Compute Viewer IAM role (\u003ccode\u003eroles/compute.viewer\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,[]] -