取得指定名稱的演算法資源。
調試
您可以在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 |
| role |
string |
輸入特徵的角色標識。 |
|
| 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 |
| createTime |
integer |
演算法資源的建立時間,單位為毫秒。 |
1234 |
| 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",
"role": ""
}
]
},
"output": "output_feature_name"
}
]
},
"description": "\"\"",
"functionName": "rank",
"modifyTime": 1234,
"referencedInstances": [
"instance1"
],
"resourceName": "fg_json",
"resourceType": "raw_file",
"createTime": 1234
},
"latency": 123
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。