Call DeleteLogstash to release a specified instance.

Before you call an interface, note the following:

After an instance is released, the physical resources used by the instance are recycled. All related data is lost and cannot be recovered. The Cloud disks attached to the instance nodes are also released. The corresponding snapshots are deleted.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request header

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

DELETE /openapi/logstashes/[InstanceId] HTTPS|HTTP 

Request parameters

Parameter Type Required Example Description
InstanceId String Yes ls-cn-n6w1o5jq****

The ID of the instance.

clientToken String No 5A2CFF0E-5718-45B5-9D4D-70B3FF****

A unique token generated by the client to guarantee the idempotency of the request. The value of this parameter is generated by the client and is unique among different requests. The maximum length is 64 ASCII characters.

Response parameters

Parameter Type Example Description
RequestId String 94B03BBA-A132-42C3-8367-0A0C1C45****

The ID of the request.

The returned data also includes the Result parameter. For more information about the parameters, see ListLogstash.


Sample requests

DELETE /openapi/logstashes/ls-cn-n6w1o5jq**** HTTP/1.1 
common request header 

Sample success responses

JSON Syntax

    "Result": {
        "instanceId": "ls-cn-n6w1o5jq****",
        "version": "6.7.0_with_X-Pack",
        "description": "test",
        "nodeAmount": 1,
        "paymentType": "postpaid",
        "status": "active",
        "enablePublic": false,
        "nodeSpec": {
            "spec": "elasticsearch.sn1ne.large",
            "disk": 50,
            "diskType": "cloud_ssd"
        "networkConfig": {
            "vpcId": "vpc-bp16k1dvzxtmagcva****",
            "vswitchId": "vsw-bp1k4ec6s7sjdbudw****",
            "vsArea": "cn-hangzhou-i",
            "type": "vpc"
        "createdAt": "2020-05-27T01:30:15.947Z",
        "updatedAt": "2020-07-08T02:39:02.190Z",
        "commodityCode": "elasticsearch_logstash_post",
        "extendConfigs": [],
        "endTime": 4749897600000,
        "clusterTasks": [],
        "resourceGroupId": "rg-acfm2h5vbzd****",
        "zoneCount": 1,
        "protocol": "HTTP",
        "zoneInfos": [
                "zoneId": "cn-hangzhou-i",
                "status": "NORMAL"
        "instanceType": "logstash",
        "inited": true,
        "tags": [],
        "config": {
            "xpack.monitoring.elasticsearch.username": "elastic",
            "xpack.monitoring.enabled": "true",
            "slowlog.threshold.debug": "500ms",
            "xpack.monitoring.elasticsearch.password": "Elasti****",
            "xpack.monitoring.elasticsearch.hosts": "[\"http://es-cn-n6w1o1x0w001c****\"]",
            "slowlog.threshold.warn": "2s",
            "": "1s",
            "slowlog.threshold.trace": "100ms"
        "endpointList": [
                "host": "172.16.**.**",
                "port": 9600,
                "zoneId": "cn-hangzhou-i"
    "RequestId": "5766F858-B38C-4CFA-8044-69C7C8A5****"

Error codes

For a list of error codes, visit the API Error Center.