更新时间:2025-01-10 GMT+08:00
x-apigateway-backend-policies.conditions
含义:API网关定义的API后端策略条件。
作用域:x-apigateway-backend-policies
示例:
paths:
'/users/{userId}':
get:
produces:
- "application/json"
responses:
default:
description: "default response"
x-apigateway-request-type: "public"
x-apigateway-backend:
type: "backend endpoint type"
x-apigateway-backend-policies:
- type: "backend endpoint type"
name: "backend policy name"
conditions:
- type: "equal/enum/pattern",
value: "string",
origin: "source/request_parameter",
parameter_name: "string" 参数 | 是否必选 | 类型 | 说明 |
|---|---|---|---|
type | 是 | String | 策略条件类型,支持equal、enum、pattern。 |
value | 是 | String | 策略条件值。 |
origin | 是 | String | 策略条件输入来源,支持source、request。 |
parameter | 否 | String | 策略条件输入来源为request时,请求入参的名称。 |
父主题:APIG的API设计文件扩展定义

