Skip to main content
POST
/
deployments
/
{deployment_id}
/
elasticsearch
/
{ref_id}
/
_enable-ilm
Migrate Elasticsearch resource to use ILM
curl --request POST \
  --url https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "index_patterns": [
    {
      "index_pattern": "<string>",
      "node_attributes": {
        "dolore8b": "<string>",
        "sintc_": "<string>"
      },
      "policy_name": "<string>"
    },
    {
      "index_pattern": "<string>",
      "node_attributes": {
        "ipsum87": "<string>",
        "pariaturd": "<string>"
      },
      "policy_name": "<string>"
    }
  ]
}'
{
  "warnings": [
    {
      "code": "<string>",
      "message": "<string>"
    },
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

deployment_id
string
required

(Required) Identifier for the Deployment.

Example:

"<string>"

ref_id
string
required

(Required) User-specified RefId for the Resource (or '_main' if there is only one).

Example:

"<string>"

Query Parameters

validate_only
string

When true, does not enable ILM but returns warnings if any applications may lose availability during ILM migration.

Example:

"false"

Body

application/json
index_patterns
object[]
Example:
[
{
"index_pattern": "<string>",
"node_attributes": {
"dolore8b": "<string>",
"sintc_": "<string>"
},
"policy_name": "<string>"
},
{
"index_pattern": "<string>",
"node_attributes": {
"ipsum87": "<string>",
"pariaturd": "<string>"
},
"policy_name": "<string>"
}
]

Response

Standard response

warnings
object[]
Example:
[
{ "code": "<string>", "message": "<string>" },
{ "code": "<string>", "message": "<string>" }
]
I