Method: projects.locations.gatewaySecurityPolicies.rules.list

列出指定專案和位置中的 GatewaySecurityPolicyRule。

HTTP 要求

GET https://networksecurity.googleapis.com/v1beta1/{parent=projects/*/locations/*/gatewaySecurityPolicies/*}/rules

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

路徑參數

參數
parent

string

這是必要旗標,應列 GatewaySecurityPolicyRules 的專案、位置和 GatewaySecurityPolicy,格式為 projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}

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

  • networksecurity.gatewaySecurityPolicyRules.list

查詢參數

參數
pageSize

integer

每個呼叫可傳回的 GatewaySecurityPolicyRules 數量上限。

pageToken

string

上一個「ListGatewaySecurityPolicyRulesResponse」傳回的值,表示這是先前「rules.list」呼叫的後續動作,系統應傳回下一頁的資料。

要求主體

要求主體必須為空白。

回應主體

rules.list 方法傳回的回應。

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

JSON 表示法
{
  "gatewaySecurityPolicyRules": [
    {
      object (GatewaySecurityPolicyRule)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
欄位
gatewaySecurityPolicyRules[]

object (GatewaySecurityPolicyRule)

GatewaySecurityPolicyRule 資源清單。

nextPageToken

string

如果結果數量可能超過此回應中顯示的結果數量,就會加入「nextPageToken」。如要取得下一組結果,請再次呼叫此方法,並將「nextPageToken」的值設為「pageToken」。

unreachable[]

string

無法抵達的位置。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱驗證總覽一文。