Method: projects.locations.gatewaySecurityPolicies.rules.create

在指定的專案和位置中建立新的 GatewaySecurityPolicy。

HTTP 要求

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

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

路徑參數

參數
parent

string

這是必要旗標,要建立這項規則的父項。格式:projects/{project}/location/{location}/gatewaySecurityPolicies/*

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

  • networksecurity.gatewaySecurityPolicyRules.create

查詢參數

參數
gatewaySecurityPolicyRuleId

string

用於規則的 ID,這會成為規則資源名稱的最終元件。這個值的長度應為 4 至 63 個字元,有效字元為 /[a-z][0-9]-/。

要求主體

要求主體包含 GatewaySecurityPolicyRule 的執行個體。

回應主體

如果成功,回應主體會包含新建立的 Operation 執行個體。

授權範圍

需要下列 OAuth 範圍:

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

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