[role="xpack"]
[testenv="basic"]
[[unfreeze-index-api]]
== Unfreeze index API
++++
Unfreeze index
++++
Unfreezes an index.
[float]
=== Request
`POST //_unfreeze`
[float]
=== Description
When a frozen index is unfrozen, the index goes through the normal recovery
process and becomes writeable again. See <> and <>.
[float]
=== Path Parameters
`index` (required)::
(string) Identifier for the index
//=== Query Parameters
//=== Authorization
[float]
=== Examples
The following example freezes and unfreezes an index:
[source,js]
--------------------------------------------------
POST /my_index/_freeze
POST /my_index/_unfreeze
--------------------------------------------------
// CONSOLE
// TEST[s/^/PUT my_index\n/]
[IMPORTANT]
================================
Freezing an index will close the index and reopen it within the same API call. This causes primaries to not be allocated for a short
amount of time and causes the cluster to go red until the primaries are allocated again. This limitation might be removed in the future.
================================