[SPEC] Added cluster.repositories.* and cluster.snapshots.*
This commit is contained in:
parent
500d6f7098
commit
00ed78f3d6
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue