[SPEC] Added cluster.repositories.* and cluster.snapshots.*

This commit is contained in:
Clinton Gormley 2014-01-16 13:49:24 +01:00
parent 500d6f7098
commit 00ed78f3d6
7 changed files with 198 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{
"cluster.repositories.delete": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["DELETE"],
"url": {
"path": "/_snapshot/{repository}",
"paths": ["/_snapshot/{repository}"],
"parts": {
"repository": {
"type": "list",
"description": "A comma-separated list of repository names"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
}
}
},
"body": null
}
}

View File

@ -0,0 +1,23 @@
{
"cluster.repositories.get": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["GET"],
"url": {
"path": "/_snapshot",
"paths": ["/_snapshot", "/_snapshot/{repository}"],
"parts": {
"repository": {
"type": "list",
"description": "A comma-separated list of repository names"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
}
}
},
"body": null
}
}

View File

@ -0,0 +1,28 @@
{
"cluster.repositories.put": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/_snapshot/{repository}",
"paths": ["/_snapshot/{repository}"],
"parts": {
"repository": {
"type": "string",
"description": "A repository name"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
}
}
},
"description" : "The repository definition",
"required" : true
}
}

View File

@ -0,0 +1,33 @@
{
"cluster.snapshots.create": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/_snapshot/{repository}/{snapshot}",
"paths": ["/_snapshot/{repository}/{snapshot}", "/_snapshot/{repository}/{snapshot}/_create"],
"parts": {
"repository": {
"type": "string",
"description": "A repository name"
},
"snapshot": {
"type": "string",
"description": "A snapshot name"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"wait_for_completion": {
"type": "boolean",
"description": "Should this request wait until the operation has completed before returning",
"default": false
}
}
},
"description" : "The snapshot definition",
"required" : false
}
}

View File

@ -0,0 +1,27 @@
{
"cluster.snapshots.delete": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["DELETE"],
"url": {
"path": "/_snapshot/{repository}/{snapshot}",
"paths": ["/_snapshot/{repository}/{snapshot}"],
"parts": {
"repository": {
"type": "string",
"description": "A repository name"
},
"snapshot": {
"type": "string",
"description": "A snapshot name"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
}
}
},
"body": null
}
}

View File

@ -0,0 +1,27 @@
{
"cluster.snapshots.get": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["GET"],
"url": {
"path": "/_snapshot/{repository}/{snapshot}",
"paths": ["/_snapshot/{repository}/{snapshot}"],
"parts": {
"repository": {
"type": "list",
"description": "A comma-separated list of repository names"
},
"snapshot": {
"type": "list",
"description": "A comma-separated list of snapshot names"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
}
}
},
"body": null
}
}

View File

@ -0,0 +1,33 @@
{
"cluster.snapshots.restore": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["POST"],
"url": {
"path": "/_snapshot/{repository}/{snapshot}/_restore",
"paths": ["/_snapshot/{repository}/{snapshot}/_restore"],
"parts": {
"repository": {
"type": "string",
"description": "A repository name"
},
"snapshot": {
"type": "string",
"description": "A snapshot name"
}
},
"params": {
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"wait_for_completion": {
"type": "boolean",
"description": "Should this request wait until the operation has completed before returning",
"default": false
}
}
},
"description" : "Details of what to restore",
"required" : false
}
}