Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Associate actions to REST APIs #292

Closed
bowenlan-amzn opened this issue Sep 10, 2020 · 1 comment
Closed

Associate actions to REST APIs #292

bowenlan-amzn opened this issue Sep 10, 2020 · 1 comment
Assignees
Labels
enhancement An improvement on the existing feature’s functionalities

Comments

@bowenlan-amzn
Copy link
Contributor

bowenlan-amzn commented Sep 10, 2020

Currently, index-management supports 8 REST API. These API are not associated with actions. This feature is to add actions to the REST API without any changes to REST API behavior. This is similar to Elasticsearch API actions which extends org.elasticsearch.action.ActionType. Actions are meant to be used to apply security permissions to REST API.

refer to alerting 232

Proposed actions:

  • updated opendistro prefix
Index policy:  PUT    _opendistro/_ism/policies/{policyID}   - cluster:admin/opendistro/ism/policy/write
Get policy:    GET    _opendistro/_ism/policies/{policyID}   - cluster:admin/opendistro/ism/policy/get
Get policies:  GET    _opendistro/_ism/policies              - cluster:admin/opendistro/ism/policy/search
Delete policy: DELETE _opendistro/_ism/policies/{policyID}   - cluster:admin/opendistro/ism/policy/delete

Add policy:    POST   _opendistro/_ism/add/{index}           - cluster:admin/opendistro/ism/managedindex/add
Change policy: POST   _opendistro/_ism/change_policy/{index} - cluster:admin/opendistro/ism/managedindex/change
Remove policy: POST   _opendistro/_ism/remove/{index}        - cluster:admin/opendistro/ism/managedindex/remove

Explain:       GET    _opendistro/_ism/explain/{index}       - cluster:admin/opendistro/ism/managedindex/explain
Retry:         POST   _opendistro/_ism/retry/{index}         - cluster:admin/opendistro/ism/managedindex/retry
index rollup:  PUT    _opendistro/_rollup/jobs/<rollupID>          - cluster:admin/opendistro/rollup/index
get rollup:    GET    _opendistro/_rollup/jobs/<rollupID>          - cluster:admin/opendistro/rollup/get
get rollups:   GET    _opendistro/_rollup/jobs                     - cluster:admin/opendistro/rollup/search
delete rollup: DELETE _opendistro/_rollup/jobs/<rollupID>          - cluster:admin/opendistro/rollup/delete

start rollup:  POST   _opendistro/_rollup/jobs/<rollupID>/_start   - cluster:admin/opendistro/rollup/start
stop rollup:   POST   _opendistro/_rollup/jobs/<rollupID>/_stop    - cluster:admin/opendistro/rollup/stop
explain:       POST   _opendistro/_rollup/jobs/<rollupID>/_explain - cluster:admin/opendistro/rollup/explain
@dbbaughe
Copy link
Contributor

dbbaughe commented Feb 9, 2021

Have been added

@dbbaughe dbbaughe closed this as completed Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement An improvement on the existing feature’s functionalities
Projects
None yet
Development

No branches or pull requests

2 participants