调用DeleteLogstash,释放指定实例。

在调用接口前,请注意:

释放后,实例所使用的物理资源都被回收,相关数据全部丢失且不可恢复;挂载实例节点的云盘也会被释放;相应的快照会被删除。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

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

请求参数

名称 类型 是否必选 示例值 描述
InstanceId String ls-cn-n6w1o5jq****

实例ID。

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

用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大不超过64个ASCII字符。

返回数据

名称 类型 示例值 描述
RequestId String 94B03BBA-A132-42C3-8367-0A0C1C45****

请求ID。

返回数据中还包括Result参数,参数说明请参见ListLogstash

示例

请求示例

DELETE /openapi/logstashes/[InstanceId] HTTP/1.1
公共请求头
{
"InstanceId": "ls-cn-n6w1o5jq****"
}

正常返回示例

XML 格式

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

JSON 格式

{
    "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****.elasticsearch.aliyuncs.com:9200\"]",
            "slowlog.threshold.warn": "2s",
            "slowlog.threshold.info": "1s",
            "slowlog.threshold.trace": "100ms"
        },
        "endpointList": [
            {
                "host": "172.16.**.**",
                "port": 9600,
                "zoneId": "cn-hangzhou-i"
            }
        ]
    },
    "RequestId": "5766F858-B38C-4CFA-8044-69C7C8A5****"
}

错误码

访问错误中心查看更多错误码。