mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[console] Update indices API (#16744)
* index.json * indices.analyze.json * indices.clear_cache.json * indices.close.json * indices.create.json * indices.delete_alias.json * indices.delete_template.json * indices.delete.json * indices.exists_alias.json * indices.exists_template.json * indices.exists_type.json * indices.exists.json * indices.flush_synced.json * indices.flush.json * indices.forcemerge.json * indices.get_alias.json * indices.get_field_mapping.json * indices.get_mapping.json * indices.get_settings.json * indices.get_template.json * indices.get_upgrade.json * indices.get.json * indices.open.json * indices.put_alias.json * indices.recovery.json * indices.refresh.json * indices.rollover.json * indices.segments.json * indices.shard_stores.json * indices.shrink.json * indices.split.json * indices.stats.json * update_aliases.json * indices.upgrade.json * indices.validate_query.json * rm indices.js * indices.put_settings.json * rm settings.js * indices.put_template.json * rm templates.js * rm delete mapping * cleanup requires
This commit is contained in:
parent
209c4df1c0
commit
d7563c6977
53 changed files with 987 additions and 475 deletions
|
@ -8,7 +8,6 @@ let parts = [
|
|||
require('./es_5_0/filter'),
|
||||
require('./es_5_0/nodes'),
|
||||
require('./es_5_0/globals'),
|
||||
require('./es_5_0/indices'),
|
||||
require('./es_5_0/ingest'),
|
||||
require('./es_5_0/mappings'),
|
||||
require('./es_5_0/percolator'),
|
||||
|
@ -16,8 +15,6 @@ let parts = [
|
|||
require('./es_5_0/reindex'),
|
||||
require('./es_5_0/snapshot_restore'),
|
||||
require('./es_5_0/search'),
|
||||
require('./es_5_0/settings'),
|
||||
require('./es_5_0/templates')
|
||||
];
|
||||
|
||||
function ES_5_0() {
|
||||
|
|
|
@ -1,33 +1,4 @@
|
|||
export default function (api) {
|
||||
api.addEndpointDescription('_post_aliases', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"_aliases",
|
||||
],
|
||||
data_autocomplete_rules: {
|
||||
'actions': {
|
||||
__template: [
|
||||
{ 'add': { 'index': 'test1', 'alias': 'alias1' } }
|
||||
],
|
||||
__any_of: [
|
||||
{
|
||||
add: {
|
||||
index: '{index}',
|
||||
alias: '',
|
||||
filter: {},
|
||||
routing: '1',
|
||||
search_routing: '1,2',
|
||||
index_routing: '1'
|
||||
},
|
||||
remove: {
|
||||
index: '',
|
||||
alias: ''
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
api.addEndpointDescription('_get_aliases', {
|
||||
methods: ['GET'],
|
||||
patterns: [
|
||||
|
@ -42,28 +13,12 @@ export default function (api) {
|
|||
index_routing: '1'
|
||||
};
|
||||
|
||||
api.addEndpointDescription('_post_alias', {
|
||||
methods: ["POST", "PUT"],
|
||||
patterns: [
|
||||
"{indices}/_alias/{name}"
|
||||
],
|
||||
data_autocomplete_rules: aliasRules
|
||||
});
|
||||
api.addEndpointDescription('_delete_alias', {
|
||||
methods: ["DELETE"],
|
||||
patterns: [
|
||||
"{indices}/_alias/{name}"
|
||||
]
|
||||
});
|
||||
api.addEndpointDescription('_get_alias', {
|
||||
methods: ["GET"],
|
||||
patterns: [
|
||||
"_alias",
|
||||
"{indices}/_alias",
|
||||
"{indices}/_alias/{name}",
|
||||
"_alias/{name}"
|
||||
]
|
||||
});
|
||||
|
||||
api.addGlobalAutocompleteRules('aliases', {
|
||||
'*': aliasRules
|
||||
|
|
|
@ -1,40 +1,4 @@
|
|||
export default function (api) {
|
||||
api.addEndpointDescription('index_doc', {
|
||||
methods: ['PUT', 'POST'],
|
||||
patterns: [
|
||||
"{index}/{type}/{id}"
|
||||
],
|
||||
url_params: {
|
||||
"version": 1,
|
||||
"version_type": ["external", "internal"],
|
||||
"op_type": ["create"],
|
||||
"routing": "",
|
||||
"parent": "",
|
||||
"timestamp": "",
|
||||
"ttl": "5m",
|
||||
"consistency": ["qurom", "one", "all"],
|
||||
"refresh": "__flag__",
|
||||
"timeout": "1m"
|
||||
}
|
||||
});
|
||||
api.addEndpointDescription('index_doc_no_id', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"{index}/{type}"
|
||||
],
|
||||
url_params: {
|
||||
"version": 1,
|
||||
"version_type": ["external", "internal"],
|
||||
"routing": "",
|
||||
"parent": "",
|
||||
"timestamp": "",
|
||||
"ttl": "5m",
|
||||
"consistency": ["qurom", "one", "all"],
|
||||
"refresh": "__flag__",
|
||||
"timeout": "1m"
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_update', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
|
|
|
@ -1,247 +0,0 @@
|
|||
export default function (api) {
|
||||
api.addEndpointDescription('_refresh', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"_refresh",
|
||||
"{indices}/_refresh"
|
||||
],
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_flush', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"_flush",
|
||||
"{indices}/_flush"
|
||||
],
|
||||
url_params: {
|
||||
wait_if_ongoing: [true, false],
|
||||
force: [true, false]
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
api.addEndpointDescription('_rollover', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"{name}/_rollover",
|
||||
"{name}/_rollover/{name}"
|
||||
],
|
||||
url_params: {
|
||||
wait_for_active_shards: "",
|
||||
dry_run: "__flag__"
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_flush_synced', {
|
||||
methods: ['POST'],
|
||||
patterns: [
|
||||
"_flush/synced",
|
||||
"{indices}/_flush/synced"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_stats', {
|
||||
patterns: [
|
||||
"_stats",
|
||||
"_stats/{metrics}",
|
||||
"{indices}/_stats",
|
||||
"{indices}/_stats/{metrics}",
|
||||
],
|
||||
url_components: {
|
||||
"metrics": [
|
||||
"docs",
|
||||
"store",
|
||||
"indexing",
|
||||
"search",
|
||||
"get",
|
||||
"merge",
|
||||
"refresh",
|
||||
"flush",
|
||||
"warmer",
|
||||
"filter_cache",
|
||||
"percolate",
|
||||
"segments",
|
||||
"fielddata",
|
||||
"completion",
|
||||
"translog",
|
||||
"query_cache",
|
||||
"commit",
|
||||
"_all"
|
||||
]
|
||||
},
|
||||
url_params: {
|
||||
"fields": [],
|
||||
"types": [],
|
||||
"completion_fields": [],
|
||||
"docvalue_fields": [],
|
||||
"level": ["cluster", "indices", "shards"]
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_segments', {
|
||||
patterns: [
|
||||
"{indices}/_segments",
|
||||
"_segments"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_recovery', {
|
||||
patterns: [
|
||||
"{indices}/_recovery",
|
||||
"_recovery"
|
||||
],
|
||||
url_params: {
|
||||
detailed: "__flag__",
|
||||
active_only: "__flag__",
|
||||
human: "__flag__"
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_analyze', {
|
||||
methods: ['GET', 'POST'],
|
||||
patterns: [
|
||||
"{indices}/_analyze",
|
||||
"_analyze"
|
||||
],
|
||||
url_params: {
|
||||
"analyzer": "",
|
||||
"char_filter": [],
|
||||
"field": "",
|
||||
"filter": [],
|
||||
"text": "",
|
||||
"tokenizer": "",
|
||||
"explain": "__flag__",
|
||||
"attributes": []
|
||||
},
|
||||
data_autocomplete_rules: {
|
||||
text: [],
|
||||
field: "{field}",
|
||||
analyzer: "",
|
||||
tokenizer: "",
|
||||
char_filter: [],
|
||||
filter: [],
|
||||
explain: { __one_of: [false, true] },
|
||||
attributes: []
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_validate_query', {
|
||||
methods: ['GET', 'POST'],
|
||||
patterns: [
|
||||
"{indices}/_validate/query",
|
||||
"_validate/query"
|
||||
],
|
||||
url_params: {
|
||||
explain: "__flag__",
|
||||
rewrite: "__flag__"
|
||||
},
|
||||
data_autocomplete_rules: {
|
||||
query: {
|
||||
// populated by a global rule
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_shard_stores', {
|
||||
methods: ['GET'],
|
||||
patterns: [
|
||||
"{indices}/_shard_stores",
|
||||
"_shard_stores"
|
||||
],
|
||||
url_params: {
|
||||
status: ["green", "yellow", "red", "all"]
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('__create_index__', {
|
||||
methods: ['PUT'],
|
||||
patterns: [
|
||||
"{index}"
|
||||
],
|
||||
data_autocomplete_rules: {
|
||||
mappings: {
|
||||
__scope_link: '_put_mapping'
|
||||
},
|
||||
settings: {
|
||||
__scope_link: '_put_settings'
|
||||
},
|
||||
aliases: {
|
||||
__template: {
|
||||
"NAME": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('__delete_indices__', {
|
||||
methods: ['DELETE'],
|
||||
patterns: [
|
||||
"{indices}"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_get_index_settings', {
|
||||
methods: ['GET', ],
|
||||
patterns: [
|
||||
"{indices}/_settings",
|
||||
],
|
||||
url_params: {
|
||||
flat_settings: "__flag__"
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_get_index', {
|
||||
methods: ['GET', ],
|
||||
patterns: [
|
||||
"{indices}",
|
||||
"{indices}/{feature}"
|
||||
],
|
||||
url_components: {
|
||||
"feature": [
|
||||
"_mappings",
|
||||
"_aliases"
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_cache/clear', {
|
||||
patterns: [
|
||||
"_cache/clear",
|
||||
"{indices}/_cache/clear"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_upgrade', {
|
||||
methods: ["POST"],
|
||||
patterns: [
|
||||
"_upgrade",
|
||||
"{indices}/_upgrade"
|
||||
],
|
||||
url_params: {
|
||||
wait_for_completion: "__flag__"
|
||||
}
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_upgrade_status', {
|
||||
methods: ["GET"],
|
||||
patterns: [
|
||||
"_upgrade",
|
||||
"{indices}/_upgrade"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_close', {
|
||||
methods: ["POST"],
|
||||
patterns: [
|
||||
"{indices}/_close"
|
||||
]
|
||||
});
|
||||
|
||||
api.addEndpointDescription('_open', {
|
||||
methods: ["POST"],
|
||||
patterns: [
|
||||
"{indices}/_open"
|
||||
]
|
||||
});
|
||||
}
|
|
@ -5,37 +5,6 @@ var BOOLEAN = {
|
|||
};
|
||||
|
||||
export default function (api) {
|
||||
api.addEndpointDescription('_get_mapping', {
|
||||
methods: ['GET'],
|
||||
priority: 10, // collides with get doc by id
|
||||
patterns: [
|
||||
"{indices}/_mapping",
|
||||
"{indices}/_mapping/{types}",
|
||||
"{indices}/{types}/_mapping",
|
||||
"_mapping"
|
||||
]
|
||||
});
|
||||
api.addEndpointDescription('_get_field_mapping', {
|
||||
methods: ['GET'],
|
||||
priority: 10, // collides with get doc by id
|
||||
patterns: [
|
||||
"{indices}/_mapping/field/{fields}",
|
||||
"{indices}/_mapping/{type}/field/{fields}"
|
||||
],
|
||||
url_params: {
|
||||
"include_defaults": "__flag__"
|
||||
}
|
||||
});
|
||||
api.addEndpointDescription('_delete_mapping', {
|
||||
methods: ['DELETE'],
|
||||
priority: 10, // collides with get doc by id
|
||||
patterns: [
|
||||
"{indices}/_mapping",
|
||||
"{indices}/_mapping/{types}",
|
||||
"{indices}/{types}/_mapping",
|
||||
"_mapping"
|
||||
]
|
||||
});
|
||||
api.addEndpointDescription('_put_type_mapping', {
|
||||
methods: ['PUT', 'POST'],
|
||||
patterns: [
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
export default function (api) {
|
||||
|
||||
api.addEndpointDescription('_get_settings', {
|
||||
patterns: [
|
||||
"{indices}/_settings",
|
||||
"_settings"
|
||||
],
|
||||
url_params: {
|
||||
flat_settings: "__flag__"
|
||||
}
|
||||
});
|
||||
api.addEndpointDescription('_put_settings', {
|
||||
methods: ['PUT'],
|
||||
patterns: [
|
||||
"{indices}/_settings",
|
||||
"_settings"
|
||||
],
|
||||
data_autocomplete_rules: {
|
||||
refresh_interval: '1s',
|
||||
number_of_shards: 5,
|
||||
number_of_replicas: 1,
|
||||
'blocks.read_only': {
|
||||
__one_of: [false, true]
|
||||
},
|
||||
'blocks.read': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
'blocks.write': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
'blocks.metadata': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
term_index_interval: 32,
|
||||
term_index_divisor: 1,
|
||||
'translog.flush_threshold_ops': 5000,
|
||||
'translog.flush_threshold_size': '200mb',
|
||||
'translog.flush_threshold_period': '30m',
|
||||
'translog.disable_flush': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
'cache.filter.max_size': '2gb',
|
||||
'cache.filter.expire': '2h',
|
||||
'gateway.snapshot_interval': '10s',
|
||||
routing: {
|
||||
allocation: {
|
||||
include: {
|
||||
tag: ''
|
||||
},
|
||||
exclude: {
|
||||
tag: ''
|
||||
},
|
||||
require: {
|
||||
tag: ''
|
||||
},
|
||||
total_shards_per_node: -1
|
||||
}
|
||||
},
|
||||
'recovery.initial_shards': {
|
||||
__one_of: ['quorum', 'quorum-1', 'half', 'full', 'full-1']
|
||||
},
|
||||
'ttl.disable_purge': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
analysis: {
|
||||
analyzer: {},
|
||||
tokenizer: {},
|
||||
filter: {},
|
||||
char_filter: {}
|
||||
},
|
||||
'cache.query.enable': {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
shadow_replicas: {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
shared_filesystem: {
|
||||
__one_of: [true, false]
|
||||
},
|
||||
data_path: 'path',
|
||||
codec: {
|
||||
__one_of: ['default', 'best_compression', 'lucene_default']
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
export default function (api) {
|
||||
api.addEndpointDescription('_delete_template', {
|
||||
methods: ['DELETE'],
|
||||
patterns: [
|
||||
"_template/{id}",
|
||||
]
|
||||
});
|
||||
api.addEndpointDescription('_get_template', {
|
||||
methods: ['GET'],
|
||||
patterns: [
|
||||
"_template/{id}",
|
||||
"_template",
|
||||
]
|
||||
});
|
||||
api.addEndpointDescription('_put_template', {
|
||||
methods: ['PUT'],
|
||||
patterns: [
|
||||
"_template/{id}",
|
||||
],
|
||||
data_autocomplete_rules: {
|
||||
template: 'index*',
|
||||
warmers: { __scope_link: '_warmer' },
|
||||
mappings: { __scope_link: '_put_mapping' },
|
||||
settings: { __scope_link: '_put_settings' }
|
||||
}
|
||||
});
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"{index}/{type}": {
|
||||
"url_params": {
|
||||
"wait_for_active_shards": "",
|
||||
"op_type": [
|
||||
"index",
|
||||
"create"
|
||||
],
|
||||
"parent": "",
|
||||
"refresh": [
|
||||
"true",
|
||||
"false",
|
||||
"wait_for"
|
||||
],
|
||||
"routing": "",
|
||||
"timeout": "",
|
||||
"timestamp": "",
|
||||
"ttl": "",
|
||||
"version": "",
|
||||
"version_type": [
|
||||
"internal",
|
||||
"external",
|
||||
"external_gte",
|
||||
"force"
|
||||
],
|
||||
"pipeline": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/{type}",
|
||||
"{indices}/{type}/{id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"_analyze": {
|
||||
"url_params": {
|
||||
"index": "",
|
||||
"prefer_local": "__flag__",
|
||||
"format": [
|
||||
"detailed",
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"GET",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_analyze",
|
||||
"{indices}/_analyze"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"_cache/clear": {
|
||||
"url_params": {
|
||||
"field_data": "__flag__",
|
||||
"fielddata": "__flag__",
|
||||
"fields": [],
|
||||
"query": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"index": [],
|
||||
"recycler": "__flag__",
|
||||
"request_cache": "__flag__",
|
||||
"request": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_cache/clear",
|
||||
"{indices}/_cache/clear"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"{index}/_close": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_close"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"{index}": {
|
||||
"url_params": {
|
||||
"wait_for_active_shards": "",
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"update_all_types": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"{index}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"{index}/_alias/{name}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_alias/{name}",
|
||||
"{indices}/_aliases/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"_template/{name}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_template/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"{index}": {
|
||||
"url_params": {
|
||||
"local": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"flat_settings": "__flag__",
|
||||
"include_defaults": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"HEAD"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_alias/{name}": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"HEAD"
|
||||
],
|
||||
"patterns": [
|
||||
"_alias/{name}",
|
||||
"{indices}/_alias/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"_template/{name}": {
|
||||
"url_params": {
|
||||
"flat_settings": "__flag__",
|
||||
"master_timeout": "",
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"HEAD"
|
||||
],
|
||||
"patterns": [
|
||||
"_template/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"{index}/_mapping/{type}": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"HEAD"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_mapping/{type}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"_flush": {
|
||||
"url_params": {
|
||||
"force": "__flag__",
|
||||
"wait_if_ongoing": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_flush",
|
||||
"{indices}/_flush"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_flush/synced": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_flush/synced",
|
||||
"{indices}/_flush/synced"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"_forcemerge": {
|
||||
"url_params": {
|
||||
"flush": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"max_num_segments": "dynamic",
|
||||
"only_expunge_deletes": "__flag__",
|
||||
"wait_for_merge": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_forcemerge",
|
||||
"{indices}/_forcemerge"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"{index}": {
|
||||
"url_params": {
|
||||
"local": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"flat_settings": "__flag__",
|
||||
"include_defaults": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"_alias/": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_alias",
|
||||
"_alias/{name}",
|
||||
"{indices}/_alias/{name}",
|
||||
"{indices}/_alias"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"_mapping/field/{fields}": {
|
||||
"url_params": {
|
||||
"include_defaults": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_mapping/field/{fields}",
|
||||
"{indices}/_mapping/field/{fields}",
|
||||
"_mapping/{type}/field/{fields}",
|
||||
"{indices}/_mapping/{type}/field/{fields}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"_mapping": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_mapping",
|
||||
"{indices}/_mapping",
|
||||
"_mapping/{type}",
|
||||
"{indices}/_mapping/{type}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"_settings": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"flat_settings": "__flag__",
|
||||
"local": "__flag__",
|
||||
"include_defaults": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_settings",
|
||||
"{indices}/_settings",
|
||||
"{indices}/_settings/{name}",
|
||||
"_settings/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"_template/{name}": {
|
||||
"url_params": {
|
||||
"flat_settings": "__flag__",
|
||||
"master_timeout": "",
|
||||
"local": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_template",
|
||||
"_template/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"_upgrade": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_upgrade",
|
||||
"{indices}/_upgrade"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"{index}/_open": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"wait_for_active_shards": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_open"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"{index}/_alias/{name}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_alias/{name}",
|
||||
"{indices}/_aliases/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"_settings": {
|
||||
"url_params": {
|
||||
"master_timeout": "",
|
||||
"preserve_existing": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"flat_settings": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_settings",
|
||||
"{indices}/_settings"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"_template/{name}": {
|
||||
"url_params": {
|
||||
"order": "",
|
||||
"create": "__flag__",
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"flat_settings": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_template/{name}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"_recovery": {
|
||||
"url_params": {
|
||||
"detailed": "__flag__",
|
||||
"active_only": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_recovery",
|
||||
"{indices}/_recovery"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_refresh": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_refresh",
|
||||
"{indices}/_refresh"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"{alias}/_rollover": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"dry_run": "__flag__",
|
||||
"master_timeout": "",
|
||||
"wait_for_active_shards": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{alias}/_rollover",
|
||||
"{alias}/_rollover/{new_index}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_segments": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"verbose": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_segments",
|
||||
"{indices}/_segments"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"_shard_stores": {
|
||||
"url_params": {
|
||||
"status": [],
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_shard_stores",
|
||||
"{indices}/_shard_stores"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"{index}/_shrink/{target}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"wait_for_active_shards": ""
|
||||
},
|
||||
"methods": [
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_shrink/{target}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"{index}/_split/{target}": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"wait_for_active_shards": ""
|
||||
},
|
||||
"methods": [
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_split/{target}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"_stats": {
|
||||
"url_params": {
|
||||
"completion_fields": [],
|
||||
"fielddata_fields": [],
|
||||
"fields": [],
|
||||
"groups": [],
|
||||
"level": [
|
||||
"cluster",
|
||||
"indices",
|
||||
"shards"
|
||||
],
|
||||
"types": [],
|
||||
"include_segment_file_sizes": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_stats",
|
||||
"_stats/{metrics}",
|
||||
"{indices}/_stats",
|
||||
"{indices}/_stats/{metrics}"
|
||||
],
|
||||
"url_components": {
|
||||
"indices": null,
|
||||
"metrics": [
|
||||
"_all",
|
||||
"completion",
|
||||
"docs",
|
||||
"fielddata",
|
||||
"flush",
|
||||
"get",
|
||||
"indexing",
|
||||
"merge",
|
||||
"query_cache",
|
||||
"refresh",
|
||||
"request_cache",
|
||||
"search",
|
||||
"segments",
|
||||
"store",
|
||||
"suggest",
|
||||
"warmer"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"_aliases": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_aliases"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"_upgrade": {
|
||||
"url_params": {
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"ignore_unavailable": "__flag__",
|
||||
"wait_for_completion": "__flag__",
|
||||
"only_ancient_segments": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_upgrade",
|
||||
"{indices}/_upgrade"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"_validate/query": {
|
||||
"url_params": {
|
||||
"explain": "__flag__",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"q": "",
|
||||
"analyzer": "",
|
||||
"analyze_wildcard": "__flag__",
|
||||
"default_operator": [
|
||||
"AND",
|
||||
"OR"
|
||||
],
|
||||
"df": "",
|
||||
"lenient": "__flag__",
|
||||
"rewrite": "__flag__",
|
||||
"all_shards": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_validate/query",
|
||||
"{indices}/_validate/query",
|
||||
"{indices}/{type}/_validate/query"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"_analyze": {
|
||||
"data_autocomplete_rules": {
|
||||
"text": [],
|
||||
"field": "{field}",
|
||||
"analyzer": "",
|
||||
"tokenizer": "",
|
||||
"char_filter": [],
|
||||
"filter": [],
|
||||
"explain": { "__one_of": [false, true] },
|
||||
"attributes": []
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"{index}": {
|
||||
"patterns": [
|
||||
"{index}"
|
||||
],
|
||||
"data_autocomplete_rules": {
|
||||
"mappings": {
|
||||
"__scope_link": "_put_mapping"
|
||||
},
|
||||
"settings": {
|
||||
"__scope_link": "_put_settings"
|
||||
},
|
||||
"aliases": {
|
||||
"__template": {
|
||||
"NAME": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"_mapping/field/{fields}": {
|
||||
"priority": 10
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"_mapping": {
|
||||
"priority": 10
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"{index}/_alias/{name}": {
|
||||
"data_autocomplete_rules": {
|
||||
"filter": {},
|
||||
"routing": "1",
|
||||
"search_routing": "1,2",
|
||||
"index_routing": "1"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"_settings": {
|
||||
"data_autocomplete_rules": {
|
||||
"refresh_interval": "1s",
|
||||
"number_of_shards": 5,
|
||||
"number_of_replicas": 1,
|
||||
"blocks.read_only": {
|
||||
"__one_of": [false, true]
|
||||
},
|
||||
"blocks.read": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"blocks.write": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"blocks.metadata": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"term_index_interval": 32,
|
||||
"term_index_divisor": 1,
|
||||
"translog.flush_threshold_ops": 5000,
|
||||
"translog.flush_threshold_size": "200mb",
|
||||
"translog.flush_threshold_period": "30m",
|
||||
"translog.disable_flush": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"cache.filter.max_size": "2gb",
|
||||
"cache.filter.expire": "2h",
|
||||
"gateway.snapshot_interval": "10s",
|
||||
"routing": {
|
||||
"allocation": {
|
||||
"include": {
|
||||
"tag": ""
|
||||
},
|
||||
"exclude": {
|
||||
"tag": ""
|
||||
},
|
||||
"require": {
|
||||
"tag": ""
|
||||
},
|
||||
"total_shards_per_node": -1
|
||||
}
|
||||
},
|
||||
"recovery.initial_shards": {
|
||||
"__one_of": ["quorum", "quorum-1", "half", "full", "full-1"]
|
||||
},
|
||||
"ttl.disable_purge": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"analysis": {
|
||||
"analyzer": {},
|
||||
"tokenizer": {},
|
||||
"filter": {},
|
||||
"char_filter": {}
|
||||
},
|
||||
"cache.query.enable": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"shadow_replicas": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"shared_filesystem": {
|
||||
"__one_of": [true, false]
|
||||
},
|
||||
"data_path": "path",
|
||||
"codec": {
|
||||
"__one_of": ["default", "best_compression", "lucene_default"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"_template/{name}": {
|
||||
"data_autocomplete_rules": {
|
||||
"template": "index*",
|
||||
"warmers": { "__scope_link": "_warmer" },
|
||||
"mappings": { "__scope_link": "_mapping" },
|
||||
"settings": { "__scope_link": "_settings" }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"_aliases": {
|
||||
"data_autocomplete_rules": {
|
||||
"actions": {
|
||||
"__template": [
|
||||
{ "add": { "index": "test1", "alias": "alias1" } }
|
||||
],
|
||||
"__any_of": [
|
||||
{
|
||||
"add": {
|
||||
"index": "{index}",
|
||||
"alias": "",
|
||||
"filter": {},
|
||||
"routing": "1",
|
||||
"search_routing": "1,2",
|
||||
"index_routing": "1"
|
||||
},
|
||||
"remove": {
|
||||
"index": "",
|
||||
"alias": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"_upgrade": {
|
||||
"data_autocomplete_rules": {
|
||||
"query": {}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue