forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclose.yaml
57 lines (56 loc) · 1.18 KB
/
close.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
$schema: ../../../json_schemas/test_story.schema.yaml
description: Test closing an index.
prologues:
- path: /movies
method: PUT
status: [200]
- path: /games
method: PUT
status: [200]
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
- path: /games
method: DELETE
status: [200, 404]
chapters:
- synopsis: Close an index.
path: /{index}/_close
method: POST
parameters:
index: movies
allow_no_indices: true
expand_wildcards: all
ignore_unavailable: true
wait_for_active_shards: 0
timeout: 30s
response:
status: 200
payload:
indices:
movies:
closed: true
- synopsis: Close an index (cluster_manager_timeout).
path: /{index}/_close
method: POST
version: '>= 2.0'
parameters:
index: games
cluster_manager_timeout: 30s
timeout: 30s
response:
status: 200
payload:
indices:
games:
closed: true
- synopsis: Close an already closed index.
path: /{index}/_close
method: POST
parameters:
index: movies
response:
status: 200
payload:
indices: {}