API网关 APIG-x-apigateway-backend.functionEndpoints

时间:2025-02-12 15:14:48

x-apigateway-backend.functionEndpoints

含义:API网关定义的FUNCTION类型API后端服务定义。

作用域x-apigateway-backend

示例

paths:  '/users/{userId}':    get:      produces:        - "application/json"      parameters:        - name: "X-Auth-Token"          description: "认证token"          type: "string"          in: "header"          required: true      responses:        default:          description: "default response"      x-apigateway-request-type: "public"      x-apigateway-backend:        type: "FUNCTION"        functionEndpoints:          version: "v1"          function-urn: ""          invocation-type: "synchronous"          timeout: 30000
表1 参数说明

参数

是否必选

类型

说明

function-urn

String

函数URN地址。

version

String

函数版本。

invocation-type

String

函数调用类型,支持异步或同步。

timeout

Number

函数超时时间,单位毫秒,缺省值为5000,取值范围为1~60000。

support.huaweicloud.com/usermanual-apig/apig_03_0094.html