Method: projects.locations.attachedClusters.list

列出指定 Google Cloud 專案和區域中的所有 AttachedCluster 資源。

HTTP 要求

GET https://{endpoint}/v1/{parent=projects/*/locations/*}/attachedClusters

其中 {endpoint}支援的服務端點之一。

這些網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

這是必要旗標,擁有這組 AttachedCluster 資源的父項位置。

地點名稱的格式為 projects/<project-id>/locations/<region>

如要進一步瞭解 Google Cloud Platform 資源名稱,請參閱「資源名稱」。

查詢參數

參數
pageSize

integer

傳回的項目數量上限。

如未指定,服務會使用預設值 50。無論 pageSize 值為何,回應都可能包含部分清單,呼叫端應只依據回應的 nextPageToken 判斷是否還有更多執行個體要查詢。

pageToken

string

先前的 attachedClusters.list 要求 (如有) 傳回的 nextPageToken 值。

要求主體

要求主體必須為空白。

回應主體

AttachedClusters.ListAttachedClusters 方法的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "attachedClusters": [
    {
      object (AttachedCluster)
    }
  ],
  "nextPageToken": string
}
欄位
attachedClusters[]

object (AttachedCluster)

指定 Google Cloud Platform 專案和區域中的 AttachedCluster 資源清單。

nextPageToken

string

用來擷取下一頁結果的符記;如果清單中沒有其他結果,這個欄位會留空。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱Authentication Overview

IAM 權限

需要 parent 資源的下列 IAM 權限:

  • gkemulticloud.attachedClusters.list

詳情請參閱 IAM 說明文件