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

时间:2024-06-25 14:09:33

7.1:x-apigateway-backend-policies.conditions

含义:ROMA Connect定义的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"
表12 参数说明

参数

是否必选

类型

说明

type

String

策略条件类型,支持“equal”、“enum”和“pattern”。

value

String

策略条件值。

origin

String

策略条件输入来源,支持“source”和“request”。

parameter

String

策略条件输入来源为“request”时,请求入参的名称。

support.huaweicloud.com/usermanual-roma/roma_03_2135.html