Bir bileşen yapılandırması oluşturur.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/am/agent/createAgentConfig HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
İstek gövdesi. |
|
| agentId |
string |
Yes |
Yapılandırma için bileşenin kimliği. Bileşen kimliğini ListAgents'tan alabilirsiniz. |
74a86327-3170-412c-8e67-da3389ec56a9 |
| configName |
string |
Yes |
Yapılandırmanın adı. |
Configuration 1 |
| content |
string |
Yes |
Yapılandırmanın içeriği. |
{"oomkill":{"enable":false}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| code |
string |
Durum kodu.
|
Success |
| data |
object |
Döndürülen veriler. |
|
| configId |
string |
Oluşturulan bileşen yapılandırmasının kimliği. |
4d5ecf02-3d01-11f0-8c90-00163e1029af |
| message |
string |
Hata mesajı.
|
Requests for llm service failed |
| requestId |
string |
İstek kimliği. |
2D693121-C925-5154-8DF6-C09A8B369822 |
Examples
Success response
JSON format
{
"code": "Success",
"data": {
"configId": "4d5ecf02-3d01-11f0-8c90-00163e1029af"
},
"message": "Requests for llm service failed\n",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. | Bir sunucu hatası oluştu. Hata mesajına göre kodunuzu değiştirin. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.