Authorization rules of applications

更新时间:
复制 MD 格式

Each API operation in OpenSearch maps to a RAM action and a resource pattern. Use this reference when writing RAM policies to grant or restrict access to OpenSearch resources.

How to read these tables:

  • POP action — the API operation name used in code and API calls.

  • RAM action — the permission string to include in the Action element of a RAM policy.

  • Resource pattern — the resource scope for the action. In the management operations table, patterns use a short path format (for example, apps/$appGroupName). Prepend acs:opensearch:$regionId:$accountId: to construct the full ARN for your RAM policy.

Quick reference by scenario

Use this table to identify the RAM actions required for common tasks before consulting the full reference tables below.

ScenarioRequired RAM actions
Search documentsopensearch:SearchApp
Push documentsopensearch:PushDoc
Retrieve drop-down suggestionsopensearch:SearchSuggest
Create and manage applicationsopensearch:CreateAppGroup, opensearch:ModifyAppGroup, opensearch:RemoveAppGroup
View application details and metricsopensearch:DescribeAppGroup, opensearch:ListAppGroup, opensearch:ListAppGroupMetric
Manage A/B test groups and experimentsopensearch:CreateApp, opensearch:UpdateApp, opensearch:DeleteApp, opensearch:ListApp, opensearch:DescribeApp
Manage intervention dictionariesopensearch:WriteInterventionDictionary, opensearch:DescribeInterventionDictionary, opensearch:ListInterventionDictionaries
Manage custom analyzersopensearch:CreateUserAnalyzer, opensearch:DeleteUserAnalyzer, opensearch:WriteUserAnalyzer, opensearch:DescribeUserAnalyzer, opensearch:ListUserAnalyzers
Manage ranking expressionsopensearch:WriteFirstRank, opensearch:WriteSecondRank, opensearch:ListFirstRank, opensearch:ListSecondRank, opensearch:DescribeFirstRank, opensearch:DescribeSecondRank
Manage scheduled tasksopensearch:CreateScheduledTask, opensearch:RemoveScheduledTask, opensearch:ModifyScheduledTask, opensearch:ListScheduledTask, opensearch:DescribeScheduledTask

Authorization rules for management operations

Resource patterns in this table use the short path format. To use them in a RAM policy, prepend acs:opensearch:$regionId:$accountId: — for example, acs:opensearch:$regionId:$accountId:apps/$appGroupName.

