ModifyDeployMachine
Updates an ECS instance where a collector is installed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ModifyDeployMachine |
update |
*collectors
|
None | None |
Request syntax
POST /openapi/collectors/{ResId}/actions/modify-deploy-machines HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResId |
string |
Yes |
The collector ID. |
ct-cn-xb1i7q79u65nk**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Ensures the idempotence of the request. The value is generated by the client and must be unique across different requests. The value can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| body |
string |
No |
The configurations of the target ECS instance and the deployment machine type for the collector. |
{"machines":[{"instanceId":"i-bp11u91xgubypcuz****"}],"type":"ECSInstanceId","configType":"collectorDeployMachine"} |
Request body
You must also specify the following parameters in the request body to provide the target ECS instance information.
| Name | Type | Required | Example | Description |
| machines | List | Yes | The information about the target ECS instances. | |
| └instanceId | String | Yes | i-bp11u91xgubypcuz**** | The instance ID. |
| type | String | Yes | ECSInstanceId | The type of the machine where the collector is deployed. Only ECSInstanceId (ECS instance deployment) is supported. |
| configType | String | Yes | collectorDeployMachine | The configuration type. Only collectorDeployMachine (deployment machine for the collector) is supported. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Result |
boolean |
Indicates whether the update was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
C37CE536-6C0F-4778-9B59-6D94C7F7EB63 |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "C37CE536-6C0F-4778-9B59-6D94C7F7EB63"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.