本頁說明如何在 Distributed Cloud 區域中管理 Google Distributed Cloud 互連資源。
這項功能僅適用於 Distributed Cloud Rack。 Distributed Cloud Server 不支援互連資源。
如要進一步瞭解 Distributed Cloud 互連,請參閱「Distributed Cloud 運作方式」。
列出互連網路
如要列出 Distributed Cloud 區域中的 Distributed Cloud 互連,請完成本節中的步驟。
如要完成這項工作,您必須在專案中具備邊緣網路檢視者角色 (roles/edgenetwork.viewer)。 Google Cloud
gcloud
使用 gcloud edge-cloud networking interconnects list 指令:
gcloud edge-cloud networking interconnects list \
--location=REGION \
--zone=ZONE_NAME
更改下列內容:
REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。
API
對 projects.locations.zones.interconnects.list 方法發出 GET 要求:
GET /v1/projects/PROJECT_ID/locations/REGION/zones/ZONE_NAME/interconnects?filter=FILTER&pageSize=PAGE_SIZE&orderBy=SORT_BY&pageToken=PAGE_TOKEN
更改下列內容:
PROJECT_ID:目標 Google Cloud 專案的 ID。REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。FILTER:限制傳回結果為特定值的運算式。PAGE_SIZE:每頁要傳回的結果數。SORT_BY:以半形逗號分隔的欄位名稱清單,做為傳回結果的排序依據。預設排序順序為遞增;如要遞減排序,請在所需欄位前面加上~。PAGE_TOKEN:在回應的nextPageToken欄位中,對最後一個清單要求的回應中收到的權杖。傳送這個符記即可接收結果頁面。
取得互連網路的相關資訊
如要取得 Distributed Cloud 可用區中 Distributed Cloud 互連網路的相關資訊,請完成本節中的步驟。
如要完成這項工作,您必須在專案中具備邊緣網路檢視者角色 (roles/edgenetwork.viewer)。 Google Cloud
gcloud
使用 gcloud edge-cloud networking interconnects describe 指令:
gcloud edge-cloud networking interconnects describe INTERCONNECT_NAME \
--location=REGION \
--zone=ZONE_NAME
更改下列內容:
INTERCONNECT_NAME:目標互連的名稱。REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。
API
對 projects.locations.zones.interconnects.get 方法發出 GET 要求:
GET /v1/projects/PROJECT_ID/locations/REGION/zones/ZONE_NAME/interconnects/INTERCONNECT_ID
更改下列內容:
PROJECT_ID:目標 Google Cloud 專案的 ID。REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。INTERCONNECT_ID:目標互連的 ID。
取得互連的運作狀態
如要取得 Distributed Cloud 區域中 Distributed Cloud 互連的運作狀態,請完成本節中的步驟。
如要完成這項工作,您必須在專案中具備邊緣網路檢視者角色 (roles/edgenetwork.viewer)。 Google Cloud
gcloud
使用 gcloud edge-cloud networking interconnects get-diagnostics 指令:
gcloud edge-cloud networking interconnects get-diagnostics INTERCONNECT_NAME \
--location=REGION \
--zone=ZONE_NAME
更改下列內容:
INTERCONNECT_NAME:目標互連的名稱。REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。
API
對 projects.locations.zones.interconnects.diagnose 方法發出 GET 要求:
GET /v1/projects/PROJECT_ID/locations/REGION/zones/ZONE_NAME/interconnects/INTERCONNECT_ID:diagnose
更改下列內容:
PROJECT_ID:目標 Google Cloud 專案的 ID。REGION:目標 Distributed Cloud 區域所屬的 Google Cloud 區域。ZONE_NAME:目標 Distributed Cloud 可用區的名稱。INTERCONNECT_ID:目標互連的 ID。