ListLogstash

Updated at:

Queries the details of all or specified Logstash instances.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • prepaid: subscription.

  • postpaid: pay-as-you-go.

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: normal.

  • activating: activating.

  • inactive: frozen.

  • invalid: invalid.

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:

  • true: enabled.

  • false: disabled.

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.

NameTypeExampleDescription
enablePublicBooleanfalseSpecifies whether public network access is enabled. Default value: false.
commodityCodeStringelasticsearch_logstash_postThe product code.
endTimeLong4749897600000The expiration time of the subscription instance.
clusterTasksArray[]The task list of the instance.
resourceGroupIdStringrg-acfm2h5vbzd****The ID of the resource group to which the instance belongs.
zoneCountInteger1The number of zones of the instance.
protocolStringHTTPThe access protocol of the instance.
zoneInfosArrayThe zone information.
└zoneIdStringcn-hangzhou-iThe zone ID.
└statusStringNORMALThe zone status. Valid values: ISOLATION (offline) and NORMAL (normal).
instanceTypeStringlogstashThe instance type.
initedBooleantrueSpecifies whether the instance has been initialized.
configArray[]The instance configurations.
endpointListArrayThe node information.
└hostString172.16.xx.xxThe IP address of the node.
└portInteger9200The access port of the node.
└zoneIdStringcn-hangzhou-iThe ID of the zone where the node is deployed.
Note

└ 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.