|
| 1 | +/* |
| 2 | + * Copyright OpenSearch Contributors |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | + |
| 6 | +package org.opensearch.indexmanagement |
| 7 | + |
| 8 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.addpolicy.AddPolicyAction |
| 9 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.deletepolicy.DeletePolicyAction |
| 10 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.explain.ExplainAction |
| 11 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.getpolicy.GetPoliciesAction |
| 12 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.getpolicy.GetPolicyAction |
| 13 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.indexpolicy.IndexPolicyAction |
| 14 | +import org.opensearch.indexmanagement.indexstatemanagement.transport.action.managedIndex.ManagedIndexAction |
| 15 | +import org.opensearch.indexmanagement.rollup.action.delete.DeleteRollupAction |
| 16 | +import org.opensearch.indexmanagement.rollup.action.explain.ExplainRollupAction |
| 17 | +import org.opensearch.indexmanagement.rollup.action.get.GetRollupAction |
| 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 |
| 27 | + |
| 28 | +// ISM |
| 29 | +const val WRITE_POLICY = IndexPolicyAction.NAME |
| 30 | +const val ADD_POLICY = AddPolicyAction.NAME |
| 31 | +const val GET_POLICIES = GetPoliciesAction.NAME |
| 32 | +const val GET_POLICY = GetPolicyAction.NAME |
| 33 | +const val EXPLAIN_INDEX = ExplainAction.NAME |
| 34 | +const val MANAGED_INDEX = ManagedIndexAction.NAME |
| 35 | +const val DELETE_POLICY = DeletePolicyAction.NAME |
| 36 | +// Rollup |
| 37 | +const val ROLLUP_ALL = "cluster:admin/opendistro/rollup/*" |
| 38 | +const val INDEX_ROLLUP = IndexRollupAction.NAME |
| 39 | +const val GET_ROLLUP = GetRollupAction.NAME |
| 40 | +const val EXPLAIN_ROLLUP = ExplainRollupAction.NAME |
| 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" |
| 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