HI,
below is my elastic cluster -
{
"name" : "myappserver2",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "RK_4iG_2TYqjuVy-1pmb9Q",
"version" : {
"number" : "8.6.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "180c9830da956993e59e2cd70eb32b5e383ea42c",
"build_date" : "2023-01-24T21:35:11.506992272Z",
"build_snapshot" : false,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
I am running command to activate trial..
curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"
but i am getting this error-
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/_license/start_trial?acknowledge=true&pretty]",
"header": {
"WWW-Authenticate": [
"Basic realm="security" charset="UTF-8"",
"ApiKey"
]
}
}
],
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/_license/start_trial?acknowledge=true&pretty]",
"header": {
"WWW-Authenticate": [
"Basic realm="security" charset="UTF-8"",
"ApiKey"
]
}
},
"status": 401
}
can anyone please guide me how can we get API KEY.. provide me link and how to use in curl command.