REST Resource: projects.locations.gatewaySecurityPolicies.rules

資源:GatewaySecurityPolicyRule

GatewaySecurityPolicyRule 資源位於 GatewaySecurityPolicy 中的巢狀集合中,代表流量比對條件和要執行的相關動作。

JSON 表示法
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "enabled": boolean,
  "priority": integer,
  "description": string,
  "sessionMatcher": string,
  "applicationMatcher": string,
  "tlsInspectionEnabled": boolean,

  // Union field profile can be only one of the following:
  "basicProfile": enum (BasicProfile)
  // End of list of possible types for union field profile.
}
欄位
name

string

這是必要旗標,不可變動。資源名稱。ame 是完整的資源名稱,因此 projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/{rule} 規則應符合下列模式:(^a-z?$)。

createTime

string (Timestamp format)

僅供輸出。建立規則的時間。

採用 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位,最多九個小數位數。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

updateTime

string (Timestamp format)

僅供輸出。更新規則的時間。

採用 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位,最多九個小數位數。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

enabled

boolean

這是必要旗標,是否強制執行規則。

priority

integer

這是必要旗標,規則的優先順序。數字越小,優先順序越高。

description

string

(非必要) 資源的自由文字說明。

sessionMatcher

string

這是必要旗標,用於比對工作階段條件的 CEL 運算式。

applicationMatcher

string

(非必要) 用於比對 L7/應用程式層級條件的 CEL 運算式。

tlsInspectionEnabled

boolean

(非必要) 標記,可啟用 TLS 檢查功能,以便在 上比對流量。只有在父項 GatewaySecurityPolicy 參照 TLSInspectionConfig 時,此值才能設為 true。

聯集欄位 profile

profile 只能是下列其中一項:

basicProfile

enum (BasicProfile)

這是必要旗標,說明原始動作應為何的設定檔。

BasicProfile

定義原始動作的列舉。

列舉
BASIC_PROFILE_UNSPECIFIED 如果目標沒有提及動作。
ALLOW 允許相符的流量。
DENY 拒絕比對到的流量。

方法

create

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

delete

刪除單一 GatewaySecurityPolicyRule。

get

取得單一 GatewaySecurityPolicyRule 的詳細資料。

list

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

patch

更新單一 GatewaySecurityPolicyRule 的參數。