生成函数实例 Webshell 端口。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GenWebshellEndpoint | 接口名称。当前 API 的名称为 GenWebshellEndpoint 。 |
Version | String | 是 | 2024-06-06 | 接口版本。当前 API 的版本为 2024-06-06 。 |
FunctionId | String | 是 | wrw****** | 函数 ID。 |
InstanceName | String | 是 | wrw******-vd9qztck6t-74b9cf8975-bkd99 | 函数实例名称。 注意 函数实例必须处于 |
POST http://open.volcengineapi.com/?Action=GenWebshellEndpoint&Version=2024-06-06 HTTP/1.1 Content-Type: application/json { "FunctionId": "wrw******", "InstanceName": "wrw******-vd9qztck6t-74b9cf8975-bkd99" }
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Endpoint | String | wss://****.volces.com/ws-****/cn-beijing/webshell?id=wrw****&instance=wrw****-yp9zrxli-prtfgld2t8-mxkbw&ticket=253ac5df-68ae-461f-b65a-**** | 函数 Webshell 终端连接地址。 |
HTTP/1.1 200 OK Content-Type: application/json { "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GenWebshellEndpoint", "Version": "2024-06-06", "Service": "vefaas", "Region": "cn-beijing" }, "Result": { "Endpoint": "wss://****.volces.com/ws-****/cn-beijing/webshell?id=wrw****&instance=wrw****-yp9zrxli-prtfgld2t8-mxkbw&ticket=253ac5df-68ae-461f-b65a-****" } }
当前接口暂无独立错误码,若接口调用返回异常,可参考 公共错误码 进行故障排查。