Method: projects.locations.gatewaySecurityPolicies.rules.create

指定されたプロジェクトとロケーションで新しい GatewaySecurityPolicy を作成します。

HTTP リクエスト

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

この URL は gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
parent

string

必須。このルールを作成する親。形式: projects/{project}/location/{location}/gatewaySecurityPolicies/*

認可には、指定されたリソース parent に対する次の IAM の権限が必要です。

  • networksecurity.gatewaySecurityPolicyRules.create

クエリ パラメータ

パラメータ
gatewaySecurityPolicyRuleId

string

ルールに使用する ID。ルールのリソース名の最終的なコンポーネントになります。この値は 4~63 文字で、有効な文字は /[az][0-9]-/ です。

リクエストの本文

リクエストの本文には GatewaySecurityPolicyRule のインスタンスが含まれます。

レスポンスの本文

成功した場合、レスポンスの本文には、新しく作成された Operation のインスタンスが含まれます。

認可スコープ

次の OAuth スコープが必要です。

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

詳細については、認証の概要をご覧ください。