UpdateXpackMonitorConfig
Updates the X-Pack monitoring and alerting configuration of a Logstash instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpdateXpackMonitorConfig |
*All Resource
|
None | None |
Request syntax
POST /openapi/logstashes/{InstanceId}/xpack-monitor-config 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 |
| 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 |
object |
No |
The X-Pack monitoring configuration. |
|
| enable |
boolean |
No |
Specifies whether to enable X-Pack monitoring. Valid values:
|
true |
| endpoints |
array |
No |
The access endpoint of the Elasticsearch instance. |
|
|
string |
No |
The access endpoint of the Elasticsearch instance. |
http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200 |
|
| userName |
string |
No |
The username of the Elasticsearch instance. |
elastic |
| password |
string |
No |
The password of the Elasticsearch instance. |
ExamplePwd123! |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Result |
boolean |
The result of the request. Valid values:
|
true |
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D*** |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.