Creates a component configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:CreateAgentConfig |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/am/agent/createAgentConfig HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| agentId |
string |
Yes |
The ID of the agent associated with the configuration. You can obtain the agent ID from ListAgents. |
74a86327-3170-412c-8e67-da3389ec56a9 |
| configName |
string |
Yes |
The name of the configuration. |
Configuration 1 |
| content |
string |
Yes |
The content of the configuration. |
{"oomkill":{"enable":false}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
Success |
| data |
object |
The returned data. |
|
| configId |
string |
The ID of the created component configuration. |
4d5ecf02-3d01-11f0-8c90-00163e1029af |
| message |
string |
The error message.
|
Requests for llm service failed |
| requestId |
string |
Id of the request |
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. | Server error, please correct the code according to the error message |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.