调用 invoke invoke命令调用部署在函数计算的函数。 参数解析 参数全称 参数缩写 Yaml 模式下必填 Cli 模式下必填 参数含义 region 选填 必填 资源池ID,请参考资源池列表 functionname 选填 必填 函数名称 timeout 选填 选填 客户端调用超时时间,默认为:1800,单位为:秒 event e 选填 选填 事件 waitfunctionready 选填 选填 等待函数就绪再调用,默认值:false,最大等待时间为120秒,等待间隔为10秒 操作案例 Yaml 模式 进入到资源描述文件(s.yaml)所在的路径,然后执行如下命令调用函数: shell s invoke Cli 模式 直接执行如下命令调用函数: shell s cli faascf invoke region bb9fdb42056f11eda1610242ac110002 functionname helloworld 执行完成输出示例: plaintext status: 200 headers: contentlength: 11 contenttype: text/plain; charsetutf8 date: Tue, 27 May 2025 08:06:01 GMT xfcrequestid: cfece19204494de4bf5f180700006fa8 xfcstatuscode: 200 xfcupstreamservicetime: 2781 xfcreqcosttime: 2782 xfcreqarrivetime: 1748333160021 xfcrespstarttime: 1748333162803 connection: close body: hello world component: faascf