Creates an algorithm resource under a specified feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteFunction |
*FunctionResource
|
None | None |
Request syntax
POST /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/resources 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 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| data |
object |
No |
||
| content |
string |
No |
||
| generators |
array<object> |
No |
||
|
array<object> |
No |
|||
| generator |
string |
No |
||
| input |
object |
No |
||
| features |
array<object> |
No |
||
|
object |
No |
|||
| name |
string |
No |
||
| type |
string |
No |
||
| role |
string |
No |
||
| output |
string |
No |
||
| description |
string |
No |
||
| resourceName |
string |
No |
||
| resourceType |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| status |
string |
||
| httpCode |
integer |
||
| requestId |
string |
||
| message |
string |
||
| code |
string |
||
| latency |
number |
Examples
Success response
JSON format
{
"status": "",
"httpCode": 0,
"requestId": "",
"message": "",
"code": "",
"latency": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.