
# x-apigateway-backend-policies.conditions
**含义**：API网关定义的API后端策略条件。
**作用域** ：[x-apigateway-backend-policies](https://support.huaweicloud.com/usermanual-apig/apig_03_0096.html)
**示例**：
```
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: "string"
```
表1参数说明 
| 参数        | 是否必选 | 类型     | 说明                                                  |
|:---|:---|:---|:---|
| type      | 是    | String | 策略条件类型，支持equal、enum、pattern。                        |
| value     | 是    | String | 策略条件值。                                              |
| origin    | 是    | String | 策略条件输入来源，支持source、request。                          |
| parameter | 否    | String | 策略条件输入来源为request时，填入请求入参的名称。策略条件输入来源为source时，该参数不填。 |
   
