forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweights.yaml
More file actions
59 lines (58 loc) · 1.46 KB
/
weights.yaml
File metadata and controls
59 lines (58 loc) · 1.46 KB
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
$schema: ../../../../../json_schemas/test_story.schema.yaml
description: Test cluster routing settings.
version: '>= 2.16'
epilogues:
- id: epilogue_weights
path: /_cluster/routing/awareness/zone/weights
method: GET
output:
version:
path: payload._version
default: -1
- path: /_cluster/routing/awareness/weights
method: DELETE
request:
payload:
_version: ${epilogue_weights.version}
chapters:
- synopsis: Get zone routing weights.
id: weights
path: /_cluster/routing/awareness/{attribute}/weights
method: GET
parameters:
attribute: zone
output:
version:
path: payload._version
default: -1
- synopsis: Update zone routing weights.
path: /_cluster/routing/awareness/{attribute}/weights
method: PUT
parameters:
attribute: zone
request:
payload:
weights:
zoneA: '2'
zoneB: '1'
_version: ${weights.version}
response:
status: 200
- synopsis: Get updated zone routing weights version.
id: updated_weights
path: /_cluster/routing/awareness/{attribute}/weights
method: GET
parameters:
attribute: zone
output:
version:
path: payload._version
default: -1
- synopsis: Delete zone routing weights.
path: /_cluster/routing/awareness/weights
method: DELETE
request:
payload:
_version: ${updated_weights.version}
response:
status: 200