UpdatePipelines
Updates Logstash pipeline information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpdatePipelines |
*Logstash
|
None | None |
Request syntax
PUT /openapi/logstashes/{InstanceId}/pipelines HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The Logstash instance ID. |
ls-cn-oew1qbgl**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| trigger |
boolean |
No |
Specifies whether to deploy the pipelines immediately. |
false |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. The value is generated by the client and must be unique across different requests. The token can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| body |
string |
No |
The list of Logstash pipeline information to update. |
[{"pipelineId":"test","config":"input {\n\n}\nfilter {\n\n}\noutput {\n \n}"}] |
Request body
The request body must also include the following parameters to specify the pipeline information to update.
The request body must contain a JSON array of pipelines.
| Name | Type | Required | Example | Description |
| pipelineId | String | Yes | pipeline-test | The ID of the pipeline to update. |
| description | String | No | this is a test | The description of the pipeline. |
| config | String | Yes | input { } filter { } output { } | The configuration of the pipeline. |
| workers | Integer | No | 2 | The number of worker threads for the pipeline. |
| batchSize | Integer | No | 125 | The batch size of the pipeline. |
| batchDelay | Integer | No | 50 | The batch delay of the pipeline. |
| queueType | String | No | MEMORY | The queue type. Valid values: MEMORY and PERSISTED. |
| pipelineStatus | String | No | RUNNING | The pipeline status. Valid values: NOT_DEPLOYED, RUNNING, and DELETED. This parameter is required when trigger is set to true. |
| queueMaxBytes | Integer | No | 1024 | The maximum number of bytes in the queue. |
| queueCheckPointWrites | Integer | No | 1024 | The number of checkpoint writes for the queue. |
Example:
[
{
"pipelineId": "test",
"config": "input {\n\n}\nfilter {\n\n}\noutput {\n \n}"
}
]
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Result |
boolean |
The returned result. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1**** |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.