API网关 APIG-x-apigateway-backend-policies.conditions

时间:2023-11-01 16:25:08

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

参数

是否必选

类型

说明

type

String

策略条件类型,支持equal、enum、pattern

value

String

策略条件值

origin

String

策略条件输入来源,支持source、request

parameter

String

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

support.huaweicloud.com/devg-apig/apig_04_00022.html