.icms-tree-table-trigger {
display: inline-block;
width: 17px;
height: 17px;
margin-right: 3px;
line-height: 14px;
text-align: center;
background: #fff;
border: 1px solid #e8e8e8;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.icms-tree-table-trigger::after {
content: ‘+’;
}
.icms-tree-table-trigger-expanded::after {
content: ‘-‘
}
调用ListProjects获取项目列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListProjects |
系统规定参数。取值:ListProjects。 |
FilterParam | String | 是 | 测试 |
项目名称或者项目ID,支持模糊搜索。 |
ProjectType | String | 是 | faq |
项目类型,目前只支持传入:faq(文本相似度)、mrc(机器阅读理解)。 |
PageNumber | Integer | 否 | 1 |
分页页码。 |
PageSize | Integer | 否 | 10 |
分页每页大小。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNumber | Integer | 1 |
当前页码。 |
PageSize | Integer | 10 |
每页大小。 |
Projects |
项目列表。 |
||
CreateTime | Long | 1570873793000 |
创建时间。 |
DataStatus | String | init |
数据状态:init(没有上传数据),running(已经上传数据)。 |
DeployAvailable | String | false |
是否可以发布:true(可以发布),false(不能发布)。 |
DeployTime | Long | 1570873793000 |
发布时间。 |
ModelId | String | general |
模型类型,目前支持情况如下:faq(general/finance),mrc(general/finance)。 |
ModelName | String | 通用 |
模型名称。 |
OnlineServiceStatus | String | init |
正式服务状态:init(初始化),deployed(发布成功)。 |
ProjectId | String | bqhxd1qf4bcnhjh8 |
项目ID,是访问项目的唯一标识。 |
ProjectName | String | 测试项目 |
项目名称。 |
ProjectType | String | faq |
项目类型,目前只支持传入:faq(文本相似度)、mrc(机器阅读理解)。 |
QuestionCount | Integer | 0 |
问题数/文章数。 |
TestServiceStatus | String | init |
测试服务状态:init(初始化),running(运行中)。 |
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
请求ID。 |
TotalCount | Integer | 1 |
总共项目数。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListProjects
&FilterParam=测试
&ProjectType=faq
&<公共请求参数>
正常返回示例
XML
格式
<Projects>
<ProjectType>faq</ProjectType>
<ModelId>finance</ModelId>
<ProjectName>测试项目修改</ProjectName>
<ModelName>金融</ModelName>
<DeployAvailable>false</DeployAvailable>
<TestServiceStatus>init</TestServiceStatus>
<CreateTime>1570873793000</CreateTime>
<OnlineServiceStatus>init</OnlineServiceStatus>
<DataStatus>init</DataStatus>
<ProjectId>bqhxd1qf4bcnhjh8</ProjectId>
<QuestionCount>0</QuestionCount>
</Projects>
<PageNumber>1</PageNumber>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<RequestId>4A943ABE-F3AF-4176-B75D-05754D65F005</RequestId>
JSON
格式
{
"Projects":[
{
"ProjectType":"faq",
"ModelId":"finance",
"ProjectName":"测试项目修改",
"ModelName":"金融",
"DeployAvailable":"false",
"CreateTime":1570873793000,
"TestServiceStatus":"init",
"OnlineServiceStatus":"init",
"DataStatus":"init",
"ProjectId":"bqhxd1qf4bcnhjh8",
"QuestionCount":0
}
],
"PageNumber":1,
"TotalCount":1,
"PageSize":10,
"RequestId":"4A943ABE-F3AF-4176-B75D-05754D65F005"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Forbbiden | You are not authorized to operate on the specified resource. | 用户未被授权操作指定的资源。 |
500 | InternalError | An error occurred while processing your request. | 未知错误。 |
400 | InvalidAccountStatus.ServiceUnavailable | The Intelligent Semantic Understanding service has not been activated. | 用户未开通智能语义理解服务。 |
400 | InvalidParameter.ProjectId | The specified projectId is invalid. | 参数projectId不合法。 |
400 | InvalidParameter.ProjectType | The specified projectType is invalid. | 参数projectType不合法。 |
503 | ServiceUnavailable | An error occurred while processing your request. | 服务内部错误。 |
访问错误中心查看更多错误码。
原创文章,作者:网友投稿,如若转载,请注明出处:https://www.cloudads.cn/archives/33374.html