更新组件配置
接口说明
更新配置后,会触发新配置下发至所有应用该配置的资源
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
PUT /api/v1/am/agent/updateAgentConfig HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 Body |
|
| agentId |
string |
是 |
要更新配置对应的组件 ID |
74a86327-3170-412c-8e67-da3389ec56a9 |
| configId |
string |
是 |
要更新的组件配置 ID |
f0078fbb-4213-11f0-a19b-00163e4ae208 |
| content |
string |
是 |
新的组件配置内容 |
{"oomkill":{"enable":false}} |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| code |
string |
状态码
|
SysomOpenAPI.ServerError |
| data |
object |
返回数据。 |
|
| taskId |
string |
任务 ID |
1234567890 |
| message |
string |
错误信息
|
SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom |
| requestId |
string |
Id of the request |
2D693121-C925-5154-8DF6-C09A8B369822 |
示例
正常返回示例
JSON格式
{
"code": "SysomOpenAPI.ServerError\n",
"data": {
"taskId": "1234567890"
},
"message": "SysomOpenAPIAssumeRoleException: EntityNotExist.Role The role not exists: acs:ram::xxxxx:role/aliyunserviceroleforsysom",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. | 服务端错误,请根据错误提示信息修正代码 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。