-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathsecurity.put_role_mapping.json
39 lines (39 loc) · 1.14 KB
/
security.put_role_mapping.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"security.put_role_mapping": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html",
"description": "Creates and updates role mappings."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_security/role_mapping/{name}",
"methods": ["PUT", "POST"],
"parts": {
"name": {
"type": "string",
"description": "Role-mapping name"
}
}
}
]
},
"params": {
"refresh": {
"type": "enum",
"options": ["true", "false", "wait_for"],
"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."
}
},
"body": {
"description": "The role mapping to add",
"required": true
}
}
}