Added the API definition for creating or updating an alias

This commit is contained in:
Karel Minarik 2013-05-27 13:03:22 +02:00
parent 554e42f5fb
commit b60945b5cc
1 changed files with 14 additions and 1 deletions

View File

@ -1,26 +1,39 @@
{ {
"indices.alias.put": { "indices.alias.put": {
"documentation": "", "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/",
"methods": ["PUT"], "methods": ["PUT"],
"url": { "url": {
"path": "/{index}/_alias/{name}", "path": "/{index}/_alias/{name}",
"paths": ["/{index}/_alias/{name}", "/_alias/{name}", "/{index}/_alias", "/_alias"], "paths": ["/{index}/_alias/{name}", "/_alias/{name}", "/{index}/_alias", "/_alias"],
"parts": { "parts": {
"index": { "index": {
"type" : "string",
"required" : true,
"description" : "The name of the index with an alias"
}, },
"name": { "name": {
"type" : "string",
"required" : true,
"description" : "The name of the alias to be created or updated"
} }
}, },
"params": { "params": {
"index": { "index": {
"type" : "string",
"description" : "The name of the index with an alias"
}, },
"name": { "name": {
"type" : "string",
"description" : "The name of the alias to be created or updated"
}, },
"timeout": { "timeout": {
"type" : "time",
"description" : "Explicit timestamp for the document"
} }
} }
}, },
"body": { "body": {
"description" : "The settings for the alias, such as `routing` or `filter`"
} }
} }
} }