Skip to content

Commit 6253a20

Browse files
Update rest-api-spec main (#2672) (#2693)
Co-authored-by: delvedor <4865608+delvedor@users.noreply.github.com> (cherry picked from commit d555c1a) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6fc9c19 commit 6253a20

File tree

5 files changed

+201
-0
lines changed

5 files changed

+201
-0
lines changed

output/schema/schema.json

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"security.bulk_delete_role": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html",
5+
"description": "Bulk delete roles in the native realm."
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_security/role",
17+
"methods": ["DELETE"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"refresh": {
23+
"type": "enum",
24+
"options": ["true", "false", "wait_for"],
25+
"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."
26+
}
27+
},
28+
"body": {
29+
"description": "The roles to delete",
30+
"required": true
31+
}
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"security.bulk_put_role": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html",
5+
"description": "Bulk adds and updates roles in the native realm."
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_security/role",
17+
"methods": ["POST"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"refresh": {
23+
"type": "enum",
24+
"options": ["true", "false", "wait_for"],
25+
"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."
26+
}
27+
},
28+
"body": {
29+
"description": "The roles to add",
30+
"required": true
31+
}
32+
}
33+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"security.query_role": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html",
5+
"description": "Retrieves information for Roles using a subset of query DSL"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_security/_query/role",
17+
"methods": ["GET", "POST"]
18+
}
19+
]
20+
},
21+
"body": {
22+
"description": "From, size, query, sort and search_after",
23+
"required": false
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)