Skip to content

elasticsearch open-index

Open closed index

Description

Opens a closed index. For data streams, this opens any closed backing indices.

Synopsis

elasticsearch open-index
    [--site <site>]
    [--cluster <cluster>]
    <index>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of elastic search cluster
     Example: --cluster "elastic-default"
     Default: elastic-default      Attributes: optional

index - (string)

     Indices to open
     Example: "students,books"
     Default: _None_      Attributes: required, multiple allowed

Examples

Input:

! elasticsearch open-index --cluster "elastic-1" "test" "test1"
Output:
{
  "acknowledged": true,
  "shards_acknowledged": true
}

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "elasticsearch"
Service Instance cluster
Namespace
Object Type "index"
Object ID index

Please see Access Control for details.