应用与数据集成平台 ROMA Connect-附录:API的Swagger扩展定义:7:x-apigateway-backend-policies

时间:2025-02-12 15:03:18

7:x-apigateway-backend-policies

含义:ROMA Connect定义的API后端策略。

作用域Operation Object

示例

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"
表11 参数说明

参数

是否必选

类型

说明

type

String

后端服务类型,支持“HTTP”、“HTTP-VPC”和“MOCK”。

name

String

后端策略名称。

parameters

x-apigateway-backend.parameters

后端参数定义。

httpEndpoints

x-apigateway-backend.httpEndpoints

HTTP类型服务定义。

httpVpcEndpoints

x-apigateway-backend.httpVpcEndpoints

HTTP-VPC类型服务定义。

functionEndpoints

x-apigateway-backend.functionEndpoints

FUNCTION类型服务定义。

mockEndpoints

x-apigateway-backend.mockEndpoints

MOCK类型服务定义。

conditions

x-apigateway-backend-policies.conditions

后端策略条件。

support.huaweicloud.com/usermanual-roma/apic-ug-190216027.html