POP actionAction descriptionRAM actionResource pattern
CreateABTestGroupCreates an A/B test group.opensearch:CreateAppapps/$appGroupName
DeleteABTestGroupDeletes an A/B test group.opensearch:DeleteAppapps/$appGroupName
ListABTestGroupsLists A/B test groups.opensearch:ListAppapps/$appGroupName
ListABTestMetricsLists data reports for A/B tests.opensearch:DescribeAppapps/$appGroupName
DescribeABTestGroupGets the details of an A/B test group.opensearch:DescribeAppapps/$appGroupName
UpdateABTestGroupUpdates an A/B test group.opensearch:UpdateAppapps/$appGroupName
CreateABTestExperimentCreates an A/B test experiment.opensearch:CreateAppapps/$appGroupName
DeleteABTestExperimentDeletes an A/B test experiment.opensearch:DeleteAppapps/$appGroupName
ListABTestExperimentsLists A/B test experiments.opensearch:ListAppapps/$appGroupName
DescribeABTestExperimentGets the details of an A/B test experiment.opensearch:DescribeAppapps/$appGroupName
UpdateABTestExperimentUpdates the parameters of an A/B test experiment.opensearch:UpdateAppapps/$appGroupName
CreateABTestSceneCreates an A/B test scenario.opensearch:CreateAppapps/$appGroupName
DeleteABTestSceneDeletes an A/B test scenario.opensearch:DeleteAppapps/$appGroupName
ListABTestScenesLists A/B test scenarios.opensearch:ListAppapps/$appGroupName
DescribeABTestSceneGets the details of an A/B test scenario.opensearch:DescribeAppapps/$appGroupName
UpdateABTestSceneUpdates an A/B test scenario.opensearch:UpdateAppapps/$appGroupName
ListABTestFixedFlowDividersLists the flow_divider whitelist.opensearch:ListAppapps/$appGroupName
UpdateABTestFixedFlowDividersUpdates the flow_divider whitelist.opensearch:UpdateAppapps/$appGroupName
UpdateSuggestionDictionaryUpdates multiple entries in the drop-down suggestion whitelist or blacklist at a time.opensearch:WriteSuggestsuggestions/$suggestionIdentity
ListSuggestionModelsLists models for a drop-down suggestion.opensearch:DescribeSuggestsuggestions/$suggestionIdentity
ListDeployedAlgorithmModelsLists deployed algorithm models.opensearch:DescribeAppapps/$appGroupName
ListAppsLists all application versions.opensearch:ListAppapps/*
CreateAppGroupCreates an application.opensearch:CreateAppGroupapp-groups/*
DescribeAppGroupDataReportGets the data quality report of an application.opensearch:DescribeAppapps/$appGroupName
RemoveAppGroupDeletes an application.opensearch:RemoveAppGroupapp-groups/$appGroupName
ListAppGroupErrorsLists the error logs of an application.opensearch:ListAppGroupErrorsapp-groups/$appGroupName
ListAppGroupsLists applications.opensearch:ListAppGroupapp-groups/*
ListAppGroupMetricsLists the data reports of an application.opensearch:ListAppGroupMetricapp-groups/$appGroupName
RenewAppGroupRenews an application.opensearch:UpdateAppapps/$appGroupName
DescribeAppGroupGets the details of an application.opensearch:DescribeAppGroupapp-groups/$appGroupName
ReplaceAppGroupCommodityCodeConverts a service-based application to an instance-based application.opensearch:UpdateAppapps/$appGroupName
ModifyAppGroupModifies the attributes of an application or switches it to online.opensearch:ModifyAppGroupapp-groups/$appGroupName
ModifyAppGroupQuotaModifies the application quota.opensearch:updateAppGroupQuotaapp-groups/$appGroupName
CreateAppCreates an application version.opensearch:CreateAppapp-groups/$appGroupName
RemoveAppDeletes an application version.opensearch:RemoveAppapp-groups/$appGroupName
DescribeAppsLists application versions.opensearch:ListAppapp-groups/$appGroupName
DescribeAppGets the details of an application version.opensearch:DescribeAppapp-groups/$appGroupName
DescribeAppStatisticsGets statistical results for an application version.opensearch:DescribeAppStatisticsapp-groups/$appGroupName
UpdateFetchFieldsUpdates the default display fields of an application version.opensearch:UpdateAppapps/$appGroupName
CreateDataCollectionEnables data collection for an application.opensearch:WriteDataCollectionapps/$appGroupName
RemoveDataCollectionDisables data collection for an application.opensearch:WriteDataCollectionapps/$appGroupName
ListDataCollectionsLists the data collections of an application.opensearch:ListDataCollectionsapps/$appGroupName
DescribeDataCollectionGets the data collection details of an application.opensearch:DescribeDataCollectionapps/$appGroupName
CreateFirstRankCreates a rough sort expression for an application version.opensearch:WriteFirstRankapps/$appGroupName
RemoveFirstRankDeletes a rough sort expression of an application version.opensearch:WriteFirstRankapps/$appGroupName
ListFirstRanksLists the rough sort expressions of an application version.opensearch:ListFirstRankapps/$appGroupName
DescribeFirstRankGets the details of a rough sort expression of an application version.opensearch:DescribeFirstRankapps/$appGroupName
ModifyFirstRankModifies a rough sort expression of an application version.opensearch:WriteFirstRankapps/$appGroupName
PushInterventionDictionaryEntriesModifies entries in an intervention dictionary.opensearch:WriteInterventionDictionaryintervention-dictionaries/$dictionaryName
ListInterventionDictionaryEntriesLists entries in an intervention dictionary.opensearch:DescribeInterventionDictionaryintervention-dictionaries/$dictionaryName
CreateInterventionDictionaryCreates an intervention dictionary.opensearch:WriteInterventionDictionaryintervention-dictionaries/*
RemoveInterventionDictionaryDeletes an intervention dictionary.opensearch:WriteInterventionDictionaryintervention-dictionaries/$dictionaryName
ListInterventionDictionariesLists the intervention dictionaries of a user.opensearch:ListInterventionDictionariesintervention-dictionaries/*
ListInterventionDictionaryNerResultsLists the named entity recognition (NER) results of an intervention dictionary.opensearch:DescribeInterventionDictionaryintervention-dictionaries/$dictionaryName
ListInterventionDictionaryRelatedEntitiesLists the resources associated with an intervention dictionary.opensearch:DescribeInterventionDictionaryintervention-dictionaries/$dictionaryName
DescribeInterventionDictionaryGets the details of an intervention dictionary.opensearch:DescribeInterventionDictionaryintervention-dictionaries/$dictionaryName
ListSlowQueryCategoriesLists optimization suggestions for slow queries.opensearch:ListOptimizerSlowQueryCategoriesapps/$appGroupName
StartSlowQueryAnalyzerStarts slow query analysis immediately.opensearch:WriteOptimizerSlowQueryCategoriesapps/$appGroupName
ListSlowQueryQueriesLists slow queries.opensearch:ListOptimizerSlowQueriesapps/$appGroupName
DisableSlowQueryDisables slow query analysis.opensearch:WriteOptimizerSlowQueryapps/$appGroupName
EnableSlowQueryEnables slow query analysis.opensearch:WriteOptimizerSlowQueryapps/$appGroupName
DescribeSlowQueryStatusGets the enabled or disabled status of slow query analysis.opensearch:DescribeOptimizerSlowQueryapps/$appGroupName
DeleteModelDeletes a model.opensearch:WriteAlgorithmapps/$appGroupName
DescribeModelGets the details of a model.opensearch:DescribeAlgorithmapps/$appGroupName
ListModelsLists models.opensearch:DescribeAlgorithmapps/$appGroupName
GetModelProgressGets the training progress of a model.opensearch:DescribeAlgorithmapps/$appGroupName
GetValidationErrorGets the details of data verification errors.opensearch:DescribeAlgorithmapps/$appGroupName
GetValidationReportGets data verification reports.opensearch:DescribeAlgorithmapps/$appGroupName
CreateModelCreates a model.opensearch:WriteAlgorithmapps/$appGroupName
ModifyModelModifies model configurations.opensearch:WriteAlgorithmapps/$appGroupName
CreateQueryProcessorCreates a query analysis rule.opensearch:WriteQueryProcessorapps/$appGroupName
RemoveQueryProcessorDeletes a query analysis rule.opensearch:WriteQueryProcessorapps/$appGroupName
ListQueryProcessorsLists query analysis rules.opensearch:ListQueryProcessorapps/$appGroupName
DescribeQueryProcessorGets the details of a query analysis rule.opensearch:DescribeQueryProcessorapps/$appGroupName
ModifyQueryProcessorModifies a query analysis rule.opensearch:WriteQueryProcessorapps/$appGroupName
RemoveQuotaReviewTaskWithdraws an application quota request ticket.opensearch:UpdateAppapps/$appGroupName
ListQuotaReviewTasksLists application quota request tickets.opensearch:DescribeAppapps/$appGroupName
CreateScheduledTaskCreates a scheduled task for an application.opensearch:CreateScheduledTaskapp-groups/$appGroupName
RemoveScheduledTaskDeletes a scheduled task of an application.opensearch:RemoveScheduledTaskapp-groups/$appGroupName
ListScheduledTasksLists the scheduled tasks of an application.opensearch:ListScheduledTaskapp-groups/$appGroupName
DescribeScheduledTaskGets the details of a scheduled task of an application.opensearch:DescribeScheduledTaskapp-groups/$appGroupName
ModifyScheduledTaskModifies a scheduled task of an application.opensearch:ModifyScheduledTaskapp-groups/$appGroupName
CreateSecondRankCreates a fine sort expression for an application version.opensearch:WriteSecondRankapps/$appGroupName
RemoveSecondRankDeletes a fine sort expression of an application version.opensearch:WriteSecondRankapps/$appGroupName
ListSecondRanksLists the fine sort expressions of an application version.opensearch:ListSecondRankapps/$appGroupName
DescribeSecondRankGets the details of a fine sort expression of an application version.opensearch:DescribeSecondRankapps/$appGroupName
ModifySecondRankModifies a fine sort expression of an application version.opensearch:WriteSecondRankapps/$appGroupName
ListSortExpressionsLists the sort expressions of an application version.opensearch:ListSortExpressionapps/$appGroupName
CreateSuggestionCreates a drop-down suggestion.opensearch:WriteSuggestsuggestions/$suggestionIdentity
DeleteSuggestionDeletes a drop-down suggestion.opensearch:WriteSuggestsuggestions/$suggestionIdentity
ListSuggestionsLists drop-down suggestions.opensearch:ListSuggestsuggestions/$suggestionIdentity
ListSuggestionMetricsLists drop-down suggestion reports.opensearch:DescribeSuggestsuggestions/$suggestionIdentity
StartSuggestionTrainerStarts model training for drop-down suggestions immediately.opensearch:WriteSuggestsuggestions/$suggestionIdentity
DescribeSuggestionGets the details of a drop-down suggestion.opensearch:DescribeSuggestsuggestions/$suggestionIdentity
UpdateSuggestionCurrentModelSwitches to the online drop-down suggestion model.opensearch:WriteSuggestsuggestions/$suggestionIdentity
UpdateSummariesModifies the summary of an application version.opensearch:WriteSummaryapps/$appGroupName
PushUserAnalyzerEntriesModifies entries in a custom analyzer.opensearch:WriteUserAnalyzeruser-analyzers/$analyzerName
ListUserAnalyzerEntriesLists entries in a custom analyzer.opensearch:DescribeUserAnalyzeruser-analyzers/$analyzerName
CreateUserAnalyzerCreates a custom analyzer.opensearch:CreateUserAnalyzeruser-analyzers/$analyzerName
DeleteUserAnalyzerDeletes a custom analyzer.opensearch:DeleteUserAnalyzeruser-analyzers/$analyzerName
ListUserAnalyzersLists the custom analyzers of a user.opensearch:ListUserAnalyzersuser-analyzers/*
DescribeUserAnalyzerGets the details of a custom analyzer.opensearch:DescribeUserAnalyzeruser-analyzers/$analyzerName
SearchHintRetrieves hints.opensearch:SearchHintacs:opensearch:$regionld:$accountld:apps/$appGroupName

Authorization rules for traffic operations

POP actionAction descriptionRAM actionResource pattern
PushDocPushes documents.opensearch:PushDocacs:opensearch:$regionId:$accountId:apps/$appGroupName
SearchAppRetrieves documents.opensearch:SearchAppacs:opensearch:$regionId:$accountId:apps/$appGroupName
SearchSuggestRetrieves drop-down suggestions.opensearch:SearchSuggestacs:opensearch:$regionId:$accountId:suggestions/$suggestionIdentity
SearchHotRetrieves hotwords.opensearch:SearchHotacs:opensearch:$regionld:$accountld:apps/$appGroupName
SearchHintRetrieves hints.opensearch:SearchHintacs:opensearch:$regionld:$accountld:apps/$appGroupName