| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | --:api: open-index:request: OpenIndexRequest:response: OpenIndexResponse--[id="{upid}-{api}"]=== Open Index API[id="{upid}-{api}-request"]==== Open Index RequestAn +{request}+ requires an `index` argument:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> The index to open==== Optional argumentsThe following arguments can optionally be provided:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-timeout]--------------------------------------------------<1> Timeout to wait for the all the nodes to acknowledge the index is openedas a `TimeValue`<2> Timeout to wait for the all the nodes to acknowledge the index is openedas a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-masterTimeout]--------------------------------------------------<1> Timeout to connect to the master node as a `TimeValue`<2> Timeout to connect to the master node as a `String`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-waitForActiveShards]--------------------------------------------------<1> The number of active shard copies to wait for before the open index APIreturns a response, as an `int`<2> The number of active shard copies to wait for before  the open index APIreturns a response, as an `ActiveShardCount`["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-indicesOptions]--------------------------------------------------<1> Setting `IndicesOptions` controls how unavailable indices are resolved andhow wildcard expressions are expandedinclude::../execution.asciidoc[][id="{upid}-{api}-response"]==== Open Index ResponseThe returned +{response}+ allows to retrieve information about theexecuted operation as follows:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Indicates whether all of the nodes have acknowledged the request<2> Indicates whether the requisite number of shard copies were started foreach shard in the index before timing out
 |