GatewayRouteConfigProperties interface
Spring Cloud 閘道的 API 路由設定
屬性
| app |
Azure Spring Apps 應用程式的資源識別碼,除非路由定義 |
| filters | 若要在將要求傳送至目標端點之前修改要求,或在應用層級中收到回應。 |
| open |
Spring Cloud Gateway 路由設定的 OpenAPI 屬性。 |
| predicates | 評估應用層級中每個要求的路由的一些條件。 每個述詞都可以根據要求標頭和參數值進行評估。 與路由相關聯的所有述詞都必須評估為 true,路由才能與要求相符。 |
| protocol | 路由式 Azure Spring Apps 應用程式的通訊協定。 |
| provisioning |
Spring Cloud 閘道路由設定的狀態。注意:這個屬性不會串行化。 它只能由伺服器填入。 |
| routes | API 路由陣列,每個路由都包含屬性,例如 |
| sso |
在應用層級中啟用單一 Sign-On。 |
屬性詳細資料
appResourceId
Azure Spring Apps 應用程式的資源識別碼,除非路由定義 uri,否則為必要專案。
appResourceId?: string
屬性值
string
filters
若要在將要求傳送至目標端點之前修改要求,或在應用層級中收到回應。
filters?: string[]
屬性值
string[]
openApi
Spring Cloud Gateway 路由設定的 OpenAPI 屬性。
openApi?: GatewayRouteConfigOpenApiProperties
屬性值
predicates
評估應用層級中每個要求的路由的一些條件。 每個述詞都可以根據要求標頭和參數值進行評估。 與路由相關聯的所有述詞都必須評估為 true,路由才能與要求相符。
predicates?: string[]
屬性值
string[]
protocol
路由式 Azure Spring Apps 應用程式的通訊協定。
protocol?: string
屬性值
string
provisioningState
Spring Cloud 閘道路由設定的狀態。注意:這個屬性不會串行化。 它只能由伺服器填入。
provisioningState?: string
屬性值
string
routes
API 路由陣列,每個路由都包含屬性,例如 title、uri、ssoEnabled、predicates、filters。
routes?: GatewayApiRoute[]
屬性值
ssoEnabled
在應用層級中啟用單一 Sign-On。
ssoEnabled?: boolean
屬性值
boolean