鑑別過濾器 (authFilter)
指定選擇規則來代表一些條件,以用來比對 HTTP 要求標頭,判斷是否選取該 HTTP 要求進行鑑別。
| 屬性名稱 | 資料類型 | 預設值 | 說明 |
|---|---|---|---|
| id | 字串 | 唯一的配置 ID。 |
- host
說明: 唯一的配置 ID。必要: false資料類型: 屬性名稱 資料類型 預設值 說明 id 字串 唯一的配置 ID。 matchType - equals
- contains
- notContain
contains 指定相符類型。 - equals
- 等於
- contains
- 包含
- notContain
- 不包含
name 字串 指定名稱。
- remoteAddress
說明: 唯一的配置 ID。必要: false資料類型: 屬性名稱 資料類型 預設值 說明 id 字串 唯一的配置 ID。 ip 字串 指定 IP 位址。 matchType - lessThan
- equals
- greaterThan
- contains
- notContain
contains 指定相符類型。 - lessThan
- 小於
- equals
- 等於
- greaterThan
- 大於
- contains
- 包含
- notContain
- 不包含
- requestUrl
說明: 唯一的配置 ID。必要: false資料類型: 屬性名稱 資料類型 預設值 說明 id 字串 唯一的配置 ID。 matchType - equals
- contains
- notContain
contains 指定相符類型。 - equals
- 等於
- contains
- 包含
- notContain
- 不包含
urlPattern 字串 指定 URL 型樣。
參照主題