获取指定名称的算法资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
opensearch:DescribeFunction |
get |
*FunctionResource
|
无 | 无 |
请求语法
GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources/{resourceName} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| appGroupIdentity |
string |
是 |
应用 ID |
my_app_group_name |
| functionName |
string |
是 |
功能名称 |
rank |
| resourceName |
string |
是 |
实例名称 |
fg_json |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| output |
string |
否 |
输出等级 |
detail |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Status |
string |
状态码
|
OK |
| HttpCode |
integer |
HTTP 状态码 |
200 |
| RequestId |
string |
请求 ID |
E215C843-0795-5293-AC9A-14FE0723E890 |
| Message |
string |
返回的错误信息 |
Resource not exist. |
| Code |
string |
返回的错误码(没有错误为空) |
Resource.NotExist |
| Result |
object |
返回结果 |
|
| CreateTime |
integer |
创建时间 (单位毫秒) |
1234 |
| Data |
object |
资源数据,不同 resourceType 对应的 data 结构不同 |
|
| Content |
string |
raw_file 类型资源对应的文件内容 |
abc |
| Generators |
array<object> |
feature_generator 类型资源对应的特征生成列表 |
|
|
array<object> |
特征生成描述 |
||
| Generator |
string |
特征生成的类型 |
id |
| Input |
object |
输入 |
|
| Features |
array<object> |
输入特征列表 |
|
|
object |
输入特征 |
||
| Name |
string |
特征名 |
system_item_id |
| Type |
string |
特征类型 |
item |
| Output |
string |
输出的特征名 |
output_feature_name |
| Description |
string |
资源描述 |
"" |
| FunctionName |
string |
功能名称 |
rank |
| ModifyTime |
integer |
修改时间(单位毫秒) |
1234 |
| ReferencedInstances |
array |
引用的算法实例名称列表 |
|
|
string |
实例名称 |
instance1 |
|
| ResourceName |
string |
资源名称 |
fg_json |
| ResourceType |
string |
资源类型 |
raw_file |
| Latency |
number |
api 请求耗时(单位毫秒) |
123 |
示例
正常返回示例
JSON格式
{
"Status": "OK",
"HttpCode": 200,
"RequestId": "E215C843-0795-5293-AC9A-14FE0723E890",
"Message": "Resource not exist.",
"Code": "Resource.NotExist",
"Result": {
"CreateTime": 1234,
"Data": {
"Content": "abc",
"Generators": [
{
"Generator": "id",
"Input": {
"Features": [
{
"Name": "system_item_id",
"Type": "item"
}
]
},
"Output": "output_feature_name"
}
]
},
"Description": "\"\"",
"FunctionName": "rank",
"ModifyTime": 1234,
"ReferencedInstances": [
"instance1"
],
"ResourceName": "fg_json",
"ResourceType": "raw_file"
},
"Latency": 123
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。