InitModel
Initializes AI models.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:InitModel |
none |
*All Resource
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/initModel HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-jjw4k*** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| api_key |
string |
Yes |
The API key for the AI search open platform. |
os-xfdddf* |
| host |
string |
Yes |
The service registration address of the AI search open platform. |
****.platform-cn-hangzhou-vpc.opensearch.aliyuncs.com |
| workspace |
string |
Yes |
The workspace. |
default |
| http_schema |
string |
Yes |
The HTTP protocol type. Valid values:
|
https |
| models |
array<object> |
No |
Specifies the models to initialize. If this parameter is left empty, all built-in models are initialized. |
|
|
object |
No |
The model object. |
||
| serviceId |
string |
No |
The service ID of the search open platform. |
ops-text-embedding-** |
| modelType |
string |
No |
The model type. Valid values:
|
text_embedding |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F99407AB-2FA9-489E-A259-40CF6DCC4**** |
| Result |
boolean |
The returned result. |
true |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC4****",
"Result": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.