更新时间:2025-09-26 GMT+08:00
x-apigateway-backend-policies
含义:API网关定义的API后端策略。
作用域:Operation Object(2.0)/Operation Object(3.0)
示例:
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"
|
参数 |
是否必选 |
类型 |
说明 |
|---|---|---|---|
|
x-apigateway-backend-policies |
否 |
x-apigateway-backend-policies |
策略后端。 |
|
type |
是 |
String |
后端服务类型,支持HTTP、HTTP-VPC、FUNCTION、MOCK。 |
|
name |
是 |
String |
后端策略名称。 |
|
parameters |
否 |
后端参数定义。 |
|
|
httpEndpoints |
否 |
HTTP类型服务定义。 |
|
|
httpVpcEndpoints |
否 |
HTTP-VPC类型服务定义。 |
|
|
functionEndpoints |
否 |
FUNCTION类型服务定义。 |
|
|
mockEndpoints |
否 |
MOCK类型服务定义。 |
|
|
conditions |
是 |
策略条件数组。 |
|
|
httpVpcMemberGroupEndpoints |
否 |
HTTP-VPC-MEMBER-GROUP类型后端服务定义。 httpVpcMemberGroupEndpoints参数受限使用,如需使用,请提交工单开通。 |
父主题: APIG的API设计文件扩展定义