fixed the snapshot.create urls
This commit is contained in:
@ -92,11 +92,7 @@ module.exports = {
|
||||
'/{index}/_stats/search/{search_groups}',
|
||||
'/{index}/_stats/fielddata/{fields}'
|
||||
],
|
||||
'cluster.createSnapshot': [
|
||||
'/_snapshot/{repository}/{snapshot}/_create'
|
||||
],
|
||||
'snapshot.create': [
|
||||
'/_snapshot/{repository}/{snapshot}',
|
||||
'/_snapshot/{repository}/{snapshot}/_create'
|
||||
]
|
||||
};
|
||||
@ -4320,6 +4320,18 @@ api.snapshot.prototype.create = ca({
|
||||
name: 'wait_for_completion'
|
||||
}
|
||||
},
|
||||
url: {
|
||||
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
|
||||
req: {
|
||||
repository: {
|
||||
type: 'string'
|
||||
},
|
||||
snapshot: {
|
||||
type: 'string'
|
||||
}
|
||||
},
|
||||
sortOrder: -2
|
||||
},
|
||||
method: 'POST'
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user