DescribeLogstash

Updated at:

Queries the details of a Logstash instance.

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:DescribeLogstash

get

*Logstash

acs:elasticsearch:{#regionId}:{#accountId}:logstashes/{#logstashesId}

None None

Request syntax

GET /openapi/logstashes/{InstanceId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ls-cn-s9dsk3k4k****

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

C9334241-4837-46C2-B24B-9BDC517318DE

Result

object

The details of the instance.

config

object

The configuration information of the instance.

{"slowlog.threshold.warn": "2s","slowlog.threshold.info": "1s","slowlog.threshold.debug": "500ms","slowlog.threshold.trace": "100ms" }

paymentType

string

The billing method of the instance. Valid values:

  • prepaid: subscription

  • postpaid: pay-as-you-go

prepaid

ResourceGroupId

string

The ID of the resource group to which the instance belongs.

rg-aekzvowej3i****

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.

2020-02-06T14:12:03.672Z

status

string

The status of the instance. Valid values:

  • active: The instance is running normally.

  • activating: The instance is being activated.

  • inactive: The instance is frozen.

  • invalid: The instance is invalid.

active

vpcInstanceId

string

The ID of the VPC to which the instance belongs.

vpc-bp16k1dvzxtmagcva****

updatedAt

string

The time when the instance was last updated.

2020-02-06T14:22:36.850Z

version

string

The version of the instance.

7.4.0_with_X-Pack

instanceId

string

The instance ID.

ls-cn-abc

endpointList

array<object>

The access information of the nodes.

object

zoneId

string

The zone ID of the node.

cn-hangzhou-b

port

string

The port number.

9600

host

string

The IP address of the node.

172.16.**.**

Tags

array<object>

The instance labels.

object

tagKey

string

The tag key.

env

tagValue

string

The tag value.

dev

ZoneInfos

array<object>

The zone information.

object

status

string

The status of the zone. Valid values:

  • ISOLATION: The zone is offline.

  • NORMAL: The zone is running normally.

NORMAL

zoneId

string

The zone ID.

cn-hangzhou-b

ExtendConfigs

array<object>

The list of extended configurations for the Logstash instance.

object

The cluster extension parameter settings.

{"configType":"aliVersion","aliVersion":"ali1.3.0"}

nodeSpec

object

The configuration information of the node.

spec

string

The specifications of the node.

elasticsearch.sn1ne.large

disk

integer

The disk size of the node.

20

diskEncryption

boolean

Specifies whether cloud disk encryption is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

true

diskType

string

The disk type of the node.

cloud_ssd

networkConfig

object

The network configurations.

vpcId

string

The VPC ID.

vpc-bp16k1dvzxtmagcva****

vsArea

string

The zone where the instance is deployed.

cn-hangzhou-*

type

string

The network type. Currently, only VPC is supported.

vpc

vswitchId

string

The vSwitch ID.

vsw-bp1k4ec6s7sjdbudw****

endTime

integer

The time when the instance expires. The value is a UNIX timestamp in milliseconds.

1715826092044

For more parameter descriptions, see ListLogstash.

Examples

Success response

JSON format

{
  "RequestId": "C9334241-4837-46C2-B24B-9BDC517318DE",
  "Result": {
    "config": {
      "slowlog.threshold.warn": "2s",
      "slowlog.threshold.info": "1s",
      "slowlog.threshold.debug": "500ms",
      "slowlog.threshold.trace": "100ms"
    },
    "paymentType": "prepaid",
    "ResourceGroupId": "rg-aekzvowej3i****",
    "nodeAmount": 2,
    "description": "ls-cn-abc",
    "createdAt": "2020-02-06T14:12:03.672Z",
    "status": "active",
    "vpcInstanceId": "vpc-bp16k1dvzxtmagcva****",
    "updatedAt": "2020-02-06T14:22:36.850Z",
    "version": "7.4.0_with_X-Pack",
    "instanceId": "ls-cn-abc",
    "endpointList": [
      {
        "zoneId": "cn-hangzhou-b",
        "port": "9600",
        "host": "172.16.**.**"
      }
    ],
    "Tags": [
      {
        "tagKey": "env",
        "tagValue": "dev"
      }
    ],
    "ZoneInfos": [
      {
        "status": "NORMAL",
        "zoneId": "cn-hangzhou-b"
      }
    ],
    "ExtendConfigs": [
      [
        {
          "configType": "aliVersion",
          "aliVersion": "ali1.3.0"
        }
      ]
    ],
    "nodeSpec": {
      "spec": "elasticsearch.sn1ne.large",
      "disk": 20,
      "diskEncryption": true,
      "diskType": "cloud_ssd"
    },
    "networkConfig": {
      "vpcId": "vpc-bp16k1dvzxtmagcva****",
      "vsArea": "cn-hangzhou-*",
      "type": "vpc",
      "vswitchId": "vsw-bp1k4ec6s7sjdbudw****"
    },
    "endTime": 1715826092044
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.