diff --git a/rest-api-spec/api/cluster.repositories.delete.json b/rest-api-spec/api/cluster.repositories.delete.json new file mode 100644 index 00000000000..cd16eeba661 --- /dev/null +++ b/rest-api-spec/api/cluster.repositories.delete.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.repositories.get.json b/rest-api-spec/api/cluster.repositories.get.json new file mode 100644 index 00000000000..9839126e6e8 --- /dev/null +++ b/rest-api-spec/api/cluster.repositories.get.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.repositories.put.json b/rest-api-spec/api/cluster.repositories.put.json new file mode 100644 index 00000000000..52f6a1b28fa --- /dev/null +++ b/rest-api-spec/api/cluster.repositories.put.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.snapshots.create.json b/rest-api-spec/api/cluster.snapshots.create.json new file mode 100644 index 00000000000..68a4506acab --- /dev/null +++ b/rest-api-spec/api/cluster.snapshots.create.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.snapshots.delete.json b/rest-api-spec/api/cluster.snapshots.delete.json new file mode 100644 index 00000000000..47ee4f0b1e7 --- /dev/null +++ b/rest-api-spec/api/cluster.snapshots.delete.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.snapshots.get.json b/rest-api-spec/api/cluster.snapshots.get.json new file mode 100644 index 00000000000..699d4e791a5 --- /dev/null +++ b/rest-api-spec/api/cluster.snapshots.get.json @@ -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 + } +} diff --git a/rest-api-spec/api/cluster.snapshots.restore.json b/rest-api-spec/api/cluster.snapshots.restore.json new file mode 100644 index 00000000000..1b89bb01e84 --- /dev/null +++ b/rest-api-spec/api/cluster.snapshots.restore.json @@ -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 + } +}