lb action
lb action komutu, trafiğe uygulanacak aksiyonları yönetir: başlık ekleme ve değiştirme, yönlendirme, engelleme, içerik gösterme, oran ve bant genişliği sınırlama, günlükleme ve daha fazlası. Panel karşılığı Actions bölümüdür.
Aksiyon tek başına çalışmaz: bir vService'e bağlanır ve orada bir koşulla eşleştirilerek uygulanır.
İlk yazılan alan type'tır
Bu komutta önce tür seçilir, kaydın adı ondan sonra istenir. Tür yazılmadan name alanı listelenmez.
Komut Özeti
Yazım Sırası
lb action add type add_headerOtuz yedi tür vardır; Tab tümünü listeler. Tür seçildikten sonra yalnız o türün alanları istenir.
name istemci-ip-eklelb service update id <vService> --rules.0 <aksiyon>Zorunlu Alanlar
| Sıra | Alan | Durum | Değer |
|---|---|---|---|
| 1 | type | Zorunlu | Aksiyon türü; 37 değerden biri |
| 2 | name | Zorunlu | Aksiyonun adı |
| 3 | mirrorBackend | Koşullu zorunlu | Yalnız mirror; kopyanın gönderileceği arka uç |
| 3 · 4 | headerNameToAdd · headerContent | Koşullu zorunlu | Yalnız add_header; başlık adı ve içeriği |
| 3–5 | headerNameToEdit · headerContent · headerNameToDelete | Koşullu zorunlu | Yalnız set_header |
| 3–5 | headerNameToReplace · headerReplaceRegex · headerReplaceContent | Koşullu zorunlu | Yalnız replace_header |
| 3 | trafficInspectionTag | Koşullu zorunlu | Yalnız advancedTrafficInspection |
| 3 | matcher | Koşullu zorunlu | Yalnız modifyResponse |
| 3 | manualRuleContent | Koşullu zorunlu | Yalnız manualRule |
| 3 | redirectLoc | Koşullu zorunlu | req_redirect_location · error_redirect_at_tm · error_redirect_at_res; yönlendirme adresi |
| 3 | newPath | Koşullu zorunlu | set_path · set_pathq; yeni yol |
| 3 | cookieName | Koşullu zorunlu | Yalnız cookie_based |
Aksiyon türü bu komutta bir ayırıcıdır: tabloda yer alan alanların hepsi satırda -- ile başlayan alan olsa bile öneksiz yazılır ve CLI türe özel zorunlu alanlar tamamlanmadan -- ile başlayan hiçbir alanı kabul etmez. Listede olmayan türlerde ek zorunlu alan yoktur.
Aksiyon Türleri
Aşağıdaki tablo türlerin haritasıdır: komut değeri, paneldeki karşılığı ve addan sonra istenen ek zorunlu alanlar. Her türün alanlarının tamamı bu tablonun altındaki bölümlerde verilmiştir.
type | Panel karşılığı | Ek zorunlu alanlar |
|---|---|---|
add_header | Add HTTP Header | headerNameToAdd · headerContent |
set_header | Set HTTP Header | headerNameToEdit · headerContent · headerNameToDelete |
replace_header | Replace HTTP Header Content | headerNameToReplace · headerReplaceRegex · headerReplaceContent |
del_header | Delete HTTP Header | — |
headerFix | HTTP Header 1.0 Compatibility | — |
keepHeaderNames | Keep Header Names | — |
securityHeaders | Manage HTTP Security Headers | — |
cors | CORS | — |
cookie_based | Cookie Based Connection Persistency | cookieName |
cookieSecurity | HTTP Cookie Security | — |
cookieEncryption | Cookie Encryption | — |
set_path | Set Path | newPath |
set_pathq | Set Path + Query | newPath |
normalize_uri | URL Normalization | — |
req_redirect_location | Location Redirection | redirectLoc |
redirect_scheme | Redirect to HTTPS | — |
error_redirect_at_tm | Redirect for Traffic Manager Errors | redirectLoc |
error_redirect_at_res | Redirect for Backend Service Errors | redirectLoc |
showContent | Show Content | — |
error_file_at_tm | Show Content for Traffic Manager Errors | — |
error_file_at_res | Show Content for Backend Service Errors | — |
deny | Block | — |
quarantine_table | Quarantine | — |
advancedCaptcha | Advanced CAPTCHA | — |
req_auth | User Authentication on HTTP Request | — |
bandwidthRule | Bandwidth Limitation | — |
tcp_conn_mgmt | TCP Connection Management | — |
http-reuse | HTTP/TCP Multiplexing | — |
mirror | Traffic Mirroring | mirrorBackend |
set_variable | Create Traffic Variable | — |
advancedTrafficInspection | Advanced Traffic Inspection | trafficInspectionTag |
modifyResponse | Modify Response Content | matcher |
manualRule | Manual Action | manualRuleContent |
silentLog | Conditional Silent Log | — |
ipMask | IP Log Masking | — |
ipFix | IPFIX Log Sending | — |
prometheusService | Provide Prometheus Service | — |
Birçok Türde Tekrarlanan Alanlar
Aşağıdaki beş alan tek bir türe değil, birçok türe aittir. Anlamları her türde aynıdır; hangi türde bulundukları tür bölümlerindeki tablolarda görünür.
| Alan | Panel etiketi | Değer |
|---|---|---|
--cond | Action condition | Aksiyonun uygulanacağı koşul; lb condition kayıtlarından kurulur |
--ruleLoc | Execution level | atRequest · atResponse, varsayılan atRequest |
--rulePro | Rule protocol | http · tcp, varsayılan http |
--countHits | Hit counter | true · false, varsayılan false |
--setVarOnHit | Set variable on hit | Aksiyon uygulandığında yazılacak trafik değişkeni |
Türe Özel Alanlar
Her tür kendi alanlarıyla listelenmiştir. Zorunlu alanlar eğik çizgisiz, isteğe bağlı alanlar -- önekiyle yazılır; satırda -- ile başlayan bir alan varsa zorunlu alanlar da -- alır. Panel etiketi sütunu, aynı alanın arayüzdeki karşılığıdır.
Başlık Aksiyonları
add_header — Add HTTP Header
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
headerNameToAdd | Zorunlu | Header to add | Metin |
headerContent | Zorunlu | Header content | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
set_header — Set HTTP Header
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
headerNameToEdit | Zorunlu | Header to edit | Metin |
headerContent | Zorunlu | Header content | Metin |
headerNameToDelete | Zorunlu | Header to delete | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
replace_header — Replace HTTP Header Content
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
headerNameToReplace | Zorunlu | Header to replace | Metin |
headerReplaceRegex | Zorunlu | Regex to match | Metin |
headerReplaceContent | Zorunlu | Replacement content | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--headerReplaceType | İsteğe bağlı | Match type | replace-header · replace-value, varsayılan replace-header |
del_header — Delete HTTP Header
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
headerFix — HTTP Header 1.0 Compatibility
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--headerFixContent | İsteğe bağlı | Headers to fix | Metin, varsayılan Accept Accept-Auth Accept-Encoding Ac… |
keepHeaderNames — Keep Header Names
Türe özel alanı yoktur; tür ve ad yeterlidir.
securityHeaders — Manage HTTP Security Headers
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--securityHeaderOptions.N | İsteğe bağlı | Response headers | 8 seçenek (contentSecurityPolicy · strictTransportSecurity · xFrameOptions …) |
cors — CORS
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--corsAllowedMethods | İsteğe bağlı | Allowed methods | Metin, varsayılan * |
--corsAllowedOrigins | İsteğe bağlı | Allowed origins | Metin, varsayılan * |
--corsAllowedHeaders | İsteğe bağlı | Allowed headers | Metin, varsayılan * |
Çerez Aksiyonları
cookie_based — Cookie Based Connection Persistency
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
cookieName | Zorunlu | Cookie name | Metin |
--cookieAction | İsteğe bağlı | Cookie action | Listeden seçilir, varsayılan insert |
--cookieHttpOnly | İsteğe bağlı | Mark as only HTTP | true · false, varsayılan false |
--cookieSecure | İsteğe bağlı | Mark as secure | true · false, varsayılan false |
--cookieDomain | İsteğe bağlı | Cookie domain | — |
--cookieIndirect | İsteğe bağlı | Create indirectly | true · false, varsayılan true |
--cookieNoCache | İsteğe bağlı | No cache | true · false, varsayılan true |
--cookiePostOnly | İsteğe bağlı | Mark as post only | true · false, varsayılan false |
--cookiePreserve | İsteğe bağlı | Preserve cookie | true · false, varsayılan false |
--cookieDynamic | İsteğe bağlı | Cookie is dynamic | true · false, varsayılan true |
--cookieMaxIdle.val | İsteğe bağlı | Max. idle time Value | Sayı (en az 0) |
--cookieMaxIdle.unit | İsteğe bağlı | Max. idle time unit | Listeden seçilir, varsayılan ms |
--cookieMaxLife.val | İsteğe bağlı | Max. life time Value | Sayı (en az 0) |
--cookieMaxLife.unit | İsteğe bağlı | Max. life time unit | Listeden seçilir, varsayılan ms |
--cookieAttr | İsteğe bağlı | Cookie attribute | Metin |
cookieSecurity — HTTP Cookie Security
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cookieSecurityOptions.N | İsteğe bağlı | Cookie security options | Listeden birden çok seçilir |
cookieEncryption — Cookie Encryption
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cookiesToEncrypt.N | İsteğe bağlı | — | Metin |
Yol ve Yönlendirme Aksiyonları
set_path — Set Path
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
newPath | Zorunlu | New path info | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
set_pathq — Set Path + Query
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
newPath | Zorunlu | New path info | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
normalize_uri — URL Normalization
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--normalizationOptions.N | İsteğe bağlı | Normalization | Listeden birden çok seçilir, varsayılan ['percent-decode-unreserved'] |
req_redirect_location — Location Redirection
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
redirectLoc | Zorunlu | Redirect location | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--redirectCode | İsteğe bağlı | Redirect code | 9 seçenek (300 · 301 · 302 …), varsayılan 300 |
redirect_scheme — Redirect to HTTPS
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--redirectSchemeCode | İsteğe bağlı | Redirect scheme code | 9 seçenek (300 · 301 · 302 …), varsayılan 300 |
error_redirect_at_tm — Redirect for Traffic Manager Errors
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
redirectLoc | Zorunlu | Redirect location | Metin |
--errorCodes | İsteğe bağlı | Error codes | 67 seçenek (400 · 401 · 402 …), varsayılan 400 |
error_redirect_at_res — Redirect for Backend Service Errors
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
redirectLoc | Zorunlu | Redirect location | Metin |
--errorCodes | İsteğe bağlı | Error codes | 67 seçenek (400 · 401 · 402 …), varsayılan 400 |
İçerik Gösterme Aksiyonları
showContent — Show Content
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--contentProfile | İsteğe bağlı | Content page | Listeden seçilir, varsayılan builtin_denied_en |
--statusCode | İsteğe bağlı | Status code | 84 seçenek (200 · 201 · 202 …), varsayılan 200 |
error_file_at_tm — Show Content for Traffic Manager Errors
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--contentProfile | İsteğe bağlı | Content page | Listeden seçilir, varsayılan builtin_denied_en |
--statusCode | İsteğe bağlı | Status code | 84 seçenek (200 · 201 · 202 …), varsayılan 200 |
--errorCodes | İsteğe bağlı | Error codes | 67 seçenek (400 · 401 · 402 …), varsayılan 400 |
error_file_at_res — Show Content for Backend Service Errors
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--contentProfile | İsteğe bağlı | Content page | Listeden seçilir, varsayılan builtin_denied_en |
--statusCode | İsteğe bağlı | Status code | 84 seçenek (200 · 201 · 202 …), varsayılan 200 |
--errorCodes | İsteğe bağlı | Error codes | 67 seçenek (400 · 401 · 402 …), varsayılan 400 |
Engelleme ve Doğrulama Aksiyonları
deny — Block
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--denyType | İsteğe bağlı | Deny type | Listeden seçilir, varsayılan deny |
--denyStatusCode | İsteğe bağlı | Deny status code | 84 seçenek (200 · 201 · 202 …), varsayılan 403 |
quarantine_table — Quarantine
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--rulePro | İsteğe bağlı | Rule protocol | http · tcp, varsayılan http |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
advancedCaptcha — Advanced CAPTCHA
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--captchaType | İsteğe bağlı | Captcha Type | text · math · invisible, varsayılan text |
--captchaDifficulty | İsteğe bağlı | Difficulty | 1 · 2 · 3 · 4 · 5, varsayılan 3 |
--captchaLanguage | İsteğe bağlı | — | en · tr |
--captchaTitle | İsteğe bağlı | Tab Title | Metin |
--captchaTheme | İsteğe bağlı | Theme | auto · light · dark, varsayılan auto |
--captchaVerifiedTtl.val | İsteğe bağlı | Verification Duration Value | Sayı (en az 0), varsayılan 24 |
--captchaVerifiedTtl.unit | İsteğe bağlı | Verification Duration unit | Listeden seçilir, varsayılan h |
--captchaSize | İsteğe bağlı | Size | small · medium · large, varsayılan medium |
--captchaBgColor | İsteğe bağlı | Background Color | Metin |
--captchaTextColor | İsteğe bağlı | Text Color | Metin |
Tamamlama listesinde görünen ama etkinleşmeyen alanlar
Aşağıdaki beş alan Tab listesinde görünür; koşulları type alanının captchaRule değerine bağlıdır ve bu değer aksiyon türü kümesinde bulunmadığından alanlar hiçbir türde etkinleşmez.
| Alan | Ne yapar | Arkasına ne yazılır |
|---|---|---|
--captchaTimes | Doğrulamanın kaç kez isteneceğini belirleyen alandır | Bu sürümde etkinleşmez |
--blacklistTimeout.val · --blacklistTimeout.unit | Kara listeye alınan kaynağın ne kadar süre listede kalacağını belirleyen alanlardır | Bu sürümde etkinleşmez |
--whitelistTimeout.val · --whitelistTimeout.unit | Beyaz listeye alınan kaynağın ne kadar süre listede kalacağını belirleyen alanlardır | Bu sürümde etkinleşmez |
req_auth — User Authentication on HTTP Request
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--realm | İsteğe bağlı | Realm | Metin, varsayılan Restricted |
Trafik Yönetimi Aksiyonları
bandwidthRule — Bandwidth Limitation
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--downloadLimit | İsteğe bağlı | Download limit | Sayı (en az 1, en çok 33554432) |
--uploadLimit | İsteğe bağlı | Upload limit | Sayı (en az 1, en çok 33554432) |
--bwLimitType | İsteğe bağlı | Limit type | dynamic · stream, varsayılan static |
--bandwidthKeys.N | Koşullu | Bandwidth group keys | --bwLimitType dynamic yazıldığında açılır; grubu belirleyen değişkenler |
tcp_conn_mgmt — TCP Connection Management
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--tcpAction | İsteğe bağlı | Action | Listeden seçilir, varsayılan reject |
http-reuse — HTTP/TCP Multiplexing
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--connectionMode | İsteğe bağlı | Connection mode | keep-alive · server-close · close, varsayılan keep-alive |
--reuseCode | İsteğe bağlı | Connection share strategy | never · safe · aggressive · always, varsayılan never |
mirror — Traffic Mirroring
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
mirrorBackend | Zorunlu | Mirror target service | Listeden seçilir |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--mirrorSampling | İsteğe bağlı | Sampling | true · false, varsayılan false |
--mirrorMaxBody | İsteğe bağlı | Maximum body size (KB) | Sayı (en az 1, en çok 32768), varsayılan 256 |
--mirrorTimeout.val | İsteğe bağlı | Shadow response timeout Value | Sayı (en az 0), varsayılan 2 |
--mirrorTimeout.unit | İsteğe bağlı | Shadow response timeout unit | Listeden seçilir, varsayılan s |
--mirrorMaxInflight | İsteğe bağlı | Concurrent copy limit | Sayı (en az 1, en çok 65535), varsayılan 500 |
--mirrorAddXff | İsteğe bağlı | Add X-Forwarded-For header | true · false, varsayılan false |
--mirrorScrubHeaders.N | İsteğe bağlı | — | Metin |
--mirrorSample | Koşullu | Sampling percentage | --mirrorSampling true yazıldığında açılır; 0 ile 100 arasında, varsayılan 10 |
--mirrorSampleKey | Koşullu | Sampling key | --mirrorSampling true yazıldığında açılır; örneklemenin hangi anahtara göre yapılacağı |
İnceleme, Değişken ve Günlük Aksiyonları
set_variable — Create Traffic Variable
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--rulePro | İsteğe bağlı | Rule protocol | http · tcp, varsayılan http |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--varEntries.N.name | İsteğe bağlı | Variable name | — |
--varEntries.N.value | İsteğe bağlı | Variable value | Metin |
advancedTrafficInspection — Advanced Traffic Inspection
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
trafficInspectionTag | Zorunlu | Traffic tag | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--rulePro | İsteğe bağlı | Rule protocol | http · tcp, varsayılan http |
--trafficKeys.N | İsteğe bağlı | Field to track | Metin |
--trafficPeriod.val | İsteğe bağlı | Tracking period Value | Sayı (en az 0), varsayılan 1 |
--trafficPeriod.unit | İsteğe bağlı | Tracking period unit | Listeden seçilir, varsayılan s |
--trafficTableSize | İsteğe bağlı | Max. table size | Sayı (en az 5, en çok 1000000), varsayılan 10000 |
modifyResponse — Modify Response Content
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
matcher | Zorunlu | Mask query | Metin |
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--modifyType | İsteğe bağlı | Modify type | mask · htmlTag · replace, varsayılan mask; seçilen değer alt alanları açar |
--matcherType | İsteğe bağlı | Query type | plain · regex, varsayılan plain |
--omittedCharacters | Koşullu | Omitted characters | --modifyType mask iken açılır; maskelenmeyecek karakterler |
--maskChar | Koşullu | Masking character | --modifyType mask iken açılır; varsayılan * |
--maskOffset | Koşullu | Masking tolerance | --modifyType mask iken açılır; sayı (en az 0), varsayılan 1 |
--maskFrom | Koşullu | Min. occurrences for masking | --modifyType mask iken açılır; sayı (en az 1), varsayılan 1 |
--tagName | Koşullu | HTML tag | --modifyType htmlTag iken açılır: html · head · body · title |
--tagModifyType | Koşullu | Tag modify type | --modifyType htmlTag iken açılır: append · prepend |
--htmlContent | Koşullu | HTML content to add | --modifyType htmlTag iken açılır; eklenecek HTML içeriği |
replacement | Koşullu zorunlu | New content | --modifyType replace iken zorunlu olur; yerine yazılacak içerik |
--matcherCaseSensitive | Koşullu | Case sensitive | --modifyType mask ya da replace ve --matcherType regex iken açılır |
manualRule — Manual Action
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
manualRuleContent | Zorunlu | Manual rule content | Metin |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--manualRuleTarget | İsteğe bağlı | Manual rule field | global · defaults · frontend · defaultBackend · dynamicBackends, varsayılan global |
--manualRulePriority | İsteğe bağlı | Manual rule priority | Sayı |
silentLog — Conditional Silent Log
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--ruleLoc | İsteğe bağlı | Execution level | atRequest · atResponse, varsayılan atRequest |
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
ipMask — IP Log Masking
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--countHits | İsteğe bağlı | Hit counter | true · false, varsayılan false |
--setVarOnHit | İsteğe bağlı | Set variable on hit | Metin |
--ipMaskCidr | İsteğe bağlı | Masking(subnet) | Sayı (en az 0, en çok 128), varsayılan 24 |
ipFix — IPFIX Log Sending
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--ipFixIpPort.ip | İsteğe bağlı | — | Ip |
--ipFixIpPort.port | İsteğe bağlı | — | Port |
--ipFixType | İsteğe bağlı | Send type | enterprise · standard, varsayılan enterprise |
prometheusService — Provide Prometheus Service
| Alan | Durum | Panel etiketi | Değer |
|---|---|---|---|
--cond | İsteğe bağlı | Action condition | Koşul ifadesi |
--metricAddress | İsteğe bağlı | Metric address | Metin, varsayılan /metrics |
Örnekler
Güncelleme ve Silme
Bilinmesi Gerekenler
- Aksiyon vService'e bağlanmadan çalışmaz. Bağlama
lb service update id <vService> --rules.N <aksiyon>ile yapılır ve yalnız HTTP ile TCP türündeki vService'lerde geçerlidir. - Koşulla eşleştirilebilir. Aksiyonun hangi trafikte uygulanacağı
lb conditionkayıtlarıyla belirlenir. - Tür sonradan değiştirilebilir. Güncellemede tür değiştirildiğinde yeni türün zorunlu alanlarının da verilmesi gerekir.
- Süre alanları iki parçadır. Zaman aşımı ve süre alanları
--alan.valve--alan.unitbiçiminde yazılır. - Alan listesi türle birlikte açılır. Tür yazıldıktan sonra
--ile Tab, yalnız o türün alanlarını listeler; satır sonuna?konduğunda alanların açıklamalı tablosu gelir.
