Migrates the specified Elasticsearch resource to use SLM.
请求参数
Path 参数
Query 参数
Header 参数
返回响应
🟢200Standard response
application/json
Body
🟠404* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)
* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)
🟠449Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)
🔴500We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://127.0.0.1/deployments//elasticsearch//_enable-slm' \
--header'Authorization: ApiKey {{EC_API_KEY}}'