检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
URI:POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index
务。 创建新服务。 使用huawei-nodejs模板创建新服务。 serverless create --template-url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-nodejs --path my-service
"code_type" : "obs", "code_url" : "https:xxx" } 创建名为xxx的自定义镜像函数,内存大小为128MB,超时时间3s,代码由SWR上传。 POST https://{Endpoint}/v2/{project_id}/fgs/functions
发布环境:选择“RELEASE”。 安全认证:此处为方便测试,选择“None”,实际业务请选择更安全的认证方式,例如IAM认证等。 请求协议:选择“HTTPS”。 后端超时(毫秒):填写最大值60000毫秒。 配置完成后,单击“确定”。 父主题: 使用Next.js项目构建HTTP函数
信息在代码中 const ak = "<YOUR AK>"; const sk = "<YOUR SK>"; const endpoint = "https://functiongraph.<region>.myhuaweicloud.com"; const project_id = "<project_id>";
描述 error_code String 错误码 error_msg String 错误信息 请求示例 当前租户依赖包列表。 GET https://{Endpoint}/v2/{project_id}/fgs/dependencies/{depend_id}/version/{version}
error_msg String 错误信息 请求示例 利用xxx委托,为vpc:a938xxxx,子网:a4a1xxxx创建大规格下沉入口。 POST https://{Endpoint}/v2/{project_id}/fgs/vpc-endpoint { "vpc_id" : "a938
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 更新函数置顶状态。 PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/collect/true
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除下沉入口。 DELETE https://{Endpoint}/v2/{project_id}/fgs/vpc-endpoint/{vpc_id}/{subnet_id} 响应示例
quests": "1", "host": "xxx", "x-forwarded-proto": "https", "pragma": "no-cache", "cache-control": "no-cache"
tion:xxx:subfunction:latest' #子函数的urn,在子函数详情页拓扑图的右侧可查询 url = 'https://functiongraph.{region_id}.{external_global_domain_name}/v2/%s/fgs
e.printStackTrace(); System.out.println(e.getHttpStatusCode()); System.out.println(e.getErrorCode());
提供的示例允许您使用Express框架轻松构建无服务器Web应用程序/服务和RESTful API 。 1.0.1 request 简化http调用,支持HTTPS并默认遵循重定向 2.88.0 Python Runtime集成的非标准库 表3 Python Runtime集成的非标准库 模块 功能
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除指定测试事件。 DELETE https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/events/{event_id}
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除依赖包版本。 DELETE https://{Endpoint}/v2/{project_id}/fgs/dependencies/{depend_id}/version/{version}
参数类型 描述 error_code String 错误码 error_msg String 错误信息 请求示例 更新指定的依赖包。 PUT https://{Endpoint}/v2/{project_id}/fgs/dependencies/{depend_id} { "depend_file"
URI:POST /v2/{project_id}/fgs/functions API文档详情请参见:创建函数 请求示例 POST https://{Endpoint}/v2/{project_id}/fgs/functions { "code_filename": "index
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除指定版本别名。 DELETE https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/aliases/{alias_name}
String 错误码 error_msg String 错误信息 请求示例 获取 rds 类型 bridge函数可用的版本。 GET https://{Endpoint}/v2/{project_id}/fgs/servicebridge/version?type=rds 响应示例
描述 error_code String 错误码 error_msg String 错误信息 请求示例 删除指定触发器。 DELETE https://{Endpoint}/v2/{project_id}/fgs/triggers/{function_urn}/{trigger_t