DescribeXpackMonitorConfig
Retrieves the X-Pack monitoring configuration of a Logstash instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeXpackMonitorConfig |
get |
*Logstash
|
None | None |
Request syntax
GET /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 |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1**** |
| Result |
object |
The returned result. |
|
| userName |
string |
The username used to access the Elasticsearch instance associated with X-Pack monitoring. |
elastic |
| esInstanceId |
string |
The Elasticsearch instance ID associated with X-Pack monitoring. |
es-cn-n6w1o1x0w001c**** |
| enable |
boolean |
Indicates whether X-Pack monitoring is enabled. Valid values:
|
true |
| endpoints |
array |
The list of access endpoints for the Elasticsearch instance associated with X-Pack monitoring. |
|
|
string |
The access endpoints of the Elasticsearch instance associated with X-Pack monitoring. |
["http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200"] |
|
| pipelineIds |
array |
The list of Kibana-managed pipelines associated with X-Pack monitoring. |
|
|
string |
The pipelines managed by the Kibana instance associated with X-Pack monitoring. |
[] |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1****",
"Result": {
"userName": "elastic",
"esInstanceId": "es-cn-n6w1o1x0w001c****",
"enable": true,
"endpoints": [
"[\"http://es-cn-n6w1o1x0w001c****.elasticsearch.aliyuncs.com:9200\"]"
],
"pipelineIds": [
"[]"
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ComponentCodeValueError | component value is disable | |
| 401 | UserNotOpen | Aliyun account is not open elasticsearch | |
| 401 | StsRoleAccountNoPermission | Role account has no permission or expired | |
| 401 | SubAccountNoPermission | Aliyun sub account has no permission, please authorize your sub account in Aliyun RAM | |
| 401 | UserUnauthorized | Authentication required |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.