forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone.yaml
60 lines (59 loc) · 1.31 KB
/
clone.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
58
59
60
$schema: ../../../json_schemas/test_story.schema.yaml
description: Test cloning an index.
prologues:
- path: /movies
method: PUT
- path: /movies/_settings
method: PUT
request:
payload:
settings:
index.blocks.write: true
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
- path: /games1
method: DELETE
status: [200, 404]
- path: /games2
method: DELETE
status: [200, 404]
- path: /games3
method: DELETE
status: [200, 404]
chapters:
- synopsis: Clone an index.
path: /{index}/_clone/{target}
method: POST
parameters:
index: movies
target: games1
wait_for_active_shards: 1
timeout: 10s
response:
status: 200
payload:
shards_acknowledged: true
acknowledged: true
index: games1
- synopsis: Clone an index (wait_for_completion).
version: '>= 2.7'
path: /{index}/_clone/{target}
method: POST
parameters:
index: movies
target: games2
wait_for_completion: true
response:
status: 200
- synopsis: Clone an index (cluster_manager_timeout).
version: '>= 2.0'
path: /{index}/_clone/{target}
method: POST
parameters:
index: movies
target: games3
cluster_manager_timeout: 10s
response:
status: 200