访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍智能开放搜索 OpenSearch(SearchEngine)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。智能开放搜索 OpenSearch(SearchEngine)的RAM代码(RamCode)为searchengine,支持的授权粒度为RESOURCE。
权限策略通用结构
权限策略支持JSON格式,其通用结构如下:
{
"Version": "1",
"Statement": [
{
"Effect": "<Effect>",
"Action": "<Action>",
"Resource": "<Resource>",
"Condition": {
"<Condition_operator>": {
"<Condition_key>": [
"<Condition_value>"
]
}
}
}
]
}
- Effect:权限策略效果。取值:Allow(允许)、Deny(拒绝)。
- Action:授予允许或拒绝权限的具体操作。具体信息,请参见操作(Action)。
- Resource:受操作影响的具体对象,您可以使用资源ARN来描述指定资源。具体信息,请参见资源(Resource)。
- Condition:指授权生效的条件。可选字段。具体信息,请参见条件(Condition)。
- Condition_operator:条件运算符,不同类型的条件对应不同的条件运算符。具体信息,请参见权限策略基本元素。
- Condition_key:条件关键字。
- Condition_value:条件关键字对应的值。
操作(Action)
下表是智能开放搜索 OpenSearch(SearchEngine)定义的操作,这些操作可以在RAM权限策略语句的Action
元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:- 操作:是指具体的权限点。
- API:是指操作对应的API接口。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | API | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|---|
searchengine:UpdateSqlInstanceContent | UpdateSqlInstanceContent | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:CreatePublicUrl | CreatePublicUrl | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetDatabaseSchema | GetDatabaseSchema | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:DeleteAlias | DeleteAlias | delete | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetIndexVersion | GetIndexVersion | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetAdvanceConfig | GetAdvanceConfig | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:UpdateSqlInstanceParams | UpdateSqlInstanceParams | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ModifyPassword | ModifyPassword | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListAdvanceConfigDir | ListAdvanceConfigDir | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:GetNodeConfig | GetNodeConfig | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListInstanceSpecs | ListInstanceSpecs | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ListSchemas | ListSchemas | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyDataSourceDeploy | ModifyDataSourceDeploy | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:GetIndexOnlineStrategy | GetIndexOnlineStrategy | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ModifyAdvanceConfigFile | ModifyAdvanceConfigFile | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:RecoverIndex | RecoverIndex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:StopTask | StopTask | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:PublishIndexVersion | PublishIndexVersion | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteInstance | DeleteInstance | delete | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListIndexes | ListIndexes | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteIndexVersion | DeleteIndexVersion | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:UpdateSqlInstanceName | UpdateSqlInstanceName | update | SqlInstance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyIndex | ModifyIndex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteIndex | DeleteIndex | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ChangeResourceGroup | ChangeResourceGroup | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:UpdateInstance | UpdateInstance | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ExecuteSqlInstance | ExecuteSqlInstance | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:GetDeployGraph | GetDeployGraph | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateAlias | CreateAlias | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListIndexRecoverRecords | ListIndexRecoverRecords | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListDatabases | ListDatabases | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:GetClusterRunTimeInfo | GetClusterRunTimeInfo | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetFile | GetFile | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyPublicUrlIpList | ModifyPublicUrlIpList | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeletePublicUrl | DeletePublicUrl | delete | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetCluster | GetCluster | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteTable | DeleteTable | delete | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyTable | ModifyTable | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:RemoveCluster | RemoveCluster | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListLogs | ListLogs | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetDataSourceDeploy | GetDataSourceDeploy | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:DeleteFolder | DeleteFolder | delete | Folder acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyAlias | ModifyAlias | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetInstance | GetInstance | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListDataSources | ListDataSources | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ForceSwitch | ForceSwitch | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteAdvanceConfig | DeleteAdvanceConfig | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetTableGeneration | GetTableGeneration | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateFolder | CreateFolder | create | Folder acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteSqlInstance | DeleteSqlInstance | delete | SqlInstance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyPausePolicy | ModifyPausePolicy | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListDateSourceGenerations | ListDateSourceGenerations | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ListRestQueryResult | ListRestQueryResult | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyNodeConfig | ModifyNodeConfig | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:Reindex | Reindex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListDataSourceSchemas | ListDataSourceSchemas | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ModifyAdvanceConfig | ModifyAdvanceConfig | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListClusters | ListClusters | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetAdvanceConfigFile | GetAdvanceConfigFile | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateDataSource | CreateDataSource | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:StopIndex | StopIndex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetDataSource | GetDataSource | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListPostQueryResult | ListPostQueryResult | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateTable | CreateTable | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CloneSqlInstance | CloneSqlInstance | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:TagResources | TagResources | update | 全部资源 * | 无 | 无 |
searchengine:ListClusterNames | ListClusterNames | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListTasks | ListTasks | none | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:PushDocuments | PushDocuments | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 | |
searchengine:BuildIndex | BuildIndex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyIndexPartition | ModifyIndexPartition | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ListPausePolicys | ListPausePolicys | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListVectorQueryResult | ListVectorQueryResult | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteConfigDir | DeleteConfigDir | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 | |
searchengine:RenameFolder | RenameFolder | update | Folder acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:UntagResources | UntagResources | delete | 全部资源 * | 无 | 无 |
searchengine:ListTables | ListTables | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyOnlineConfig | ModifyOnlineConfig | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:PublishAdvanceConfig | PublishAdvanceConfig | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListQueryResult | ListQueryResult | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetIndex | GetIndex | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateIndex | CreateIndex | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateSqlInstance | CreateSqlInstance | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:CreateInstance | CreateInstance | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/* | 无 | 无 |
searchengine:ListDataSourceTasks | ListDataSourceTasks | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetTable | GetTable | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:GetSqlInstance | GetSqlInstance | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:CreateConfigFile | CreateConfigFile | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 | |
searchengine:ListInstances | ListInstances | get | Instance acs:searchengine:{#regionId}:{#accountId}:instance/* | 无 | 无 |
searchengine:ListAdvanceConfigs | ListAdvanceConfigs | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListTagResources | ListTagResources | list | 全部资源 * | 无 | 无 |
searchengine:StartIndex | StartIndex | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateCluster | CreateCluster | create | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListOnlineConfigs | ListOnlineConfigs | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ListAliases | ListAliases | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ListTableGenerations | ListTableGenerations | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyClusterOnlineConfig | ModifyClusterOnlineConfig | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ListClusterTasks | ListClusterTasks | list | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyClusterOfflineConfig | ModifyClusterOfflineConfig | update | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:CreateConfigDir | CreateConfigDir | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 | |
searchengine:DeleteConfigFile | DeleteConfigFile | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 | |
searchengine:ModifyClusterDesc | ModifyClusterDesc | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyIndexVersion | ModifyIndexVersion | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:ModifyIndexOnlineStrategy | ModifyIndexOnlineStrategy | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} | 无 | 无 |
searchengine:ModifyFile | ModifyFile | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
searchengine:DeleteDataSource | DeleteDataSource | Write | Instance acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} | 无 | 无 |
资源(Resource)
下表是智能开放搜索 OpenSearch(SearchEngine)定义的资源,这些资源可以在RAM权限策略语句的Resource
元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:{#}
为变量标识,需要您替换为实际值。例如:{#ramcode}
需要您替换为实际的云服务RAM代码。-
*
表示全部。例如:{#resourceType}
为*
时:表示全部资源。{#regionId}
为*
时:表示全部地域。{#accountId}
为*
时:表示全部阿里云账号。
资源类型 | 资源ARN |
---|---|
Instance | acs:searchengine:{#regionId}:{#accountId}:instance/{#instanceId} |
Instance | acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} |
SqlInstance | acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} |
Folder | acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId} |
Instance | acs:searchengine:{#regionId}:{#accountId}:instance/* |
条件(Condition)
智能开放搜索 OpenSearch(SearchEngine)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。