ListLogstash
Queries the details of all or specified Logstash instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListLogstash |
list |
*All Resource
|
None | None |
Request syntax
GET /openapi/logstashes HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| page |
integer |
No |
The page number of the instance list. Default value: 1. |
1 |
| size |
integer |
No |
The number of entries per page in a paging query. Default value: 20. |
10 |
| description |
string |
No |
The name of the instance. Fuzzy match is supported. For example, if you search for instances named abc, the system may return all instances whose names are abc, abcde, xyabc, or xabcy. |
ls-cn-abc |
| instanceId |
string |
No |
The instance ID. |
ls-cn-n6w1o5jq**** |
| version |
string |
No |
The version of the instance. |
5.5.3_with_X-Pack |
| resourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfm2h5vbzd**** |
| tags |
string |
No |
The instance tags. |
[{"tagKey":"key1","tagValue":"value1"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
AC442F2F-5068-4434-AA21-E78947A9**** |
| Headers |
object |
The request headers. |
|
| X-Total-Count |
integer |
The total number of instances. |
10 |
| Result |
array<object> |
The list of instances returned by the current request. |
|
|
array<object> |
|||
| paymentType |
string |
The billing method of the instance. Valid values:
|
postpaid |
| nodeAmount |
integer |
The number of nodes in the instance. |
2 |
| description |
string |
The name of the instance. |
ls-cn-abc |
| createdAt |
string |
The time when the instance was created. |
2018-07-13T03:58:07.253Z |
| status |
string |
The status of the instance. Valid values:
|
active |
| updatedAt |
string |
The time when the instance was last updated. |
2018-07-18T10:10:04.484Z |
| instanceId |
string |
The instance ID. |
ls-cn-n6w1o5jq**** |
| version |
string |
The version of the instance. Only 6.7.0_with_X-Pack and 7.4.0_with_X-Pack are supported. |
6.7.0_with_X-Pack |
| Tags |
array<object> |
The instance tags. |
|
|
object |
|||
| TagValue |
string |
The tag value. |
dev |
| TagKey |
string |
The tag key. |
env |
| nodeSpec |
object |
The configurations of the data node. |
|
| spec |
string |
The node specifications. |
logstash.n4.small |
| disk |
integer |
The disk size of the node. |
50 |
| diskEncryption |
boolean |
Specifies whether disk encryption is enabled. Valid values:
|
false |
| diskType |
string |
The disk type. |
cloud_ssd |
| networkConfig |
object |
The network configurations. |
|
| vpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-abc |
| vsArea |
string |
The zone where the instance is deployed. |
cn-hangzhou-* |
| type |
string |
The network type. Only VPC is supported. |
vpc |
| vswitchId |
string |
The ID of the vSwitch. |
vsw-def |
| resourceGroupId |
string |
The ID of the resource group to which the Logstash instance belongs. |
rg-acfm2h5vbzd**** |
| endTime |
integer |
The expiration time of the subscription instance. |
4928745600000 |
The response also includes the following parameters.
| Name | Type | Example | Description |
| enablePublic | Boolean | false | Specifies whether public network access is enabled. Default value: false. |
| commodityCode | String | elasticsearch_logstash_post | The product code. |
| endTime | Long | 4749897600000 | The expiration time of the subscription instance. |
| clusterTasks | Array | [] | The task list of the instance. |
| resourceGroupId | String | rg-acfm2h5vbzd**** | The ID of the resource group to which the instance belongs. |
| zoneCount | Integer | 1 | The number of zones of the instance. |
| protocol | String | HTTP | The access protocol of the instance. |
| zoneInfos | Array | The zone information. | |
| └zoneId | String | cn-hangzhou-i | The zone ID. |
| └status | String | NORMAL | The zone status. Valid values: ISOLATION (offline) and NORMAL (normal). |
| instanceType | String | logstash | The instance type. |
| inited | Boolean | true | Specifies whether the instance has been initialized. |
| config | Array | [] | The instance configurations. |
| endpointList | Array | The node information. | |
| └host | String | 172.16.xx.xx | The IP address of the node. |
| └port | Integer | 9200 | The access port of the node. |
| └zoneId | String | cn-hangzhou-i | The ID of the zone where the node is deployed. |
└ indicates a child parameter.
Examples
Success response
JSON format
{
"RequestId": "AC442F2F-5068-4434-AA21-E78947A9****",
"Headers": {
"X-Total-Count": 10
},
"Result": [
{
"paymentType": "postpaid",
"nodeAmount": 2,
"description": "ls-cn-abc",
"createdAt": "2018-07-13T03:58:07.253Z",
"status": "active",
"updatedAt": "2018-07-18T10:10:04.484Z",
"instanceId": "ls-cn-n6w1o5jq****",
"version": "6.7.0_with_X-Pack",
"Tags": [
{
"TagValue": "dev",
"TagKey": "env"
}
],
"nodeSpec": {
"spec": "logstash.n4.small",
"disk": 50,
"diskEncryption": false,
"diskType": "cloud_ssd"
},
"networkConfig": {
"vpcId": "vpc-abc",
"vsArea": "cn-hangzhou-*",
"type": "vpc",
"vswitchId": "vsw-def"
},
"resourceGroupId": "rg-acfm2h5vbzd****",
"endTime": 4928745600000
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.