获取函数模板标签列表
功能介绍
获取函数模板标签列表
调用方法
请参见如何调用API。
URI
GET /v2/{project_id}/fgs/template-labels
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
参数解释: 租户项目 ID,获取方式请参见获取项目ID。 约束限制: 不涉及。 取值范围: 只能由英文字母、数字组成,且长度为32个字符。 默认取值: 不涉及。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
marker |
否 |
String |
参数解释: 本次查询起始位置。 约束限制: 只能由数字组成,长度1-64位。 取值范围: 不涉及 默认取值: '0' |
limit |
否 |
String |
参数解释: 本次查询最大返回的数据条数。 约束限制: 只能由数字组成,长度1-64位。 取值范围: 不涉及。 默认取值: '100' |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
参数解释: 用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
Content-Type |
否 |
String |
参数解释: 消息体的类型(格式)。 约束限制: 不涉及。 取值范围: 只能为application/json 默认取值: application/json |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
runtime |
Array of TemplateLabelItem objects |
参数解释: 模板语言。 取值范围: 不涉及。 |
scene |
Array of TemplateLabelItem objects |
参数解释: 模板场景。 取值范围: 不涉及。 |
service |
Array of TemplateLabelItem objects |
参数解释: 模板云服务。 取值范围: 不涉及。 |
参数 |
参数类型 |
描述 |
---|---|---|
type |
String |
参数解释: 模板标签类型。 取值范围: 不涉及。 |
display_name |
String |
参数解释: 模板标签名称。 取值范围: 不涉及。 |
状态码:401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误信息 |
状态码:403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误信息 |
状态码:500
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误信息 |
请求示例
获取函数模板标签列表。
GET /v2/{project_id}/fgs/template-labels
响应示例
状态码:200
OK
{ "runtime" : [ { "type" : "http", "display_name" : "Http" }, { "type" : "Node.js12.13", "display_name" : "Node.js 12.13" }, { "type" : "Node.js16.17", "display_name" : "Node.js 16.17" }, { "type" : "Node.js18.15", "display_name" : "Node.js 18.15" }, { "type" : "Node.js6.10", "display_name" : "Node.js 6.10" }, { "type" : "Node.js8.10", "display_name" : "Node.js 8.10" }, { "type" : "PHP7.3", "display_name" : "PHP 7.3" }, { "type" : "Python2.7", "display_name" : "Python 2.7" }, { "type" : "Python3.6", "display_name" : "Python 3.6" }, { "type" : "Python3.9", "display_name" : "Python 3.9" } ], "scene" : [ { "type" : "basic_function_usage", "display_name" : "函数基础使用" }, { "type" : "image_processing", "display_name" : "图片处理" }, { "type" : "data_synchronizing", "display_name" : "数据同步" }, { "type" : "data_processing", "display_name" : "数据处理" }, { "type" : "file_processing", "display_name" : "文件处理" }, { "type" : "text_recognition", "display_name" : "文字识别" }, { "type" : "message_processing", "display_name" : "消息处理" }, { "type" : "voice_analysis", "display_name" : "语言识别" }, { "type" : "edge_computing", "display_name" : "边缘计算" } ], "service" : [ { "type" : "APIG", "display_name" : "API网关" }, { "type" : "CTS", "display_name" : "云审计服务" }, { "type" : "RDS", "display_name" : "云数据库" }, { "type" : "LTS", "display_name" : "云日志服务" }, { "type" : "EVS", "display_name" : "云硬盘" }, { "type" : "VBS", "display_name" : "云硬盘备份" }, { "type" : "FRS", "display_name" : "人脸识别" }, { "type" : "CDN", "display_name" : "内容分发网络" }, { "type" : "Moderation", "display_name" : "内容审核" }, { "type" : "FunctionGraph", "display_name" : "函数工作流" }, { "type" : "KAFKA", "display_name" : "分布式消息服务" }, { "type" : "IMAGE", "display_name" : "图像识别服务" }, { "type" : "OBS", "display_name" : "对象存储服务" }, { "type" : "OMS", "display_name" : "对象存储迁移服务" }, { "type" : "ECS", "display_name" : "弹性云服务器" }, { "type" : "DEW", "display_name" : "数据加密服务" }, { "type" : "DIS", "display_name" : "数据接入服务" }, { "type" : "OCR", "display_name" : "文字识别" }, { "type" : "SMN", "display_name" : "消息通知服务" }, { "type" : "SIS", "display_name" : "语音交互服务" } ] }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
401 |
Unauthorized 鉴权失败。 |
403 |
Forbidden 没有操作权限。 |
500 |
Internal Server Error 服务内部错误。 |
错误码
请参见错误码。