{ "opencollection": "1.0.0", "info": { "name": "OpenSearch Security Plugin REST Account Roles API", "version": "2.x" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Roles", "type": "folder" }, "items": [ { "info": { "name": "List all roles", "type": "http" }, "http": { "method": "GET", "url": "https://{cluster-host}:9200/_plugins/_security/api/roles" }, "docs": "List all roles" }, { "info": { "name": "Get role", "type": "http" }, "http": { "method": "GET", "url": "https://{cluster-host}:9200/_plugins/_security/api/roles/:name", "params": [ { "name": "name", "value": "", "type": "path" } ] }, "docs": "Get role" }, { "info": { "name": "Create or replace a role", "type": "http" }, "http": { "method": "PUT", "url": "https://{cluster-host}:9200/_plugins/_security/api/roles/:name", "params": [ { "name": "name", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create or replace a role" }, { "info": { "name": "Patch role", "type": "http" }, "http": { "method": "PATCH", "url": "https://{cluster-host}:9200/_plugins/_security/api/roles/:name", "params": [ { "name": "name", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Patch role" }, { "info": { "name": "Delete role", "type": "http" }, "http": { "method": "DELETE", "url": "https://{cluster-host}:9200/_plugins/_security/api/roles/:name", "params": [ { "name": "name", "value": "", "type": "path" } ] }, "docs": "Delete role" } ] } ], "bundled": true }