日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

UpdateIstioGatewayRoutes - 更新網關路由

調用UpdateIstioGatewayRoutes更新網關路由。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

當前API暫無授權信息透出。

請求參數

名稱類型必填描述示例值
ServiceMeshIdstring

服務網格實例 ID。

c08ba3fd1e6484b0f8cc1ad8fe10d****
IstioGatewayNamestring

ASM 網關名稱。

ingressgateway
GatewayRouteobject

網關路由信息。

RouteNamestring

路由名稱。

reviews-v2-routes
RouteTypestring

路由類型,取值:HTTPTLSTCP

HTTP
MatchRequestobject

路由匹配規(guī)則。

URIobject

URI 匹配規(guī)則。

MatchingModestring

路由規(guī)則匹配模式。取值:

  • exact:精準匹配。

  • prefix:前綴匹配。

  • regex:正則匹配。

prefix
MatchingContentstring

用于匹配的內容。

/ratings/v2/
Headersobject []

用于判斷是否匹配的請求頭部列表。

Namestring

Header 匹配的鍵。

x-request-id
MatchingModestring

Header 值匹配方式,取值:

  • exact:精準匹配。

  • prefix:前綴匹配。

  • regex:正則匹配。

exact
MatchingContentstring

用于 Header 匹配的內容。

v1
TLSMatchAttributesobject []

TLS 連接匹配屬性列表。

TLSPortinteger

TLS 端口。

443
SNIHostsarray

服務器名稱標識列表。

string

SNI 值中可以使用通配符前綴,例如*.com將匹配foo.example.comexample.com

說明 SNI 值必須是相應虛擬服務主機的子集。
*.com
Portsarray

端口列表。

integer

指定主機上要尋址的端口.。

443
RouteDestinationsobject []

L4 路由規(guī)則加權目的地列表。

Destinationobject

Destination 唯一標識請求或連接應轉發(fā)到的服務實例。

Hoststring

服務注冊表中服務的名稱。

reviews
Subsetstring

服務中子集的名稱。

v1
Portobject

目標服務的端口。

說明 當路由的目標服務有只有一個端口時,該字段可以不填寫。如果有多個端口,需要指明端口號。
Numberinteger

端口號

80
Weightinteger

服務子集權重。

80
HTTPAdvancedOptionsobject

HTTP 路由高級配置選項。

HTTPRedirectobject

HTTP 重定向。

Uristring

在重定向時,使用此值覆蓋 URL 的路徑部分。

/v1/getProductRatings
Authoritystring

在重定向時,使用此值覆蓋 URL 的 Authority 或 Host 部分

newratings.default.svc.cluster.local
RedirectCodeinteger

在重定向上,指定要在重定向響應中使用的 HTTP 狀態(tài)代碼。默認響應代碼為 301。

301
Delegateobject

描述委托虛擬服務。

Namestring

名稱。

reviews
Namespacestring

命名空間。

default
Rewriteobject

重寫虛擬服務。

Uristring

用這個值重寫 URI 的路徑(或前綴)部分。

/v1/getProductRatings
Authoritystring

使用此值重寫 Authority 或 Host 頭。

newratings.default.svc.cluster.local
Timeoutstring

超時時長。

5s
Retriesobject

請求重試配置。

Attemptsinteger

給定請求允許的重試次數。

3
RetryOnstring

用于指定重試是否應重試到其他位置的標志,例如connect-failure,refused-stream,503

connect-failure,refused-stream,503
RetryRemoteLocalitiesobject

用于指定重試是否應重試到其他位置的標志。

Valueboolean

用于指定重試是否應重試到其他位置的標志,取值:

  • true:其他位置也重試

  • false:其他位置不重試

默認false

false
PerTryTimeoutstring

請求的每次嘗試超時時間。

2s
Faultobject

故障注入設置。

Delayobject

設置延遲。

FixedDelaystring

固定延遲時間。

5s
Percentageobject

將注入延遲的請求的百分比。

Valuefloat

將注入延遲的請求的百分比,用小數表示。

0.1
Abortobject

提前中止帶有預先指定的錯誤碼的請求。

HttpStatusinteger

HTTP 狀態(tài)碼。

400
Percentageobject

使用提供的錯誤碼中止的請求的百分比。

Valuefloat

使用提供的錯誤碼中止的請求的百分比,用小數表示。

0.1
Mirrorobject

除了將請求轉發(fā)到預期目標之外,還將 HTTP 通信鏡像到另一個目標。

Hoststring

服務注冊表中服務的名稱。

reviews.default.svc.cluster.local
Subsetstring

服務中子集的名稱。

v1
MirrorPercentageobject

流量鏡像百分比。

Valuefloat

流量鏡像百分比,用小數表示。

0.2
Namespacestring

命名空間

default
Domainsarray

請求的域名列表。

string

域名。

test.asm.aliyun.com
RawVSRouteany

序列化為 JSON 的 VirtualService 原始 YAML

{}
Priorityinteger

路由優(yōu)先級。整數,數字越小,優(yōu)先級越高。

1
Statusinteger

網關路由狀態(tài),取值:

  • 0:在線。

  • 1:下線。

  • 2:創(chuàng)建或更新錯誤。

1
Descriptionstring

路由描述。

demo route

返回參數

名稱類型描述示例值
object

響應體。

RequestIdstring

請求 ID。

31d3a0f0-07ed-4f6e-9004-1804498c****

示例

正常返回示例

JSON格式

{
  "RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
2023-06-25API 內部配置變更,不影響調用看變更集
變更項變更內容
API 內部配置變更,不影響調用
2022-08-25API 內部配置變更,不影響調用看變更集
變更項變更內容
API 內部配置變更,不影響調用