Retrieves the specified algorithm resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeFunction |
get |
*FunctionResource
|
None | None |
Request syntax
GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources/{resourceName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The application ID. |
my_app_group_name |
| functionName |
string |
Yes |
The feature name. |
rank |
| resourceName |
string |
Yes |
The instance name. |
fg_json |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| output |
string |
No |
The output level. |
detail |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status code.
|
OK |
| HttpCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
E215C843-0795-5293-AC9A-14FE0723E890 |
| Message |
string |
The returned error message. |
Resource not exist. |
| Code |
string |
The returned error code. This is empty if no error occurred. |
Resource.NotExist |
| Result |
object |
The returned result. |
|
| CreateTime |
integer |
The time when the resource was created. Unit: milliseconds. |
1234 |
| Data |
object |
The resource data. The structure of the data varies based on the resourceType. |
|
| Content |
string |
The content of the file for a resource of the raw_file type. |
abc |
| Generators |
array<object> |
The list of feature generators for a resource of the feature_generator type. |
|
|
array<object> |
The description of the feature generator. |
||
| Generator |
string |
The type of the feature generator. |
id |
| Input |
object |
The input. |
|
| Features |
array<object> |
The list of input features. |
|
|
object |
The input feature. |
||
| Name |
string |
The feature name. |
system_item_id |
| Type |
string |
The feature type. |
item |
| Output |
string |
The name of the output feature. |
output_feature_name |
| Description |
string |
The description of the resource. |
"" |
| FunctionName |
string |
The feature name. |
rank |
| ModifyTime |
integer |
The time when the resource was last modified. Unit: milliseconds. |
1234 |
| ReferencedInstances |
array |
The list of referenced algorithm instance names. |
|
|
string |
The instance name. |
instance1 |
|
| ResourceName |
string |
The resource name. |
fg_json |
| ResourceType |
string |
The resource type. |
raw_file |
| Latency |
number |
The time consumed by the API request. Unit: milliseconds. |
123 |
Examples
Success response
JSON format
{
"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
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.