|
5 | 5 |
|
6 | 6 | package org.opensearch.indexmanagement |
7 | 7 |
|
| 8 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.addpolicy.AddPolicyAction |
| 9 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.deletepolicy.DeletePolicyAction |
8 | 10 | import org.opensearch.indexmanagement.indexstatemanagement.transport.action.explain.ExplainAction |
9 | 11 | import org.opensearch.indexmanagement.indexstatemanagement.transport.action.getpolicy.GetPoliciesAction |
10 | 12 | import org.opensearch.indexmanagement.indexstatemanagement.transport.action.getpolicy.GetPolicyAction |
11 | 13 | import org.opensearch.indexmanagement.indexstatemanagement.transport.action.indexpolicy.IndexPolicyAction |
12 | 14 | import org.opensearch.indexmanagement.indexstatemanagement.transport.action.managedIndex.ManagedIndexAction |
| 15 | +import org.opensearch.indexmanagement.rollup.action.delete.DeleteRollupAction |
13 | 16 | import org.opensearch.indexmanagement.rollup.action.explain.ExplainRollupAction |
14 | 17 | import org.opensearch.indexmanagement.rollup.action.get.GetRollupAction |
15 | 18 | import org.opensearch.indexmanagement.rollup.action.index.IndexRollupAction |
| 19 | +import org.opensearch.indexmanagement.rollup.action.mapping.UpdateRollupMappingAction |
| 20 | +import org.opensearch.indexmanagement.transform.action.delete.DeleteTransformsAction |
| 21 | +import org.opensearch.indexmanagement.transform.action.explain.ExplainTransformAction |
| 22 | +import org.opensearch.indexmanagement.transform.action.get.GetTransformAction |
| 23 | +import org.opensearch.indexmanagement.transform.action.get.GetTransformsAction |
| 24 | +import org.opensearch.indexmanagement.transform.action.index.IndexTransformAction |
| 25 | +import org.opensearch.indexmanagement.transform.action.start.StartTransformAction |
| 26 | +import org.opensearch.indexmanagement.transform.action.stop.StopTransformAction |
16 | 27 |
|
| 28 | +// ISM |
17 | 29 | const val WRITE_POLICY = IndexPolicyAction.NAME |
| 30 | +const val ADD_POLICY = AddPolicyAction.NAME |
18 | 31 | const val GET_POLICIES = GetPoliciesAction.NAME |
19 | 32 | const val GET_POLICY = GetPolicyAction.NAME |
20 | 33 | const val EXPLAIN_INDEX = ExplainAction.NAME |
21 | 34 | const val MANAGED_INDEX = ManagedIndexAction.NAME |
| 35 | +const val DELETE_POLICY = DeletePolicyAction.NAME |
| 36 | +// Rollup |
22 | 37 | const val ROLLUP_ALL = "cluster:admin/opendistro/rollup/*" |
23 | 38 | const val INDEX_ROLLUP = IndexRollupAction.NAME |
24 | 39 | const val GET_ROLLUP = GetRollupAction.NAME |
25 | 40 | const val EXPLAIN_ROLLUP = ExplainRollupAction.NAME |
26 | | - |
27 | | -// Index related |
28 | | -const val GET_INDEX = "indices:admin/mappings/get" |
| 41 | +const val UPDATE_ROLLUP = UpdateRollupMappingAction.NAME |
| 42 | +const val DELETE_ROLLUP = DeleteRollupAction.NAME |
| 43 | +// Transform |
| 44 | +const val TRANSFORM_ACTION = IndexTransformAction.NAME |
| 45 | +const val GET_TRANSFORM = GetTransformAction.NAME |
| 46 | +const val EXPLAIN_TRANSFORM = ExplainTransformAction.NAME |
| 47 | +const val START_TRANSFORM = StartTransformAction.NAME |
| 48 | +const val DELETE_TRANSFORM = DeleteTransformsAction.NAME |
| 49 | +const val GET_TRANSFORMS = GetTransformsAction.NAME |
| 50 | +const val STOP_TRANSFORM = StopTransformAction.NAME |
| 51 | +// In order to execute transform, user need to have health privilege |
| 52 | +const val HEALTH = "cluster:monitor/health" |
| 53 | +// Index |
| 54 | +const val GET_INDEX_MAPPING = "indices:admin/mappings/get" |
| 55 | +const val PUT_INDEX_MAPPING = "indices:admin/mapping/put" |
29 | 56 | const val SEARCH_INDEX = "indices:data/read/search" |
| 57 | +const val CREATE_INDEX = "indices:admin/create" |
| 58 | +const val WRITE_INDEX = "indices:data/write/index" |
| 59 | +const val BULK_WRITE_INDEX = "indices:data/write/bulk*" |
0 commit comments