2013-05-24 06:02:42 -04:00
|
|
|
{
|
2013-06-07 12:54:21 -04:00
|
|
|
"indices.put_alias": {
|
2013-05-27 07:03:22 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["PUT"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/_alias/{name}",
|
|
|
|
"paths": ["/{index}/_alias/{name}", "/_alias/{name}", "/{index}/_alias", "/_alias"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-27 07:03:22 -04:00
|
|
|
"type" : "string",
|
2013-06-20 06:52:46 -04:00
|
|
|
"required" : true,
|
2013-05-27 07:03:22 -04:00
|
|
|
"description" : "The name of the index with an alias"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"name": {
|
2013-05-27 07:03:22 -04:00
|
|
|
"type" : "string",
|
2013-06-20 06:52:46 -04:00
|
|
|
"required" : true,
|
2013-05-27 07:03:22 -04:00
|
|
|
"description" : "The name of the alias to be created or updated"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"timeout": {
|
2013-05-27 07:03:22 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit timestamp for the document"
|
2013-07-22 18:06:25 -04:00
|
|
|
},
|
|
|
|
"master_timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Specify timeout for connection to master"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2013-06-08 09:34:13 -04:00
|
|
|
"description" : "The settings for the alias, such as `routing` or `filter`",
|
2013-06-20 09:05:37 -04:00
|
|
|
"required" : false
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|