調用DeleteInstance,釋放指定按量付費類型的阿里云Elasticsearch實例。釋放后,實例所使用的物理資源都被回收,相關數據全部丟失且不可恢復;掛載實例節點的云盤和相應的快照都會被釋放。
說明 實例釋放后數據無法恢復,建議您在釋放實例前先備份數據。具體操作,請參見快照備份與恢復命令。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求頭
該接口使用公共請求頭,無特殊請求頭。請參見公共請求參數文檔。
請求語法
DELETE /openapi/instances/{InstanceId} HTTP/1.1
請求參數
名稱 | 類型 | 位置 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|---|
InstanceId | String | Path | 是 | es-cn-t57p81n7ai89v**** | 實例ID。 |
clientToken | String | Query | 否 | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** | 用于保證請求的冪等性。由客戶端生成該參數值,要保證在不同請求間唯一,最大不超過64個ASCII字符。 |
deleteType | String | Query | 否 | protective | 釋放類型。可選值: |
返回數據
名稱 | 類型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 94B03BBA-A132-42C3-8367-0A0C1C45**** | 請求ID。 |
返回數據中還包括Result參數。詳細信息,請參見ListInstance。
示例
請求示例
DELETE /openapi/instances/es-cn-t57p81n7ai89v****?clientToken=5A2CFF0E-5718-45B5-9D4D-70B3FF****&deleteType=protective HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
正常返回示例
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : {
"instanceId" : "es-cn-z2q1wk6z00007****",
"version" : "6.7.0_with_X-Pack",
"description" : "es-cn-z2q1wk6z00007****",
"nodeAmount" : 3,
"paymentType" : "postpaid",
"status" : "inactive",
"privateNetworkIpWhiteList" : [ "0.0.0.0/0" ],
"enablePublic" : false,
"nodeSpec" : {
"spec" : "elasticsearch.n4.small",
"disk" : 20,
"diskType" : "cloud_ssd",
"diskEncryption" : false
},
"networkConfig" : {
"vpcId" : "vpc-uf6ov5av2bmjgzrfg****",
"vswitchId" : "vsw-uf6r9op1zf38byetr****",
"vsArea" : "cn-shanghai-g",
"type" : "vpc"
},
"createdAt" : "2020-11-06T11:47:27.776Z",
"updatedAt" : "2021-02-01T02:04:19.844Z",
"commodityCode" : "elasticsearch",
"extendConfigs" : [ {
"configType" : "usageScenario",
"value" : "general"
}, {
"configType" : "maintainTime",
"maintainStartTime" : "02:00Z",
"maintainEndTime" : "06:00Z"
}, {
"configType" : "aliVersion",
"aliVersion" : "ali1.3.0"
}, {
"configType" : "deleteProtection",
"deleteTime" : 1612231459805
} ],
"endTime" : 4760352000000,
"clusterTasks" : [ ],
"vpcInstanceId" : "es-cn-z2q1wk6z00007****-worker",
"resourceGroupId" : "rg-acfm2h5vbzd****",
"zoneCount" : 1,
"protocol" : "HTTP",
"zoneInfos" : [ {
"zoneId" : "cn-shanghai-g",
"status" : "NORMAL"
} ],
"instanceType" : "elasticsearch",
"inited" : true,
"tags" : [ {
"tagKey" : "acs:rm:rgId",
"tagValue" : "rg-acfm2h5vbzd****"
} ],
"domain" : "es-cn-z2q1wk6z00007****.elasticsearch.aliyuncs.com",
"port" : 9200,
"esVersion" : "6.7.0_with_X-Pack",
"esConfig" : {
"action.destructive_requires_name" : "true",
"xpack.security.audit.outputs" : "index",
"xpack.watcher.enabled" : "false",
"xpack.security.audit.enabled" : "false",
"action.auto_create_index" : "+.*,-*"
},
"esIPWhitelist" : [ "0.0.0.0/0" ],
"esIPBlacklist" : [ ],
"kibanaProtocol" : "HTTPS",
"kibanaIPWhitelist" : [ "0.0.0.0/0" ],
"kibanaPrivateIPWhitelist" : [ ],
"publicIpWhitelist" : [ ],
"kibanaDomain" : "es-cn-z2q1wk6z00007****.kibana.elasticsearch.aliyuncs.com",
"kibanaPort" : 5601,
"haveKibana" : true,
"instanceCategory" : "x-pack",
"dedicateMaster" : false,
"advancedDedicateMaster" : true,
"masterConfiguration" : {
"spec" : "elasticsearch.sn2ne.large",
"amount" : 3,
"diskType" : "cloud_ssd",
"disk" : 20
},
"haveClientNode" : false,
"warmNode" : false,
"warmNodeConfiguration" : { },
"clientNodeConfiguration" : { },
"kibanaConfiguration" : {
"spec" : "elasticsearch.n4.small",
"amount" : 1,
"disk" : 0
},
"elasticDataNodeConfiguration" : {
"spec" : "elasticsearch.sn1ne.large",
"amount" : 3,
"diskType" : "cloud_efficiency",
"disk" : 20480,
"diskEncryption" : false
},
"haveElasticDataNode" : true,
"dictList" : [ {
"name" : "SYSTEM_MAIN.dic",
"fileSize" : 2782602,
"sourceType" : "ORIGIN",
"type" : "MAIN"
}, {
"name" : "SYSTEM_STOPWORD.dic",
"fileSize" : 132,
"sourceType" : "ORIGIN",
"type" : "STOP"
} ],
"synonymsDicts" : [ ],
"ikHotDicts" : [ ],
"aliwsDicts" : [ ],
"haveGrafana" : false,
"haveCerebro" : false,
"enableKibanaPublicNetwork" : true,
"enableKibanaPrivateNetwork" : false,
"advancedSetting" : {
"gcName" : "CMS"
},
"enableMetrics" : true,
"readWritePolicy" : {
"writeHa" : false
}
},
"RequestId" : "898EF65A-121E-4728-93E3-3412DAA8****"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。