aom__UpdateEnv
Update an AOM environment's name, type, OS, region, description, and component link by environment ID. Use it to change existing environment settings.
Instructions
[AOM] 该接口用于修改环境。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"component_id": "<component_id>",
"env_name": "<env_name>",
"env_type": "<env_type>",
"environment_id": "<environment_id>",
"os_type": "<os_type>"
},
"name": "aom__UpdateEnv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | 环境关联region。创建环境必传,不可修改 | |
| os_type | Yes | OS类型,取值:LINUX、WINDOWS。创建环境必传,不可修改 | |
| env_name | Yes | 环境名称 | |
| env_type | Yes | 环境类型,取值:DEV、TEST、PRE、ONLINE,不区分大小写 | |
| description | No | 描述 | |
| component_id | Yes | 环境关联组件id;id长度不能超过36位,由大小写字母、数字组成。创建环境必传,修改环境时非必选 | |
| register_type | No | 注册类型,取值:API、SERVICE_DISCOVERY、CONSOLE,默认值:API | |
| environment_id | Yes | 环境id |