Skip to content

Commit 52c96a0

Browse files
committed
6.4 new x-pack API's
1 parent 37f9710 commit 52c96a0

File tree

7 files changed

+173
-0
lines changed

7 files changed

+173
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"xpack.ml.update_filter": {
3+
"methods": [ "POST" ],
4+
"url": {
5+
"path": "/_xpack/ml/filters/{filter_id}/_update",
6+
"paths": [ "/_xpack/ml/filters/{filter_id}/_update" ],
7+
"parts": {
8+
"filter_id": {
9+
"type": "string",
10+
"required": true,
11+
"description": "The ID of the filter to update"
12+
}
13+
}
14+
},
15+
"body": {
16+
"description" : "The filter update",
17+
"required" : true
18+
}
19+
}
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"xpack.rollup.get_rollup_index_caps": {
3+
"documentation": "",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/{index}/_xpack/rollup/data",
7+
"paths": [ "/{index}/_xpack/rollup/data" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The rollup index or index pattern to obtain rollup capabilities from."
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"xpack.security.delete_privileges": {
3+
"documentation": "TODO",
4+
"methods": [ "DELETE" ],
5+
"url": {
6+
"path": "/_xpack/security/privilege/{application}/{name}",
7+
"paths": [ "/_xpack/security/privilege/{application}/{name}" ],
8+
"parts": {
9+
"application": {
10+
"type" : "string",
11+
"description" : "Application name",
12+
"required" : true
13+
},
14+
"name": {
15+
"type" : "string",
16+
"description" : "Privilege name",
17+
"required" : true
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type" : "enum",
23+
"options": ["true", "false", "wait_for"],
24+
"description" : "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
25+
}
26+
}
27+
},
28+
"body": null
29+
}
30+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"xpack.security.get_privileges": {
3+
"documentation": "TODO",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/_xpack/security/privilege/{application}/{name}",
7+
"paths": [ "/_xpack/security/privilege/{application}/{name}" ],
8+
"parts": {
9+
"application": {
10+
"type" : "string",
11+
"description" : "Application name",
12+
"required" : false
13+
},
14+
"name": {
15+
"type" : "string",
16+
"description" : "Privilege name",
17+
"required" : false
18+
}
19+
},
20+
"params": {}
21+
},
22+
"body": null
23+
}
24+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"xpack.security.has_privileges": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-privileges.html",
4+
"methods": [ "GET", "POST" ],
5+
"url": {
6+
"path": "/_xpack/security/user/_has_privileges",
7+
"paths": [ "/_xpack/security/user/_has_privileges", "/_xpack/security/user/{user}/_has_privileges" ],
8+
"parts": {
9+
"user": {
10+
"type" : "string",
11+
"description" : "Username",
12+
"required" : false
13+
}
14+
},
15+
"params": {}
16+
},
17+
"body": {
18+
"description" : "The privileges to test",
19+
"required" : true
20+
}
21+
}
22+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"xpack.security.put_privilege": {
3+
"documentation": "TODO",
4+
"methods": [ "POST", "PUT" ],
5+
"url": {
6+
"path": "/_xpack/security/privilege/{application}/{name}",
7+
"paths": [ "/_xpack/security/privilege/{application}/{name}" ],
8+
"parts": {
9+
"application": {
10+
"type" : "string",
11+
"description" : "Application name",
12+
"required" : true
13+
},
14+
"name": {
15+
"type" : "string",
16+
"description" : "Privilege name",
17+
"required" : true
18+
}
19+
},
20+
"params": {
21+
"refresh": {
22+
"type" : "enum",
23+
"options": ["true", "false", "wait_for"],
24+
"description" : "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
25+
}
26+
}
27+
},
28+
"body": {
29+
"description" : "The privilege to add",
30+
"required" : true
31+
}
32+
}
33+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"xpack.security.put_privileges": {
3+
"documentation": "TODO",
4+
"methods": [ "POST" ],
5+
"url": {
6+
"path": "/_xpack/security/privilege/",
7+
"paths": [
8+
"/_xpack/security/privilege/"
9+
],
10+
"params": {
11+
"refresh": {
12+
"type": "enum",
13+
"options": [
14+
"true",
15+
"false",
16+
"wait_for"
17+
],
18+
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
19+
}
20+
}
21+
},
22+
"body": {
23+
"description" : "The privilege(s) to add",
24+
"required" : true
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)