查询技能列表
功能介绍
获取技能列表。
URI
GET /v1/skill-market/skills
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
limit | 否 | Integer | 每页显示的条目数量, 最大 100,默认值 10 |
offset | 否 | Integer | 查询的起始位置, 默认值 0 |
skill_name | 否 | String | 技能名称,支持模糊匹配。中英文、数字、下划线、中划线 长度[1-60] |
skill_form | 否 | String | 技能形式,no_termplate不支持Modelbox部署模板,support_template支持Modelbox模板。 |
permission | 否 | String | 技能可见权限,支持公开可见public以及白名单whitelist |
template_source | 否 | String | 技能来源,分别hilens,ma_pro,studio |
status | 否 | Integer | 技能审核状态,1表示审核通过,2表示审核不通过,0表示待审核 |
charge_model | 否 | Integer | 收费模式,0表示永久免费,1表示收费,2表示30天试用,3表示365天试用,4表示收费(永久使用) |
platform | 否 | String | 技能操作系统平台,其值为:Linux,Android, iOS, LiteOS,Windows |
chip | 否 | String | 技能芯片类型,其值为Ascend 310,Ascend 310(Atlas 200 DK),Arm,x86,3516CV500,3519AV100,3519V101,3516DV300,3516EV200,3516EV300,3518EV300 |
type | 否 | String | 技能类型,lite表示使用于海思芯片的轻量型技能。standard表示标准技能。 |
charge_models | 否 | String | 收费模式多选,0表示永久免费,1表示收费,2表示30天试用,3表示365天试用,4表示收费(永久使用),分隔符为|,例如输入为1|2|3 |
device_types | 否 | String | 设备类型校验,允许输入多个设备类型,用|分隔,例如设备a|设备b。每种设备类型不允许#~^$%&*<>{}[]'|字符,长度1到100。最多50个设备类型 |
scenes | 否 | String | 技能适用场景,支持多选,分隔符|,例如场景a|场景b,每种场景不允许输入#~^$%&*<>{}\[\]'\|等字符,长度100以内,最多20个设备类型。 |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Auth-Token | 是 | String | 用户Token。获取方法请参见获取Token |
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
data | Array of SkillInfo objects | 技能列表 |
total | Integer | 总数量 |
参数 | 参数类型 | 描述 |
|---|---|---|
sub_scenes | String | 技能应用场景 |
app_template_id | String | 应用模板ID |
icon | String | 技能图标 |
version_num | Integer | 技能版本数量 |
description | String | 技能描述 |
product_info | Array of strings | 计费编码信息 |
type | String | 技能类别,分为standard和lite |
platform | String | 技能操作系统平台,其值为:Linux,Android, iOS, LiteOS,Windows |
self_dev_flag | Integer | 自研标识,1表示是HiLens自研算法。 |
measure_type | String | 计费类型,physical_src表示物理量标,如按周期收费。 src表示一次性 |
approval_result | String | 技能审核结果 |
update_time | String | 更新时间,形如2022-06-30 17:22:48 GMT+08:00 |
channel_limit | Integer | 通道数 |
publish_time | String | 发布时间 |
resource_step_size | Integer | 步长 |
approval_time | String | 审批时间 |
cloud_service_type | String | 云服务编码 |
summary | String | 摘要 |
test_status | Integer | 测试状态 |
chip | String | 芯片 |
is_verify_model | Boolean | 是否校验模型 |
format | String | 技能类型,文件类型file,镜像类型image |
resource_type | String | 资源类别 |
version | String | 技能版本 |
measure_unit | String | 计费单位 qps 表示按qps收费,road表示技能路数instance 表示按实例收费 |
tags | Array of strings | 标签 |
siz | Integer | 技能大 |
test_result | String | 测试结果 |
install_times | Integer | 安装次数 |
privacy_policy | Array of strings | 隐私条款 |
name | String | 技能名字 |
scenes | Array of strings | 技能场景 |
charge_model | Integer | 计费模式 |
resource_spec_code | String | 云服务资源编码 |
skill_id | String | 技能ID |
developer | String | 开发者名字 |
main_scenes | String | 主场景 |
device_types | Array of strings | 所支持的设备类别 |
status | Integer | 技能状态 |
请求示例
获取技能列表
GET https://{endpoint}/v1/skill-market/skills
Request Header: Content-Type: application/jsonX-Auth-Token: MIINRwYJKoZIhvcNAQcCoIINODCCDTQCAQExDTALBglghkgBZQMEAgEwgguVBgkqhkiG... 响应示例
状态码: 200
技能列表
{
"data" : [ {
"sub_scenes" : "行人轨迹",
"app_template_id" : null,
"icon" : null,
"version_num" : 1,
"description" : null,
"product_info" : [ ],
"type" : "standard",
"platform" : "Linux",
"self_dev_flag" : 1,
"measure_type" : "physical_src",
"approval_result" : "ok",
"update_time" : "2022-06-30 17:22:48 GMT+08:00",
"channel_limit" : 16,
"publish_time" : "2022-06-30 17:24:07 GMT+08:00",
"resource_step_size" : 1,
"approval_time" : "2022-06-30 17:22:48 GMT+08:00",
"cloud_service_type" : null,
"summary" : null,
"test_status" : 0,
"chip" : "Ascend 310",
"is_verify_model" : false,
"format" : "file",
"resource_type" : null,
"version" : "1.0.0",
"measure_unit" : "qps",
"tags" : [ ],
"size" : 1439,
"test_result" : null,
"install_times" : 0,
"privacy_policy" : [ ],
"name" : "createmOXIL",
"scenes" : [ ],
"charge_model" : 2,
"resource_spec_code" : null,
"skill_id" : "dc7751f1896d46eba688765d72615de0",
"developer" : "EI_HiLens_1",
"main_scenes" : "园区",
"device_types" : [ ],
"status" : 1
} ],
"total" : 10500
} 状态码
状态码 | 描述 |
|---|---|
200 | 技能列表 |
400 | 认证不通过 |
403 | 拒绝执行请求 |
404 | 请求的资源不存在 |
500 | 服务器内部错误 |
错误码
请参见错误码。

