Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:opensearch [2025/05/21 09:37] – created 5.152.82.90wiki:opensearch [2025/05/21 09:38] (current) – [Users] 5.152.82.90
Line 7: Line 7:
 ===Create role=== ===Create role===
 <code> <code>
-curl -s -H "Content-Type: application/json" -u "$admin_user:$admin_pass" -X PUT "$url/_opendistro/_security/api/roles/$role_name" -d '{"cluster_permissions": [],"index_permissions": [{"index_patterns": ["graylog_*"],"allowed_actions": ["read","write","delete","manage","index","create","update","manage_aliases","manage_settings"]}],"tenant_permissions": []}'|jq+curl -s -H "Content-Type: application/json" -u "$admin_user:$admin_pass" -X PUT "$url/_opendistro/_security/api/roles/$role_name" -d  
 +'{ 
 +  "cluster_permissions": [], 
 +  "index_permissions": [{"index_patterns": ["graylog_*"],"allowed_actions": ["read","write","delete","manage","index","create","update","manage_aliases","manage_settings"]}], 
 +  "tenant_permissions": [] 
 +}'|jq
 curl -s -H "Content-Type: application/json" -u "$user:$pass" -X GET "$url/_opendistro/_security/api/roles"|jq curl -s -H "Content-Type: application/json" -u "$user:$pass" -X GET "$url/_opendistro/_security/api/roles"|jq
 </code> </code>
Navigation
Print/export
QR Code
QR Code wiki:opensearch (generated for current page)