When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.
At the moment there is no separate REST endpoint for modifying tenants (only). Tenants are part of the role definitions, so the only way at the moment is to GET a role, modify the tenants and then save it again via PUT:
When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.
But that wouldn’t modify the contents of the tenant, it would only change the tenants a role has, right?
···
On Monday, April 2, 2018 at 12:03:14 PM UTC-7, Jochen Kressin wrote:
At the moment there is no separate REST endpoint for modifying tenants (only). Tenants are part of the role definitions, so the only way at the moment is to GET a role, modify the tenants and then save it again via PUT:
When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.
Ah, now I got you. For creating index patterns, dashboards etc. you can use the Kibana API for saved objects. It is not well documented, but works. You can import and export all saved object types with that.
The next version of the SG Kibana plugin (which will be released this week) will support selecting a tenant when using the Kibana saved objects API. I guess you need to wait until it is released, with the current plugin versions it’s not possible I’m afraid.
But that wouldn’t modify the contents of the tenant, it would only change the tenants a role has, right?
On Monday, April 2, 2018 at 12:03:14 PM UTC-7, Jochen Kressin wrote:
At the moment there is no separate REST endpoint for modifying tenants (only). Tenants are part of the role definitions, so the only way at the moment is to GET a role, modify the tenants and then save it again via PUT:
When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.
Great, I’ll look forward to next week’s release! Documentation would be great upon release
···
On Monday, April 2, 2018 at 12:18:51 PM UTC-7, Jochen Kressin wrote:
Ah, now I got you. For creating index patterns, dashboards etc. you can use the Kibana API for saved objects. It is not well documented, but works. You can import and export all saved object types with that.
The next version of the SG Kibana plugin (which will be released this week) will support selecting a tenant when using the Kibana saved objects API. I guess you need to wait until it is released, with the current plugin versions it’s not possible I’m afraid.
But that wouldn’t modify the contents of the tenant, it would only change the tenants a role has, right?
On Monday, April 2, 2018 at 12:03:14 PM UTC-7, Jochen Kressin wrote:
At the moment there is no separate REST endpoint for modifying tenants (only). Tenants are part of the role definitions, so the only way at the moment is to GET a role, modify the tenants and then save it again via PUT:
When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.
Great, I’ll look forward to next week’s release! Documentation would be great upon release
On Monday, April 2, 2018 at 12:18:51 PM UTC-7, Jochen Kressin wrote:
Ah, now I got you. For creating index patterns, dashboards etc. you can use the Kibana API for saved objects. It is not well documented, but works. You can import and export all saved object types with that.
The next version of the SG Kibana plugin (which will be released this week) will support selecting a tenant when using the Kibana saved objects API. I guess you need to wait until it is released, with the current plugin versions it’s not possible I’m afraid.
But that wouldn’t modify the contents of the tenant, it would only change the tenants a role has, right?
On Monday, April 2, 2018 at 12:03:14 PM UTC-7, Jochen Kressin wrote:
At the moment there is no separate REST endpoint for modifying tenants (only). Tenants are part of the role definitions, so the only way at the moment is to GET a role, modify the tenants and then save it again via PUT:
When asking questions, please provide the following information:
Search Guard and Elasticsearch version: 6.2.2
JVM version and operating system version: 1.8
Search Guard configuration files: demo
Hi!
Is there a REST api; such as the REST API to add users, roles, and mappings (https://docs.search-guard.com/latest/rest-api.html); for modifying tenants? For example, I want to automate adding index-patterns or dashboards to tenants on creation.