访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用 RAM 可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM 中使用权限策略描述授权的具体内容。
本文为您介绍 云原生数据库 PolarDB 为 RAM 权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。 云原生数据库 PolarDB 的 RAM 代码(RamCode)为 polardb ,支持的授权粒度为 资源级 。
权限策略通用结构
权限策略支持 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)
下表是云原生数据库 PolarDB定义的操作,这些操作可以在 RAM 权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
操作:是指具体的权限点。
API:是指操作对应的 API 接口。
访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
资源类型:是指操作中支持授权的资源类型。具体说明如下:
对于必选的资源类型,用前面加 * 表示。
对于不支持资源级授权的操作,用
全部资源表示。
条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字。
关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
|
操作 |
API |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
| polardb:ModifyDBDescriptionZonal | ModifyDBDescriptionZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeNetworkChannel | DescribeNetworkChannel | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterEndpointZonal | ModifyDBClusterEndpointZonal | update |
*全部资源
|
无 | 无 |
| polardb:ListTagResourcesForRegion | ListTagResourcesForRegion | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBNodesParameters | DescribeDBNodesParameters | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeAIDBClusters | DescribeAIDBClusters | get |
*全部资源
|
无 | 无 |
| polardb:RevokeAccountPrivilege | RevokeAccountPrivilege | update |
*dbcluster
|
无 | 无 |
| polardb:CheckDBNameZonal | CheckDBNameZonal | get |
*全部资源
|
无 | 无 |
| polardb:DescribeLicenseOrders | DescribeLicenseOrders | get |
*全部资源
|
无 | 无 |
| polardb:CreateBackup | CreateBackup | create |
*dbcluster
|
无 | 无 |
| polardb:DescribeCrossCloudRegion | DescribeCrossCloudRegion | get |
*全部资源
|
无 | 无 |
| polardb:DescribeAccounts | DescribeAccounts | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBClusterDescription | ModifyDBClusterDescription | update |
*dbcluster
|
无 | 无 |
| polardb:CreateDBClusterEndpoint | CreateDBClusterEndpoint | create |
*DBCluster
|
无 | 无 |
| polardb:ModifyFirewallRules | ModifyFirewallRules | update |
*DBCluster
|
无 | 无 |
| polardb:DeleteEncryptionDBRolePrivilege | DeleteEncryptionDBRolePrivilege | delete |
*全部资源
|
无 | 无 |
| polardb:CreateDBNodes | CreateDBNodes | create |
*dbcluster
|
无 | 无 |
| polardb:DeleteGlobalSecurityIPGroup | DeleteGlobalSecurityIPGroup | delete |
*全部资源
|
无 | 无 |
| polardb:DeleteExtensions | DeleteExtensions | delete |
*全部资源
|
无 | 无 |
| polardb:DescribeActiveOperationTasks | DescribeActiveOperationTasks | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterTDE | DescribeDBClusterTDE | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyAIDBClusterDescription | ModifyAIDBClusterDescription | update |
*全部资源
|
无 | 无 |
| polardb:DescribeDbClusterAttributeZonal | DescribeDbClusterAttributeZonal | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterParameters | DescribeDBClusterParameters | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeBackupLogs | DescribeBackupLogs | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeGlobalDatabaseNetworks | DescribeGlobalDatabaseNetworks | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDatabases | DescribeDatabases | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBNodeSccMode | ModifyDBNodeSccMode | update |
*DBNode
|
无 | 无 |
| polardb:DescribeModifyParameterLog | DescribeModifyParameterLog | none |
*全部资源
|
无 | 无 |
| polardb:EnableFirewallRules | EnableFirewallRules | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyActiveOperationMaintainConf | ModifyActiveOperationMaintainConf | update |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterMigrationEndpoint | ModifyDBClusterMigrationEndpoint | update |
*全部资源
|
无 | 无 |
| polardb:DescribePendingMaintenanceActions | DescribePendingMaintenanceActions | get |
*全部资源
|
无 | 无 |
| polardb:AttachApplicationPolarFS | AttachApplicationPolarFS | none |
*全部资源
|
无 | 无 |
| polardb:DescribeHALogs | DescribeHALogs | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBInitializeVariable | DescribeDBInitializeVariable | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBClusterAuditLogCollector | ModifyDBClusterAuditLogCollector | update |
*dbcluster
|
无 | 无 |
| polardb:CreateDBEndpointAddress | CreateDBEndpointAddress | create |
*dbcluster
|
无 | 无 |
| polardb:DescribeLogBackupPolicy | DescribeLogBackupPolicy | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyApplicationServerlessConf | ModifyApplicationServerlessConf | update |
*全部资源
|
无 | 无 |
| polardb:DeleteNetworkChannel | DeleteNetworkChannel | delete |
*DBCluster
|
无 | 无 |
| polardb:DeleteDBCluster | DeleteDBCluster | delete |
*dbcluster
|
无 | 无 |
| polardb:TransformDBClusterPayType | TransformDBClusterPayType | update |
*DBCluster
|
无 | 无 |
| polardb:DeleteMaskingRules | DeleteMaskingRules | delete |
*DBCluster
|
无 | 无 |
| polardb:CreateAccountZonal | CreateAccountZonal | create |
*全部资源
|
无 | 无 |
| polardb:DescribeGlobalSecurityIPGroupRelation | DescribeGlobalSecurityIPGroupRelation | get |
*DBCluster
|
无 | 无 |
| polardb:ExecuteCrossCloudOpenAPI | ExecuteCrossCloudOpenAPI | none |
*全部资源
|
无 | 无 |
| polardb:RestartDBNode | RestartDBNode | update |
*DBNode
|
无 | 无 |
| polardb:CheckAccountNameZonal | CheckAccountNameZonal | get |
*全部资源
|
无 | 无 |
| polardb:AddPolarFsQuota | AddPolarFsQuota | none |
*全部资源
|
无 | 无 |
| polardb:CreateNetworkChannel | CreateNetworkChannel | create |
*全部资源
|
无 | 无 |
| polardb:DescribeVpcs | DescribeVpcs | get |
*全部资源
|
无 | 无 |
| polardb:ModifyEncryptionDBRolePrivilege | ModifyEncryptionDBRolePrivilege | update |
*全部资源
|
polardb:EncryptionRequired |
无 |
| polardb:ModifyDBClusterParameters | ModifyDBClusterParameters | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeDBClusterSSL | DescribeDBClusterSSL | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBClusterMigration | ModifyDBClusterMigration | update |
*dbcluster
|
无 | 无 |
| polardb:DescribePolarSQLCollectorPolicy | DescribePolarSQLCollectorPolicy | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterAccessWhitelist | DescribeDBClusterAccessWhitelist | get |
*DBCluster
|
无 | 无 |
| polardb:CheckAccountName | CheckAccountName | get |
*dbcluster
|
无 | 无 |
| polardb:CreateApplication | CreateApplication | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterVersion | DescribeDBClusterVersion | get |
*dbcluster
|
无 | 无 |
| polardb:CreateGlobalSecurityIPGroup | CreateGlobalSecurityIPGroup | create |
*全部资源
|
无 | 无 |
| polardb:DescribeGlobalSecurityIPGroup | DescribeGlobalSecurityIPGroup | get |
*全部资源
|
无 | 无 |
| polardb:ReactivateDBClusterBackup | ReactivateDBClusterBackup | none |
*全部资源
|
无 | 无 |
| polardb:CreateAccount | CreateAccount | create |
*dbcluster
|
无 | 无 |
| polardb:DescribeApplicationServerlessConf | DescribeApplicationServerlessConf | get |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterResourceGroup | ModifyDBClusterResourceGroup | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterStorageSpace | ModifyDBClusterStorageSpace | update |
*DBCluster
|
无 | 无 |
| polardb:DescribePolarFsAttribute | DescribePolarFsAttribute | get |
*全部资源
|
无 | 无 |
| polardb:DeleteFirewallRules | DeleteFirewallRules | delete |
*DBCluster
|
无 | 无 |
| polardb:DeleteAIDBCluster | DeleteAIDBCluster | delete |
*全部资源
|
无 | 无 |
| polardb:DeleteApplication | DeleteApplication | delete |
*全部资源
|
无 | 无 |
| polardb:ModifyAccountLockState | ModifyAccountLockState | get |
*dbcluster
|
无 | 无 |
| polardb:AddSQLRateLimitingRules | AddSQLRateLimitingRules | create |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBNodesParameters | ModifyDBNodesParameters | update |
*DBCluster
|
无 | 无 |
| polardb:DeleteDatabase | DeleteDatabase | delete |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterAuditLogCollector | DescribeDBClusterAuditLogCollector | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeAvailableCrossRegions | DescribeAvailableCrossRegions | get |
*DBCluster
|
无 | 无 |
| polardb:TempModifyDBNode | TempModifyDBNode | update |
*DBCluster
|
无 | 无 |
| polardb:CancelCronJobPolicyServerless | CancelCronJobPolicyServerless | delete |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterPerformance | DescribeDBClusterPerformance | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeGlobalDataNetworkList | DescribeGlobalDataNetworkList | list |
*全部资源
|
无 | 无 |
| polardb:CloseAITask | CloseAITask | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyApplicationParameter | ModifyApplicationParameter | none |
*全部资源
|
无 | 无 |
| polardb:DescribeCrossCloudLevels | DescribeCrossCloudLevels | get |
*全部资源
|
无 | 无 |
| polardb:ModifyBackupPolicy | ModifyBackupPolicy | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeDBClusterMonitor | DescribeDBClusterMonitor | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeLicenseOrderDetails | DescribeLicenseOrderDetails | get |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterAndNodesParameters | ModifyDBClusterAndNodesParameters | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeSQLRateLimitingRules | DescribeSQLRateLimitingRules | list |
*DBCluster
|
无 | 无 |
| polardb:DescribeApplicationAttribute | DescribeApplicationAttribute | get |
*全部资源
|
无 | 无 |
| polardb:DeleteBackup | DeleteBackup | delete |
*dbcluster
|
无 | 无 |
| polardb:DescribePolarFsQuota | DescribePolarFsQuota | none |
*全部资源
|
无 | 无 |
| polardb:DescribeTasks | DescribeTasks | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeDBClusterNetInfo | DescribeDBClusterNetInfo | get |
*DBCluster
|
无 | 无 |
| polardb:DeleteApplicationEndpointAddress | DeleteApplicationEndpointAddress | delete |
*全部资源
|
无 | 无 |
| polardb:ModifyResourcePackage | ModifyResourcePackage | update |
*全部资源
|
无 | 无 |
| polardb:ModifyAccountDescription | ModifyAccountDescription | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeApplicationParameters | DescribeApplicationParameters | get |
*全部资源
|
无 | 无 |
| polardb:SwitchOverGlobalDatabaseNetwork | SwitchOverGlobalDatabaseNetwork | update |
*GlobalDatabaseNetwork
|
无 | 无 |
| polardb:DescribeDatabasesZonal | DescribeDatabasesZonal | list |
*全部资源
|
无 | 无 |
| polardb:DeleteSQLRateLimitingRules | DeleteSQLRateLimitingRules | delete |
*DBCluster
|
无 | 无 |
| polardb:ManuallyStartDBCluster | ManuallyStartDBCluster | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyActiveOperationTasks | ModifyActiveOperationTasks | update |
*全部资源
|
无 | 无 |
| polardb:UntagResources | UntagResources | delete |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterDeletion | ModifyDBClusterDeletion | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyScheduleTask | ModifyScheduleTask | update |
*DBCluster
|
无 | 无 |
| polardb:CheckDBName | CheckDBName | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeCronJobPolicyServerless | DescribeCronJobPolicyServerless | list |
*全部资源
|
无 | 无 |
| polardb:DescribeDBNodePerformance | DescribeDBNodePerformance | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeEncryptionDBRolePrivilege | DescribeEncryptionDBRolePrivilege | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeActivationCodes | DescribeActivationCodes | get |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterAccessWhitelist | ModifyDBClusterAccessWhitelist | update |
*dbcluster
|
无 | 无 |
| polardb:ResetGlobalDatabaseNetwork | ResetGlobalDatabaseNetwork | update |
*GlobalDatabaseNetwork
|
无 | 无 |
| polardb:CreateParameterGroup | CreateParameterGroup | create |
*全部资源
|
无 | 无 |
| polardb:DescribeAIDBClusterPerformance | DescribeAIDBClusterPerformance | get |
*全部资源
|
无 | 无 |
| polardb:ModifyMaskingRules | ModifyMaskingRules | update |
*DBCluster
|
无 | 无 |
| polardb:ListOrders | ListOrders | list |
*全部资源
|
无 | 无 |
| polardb:DescribeLocalAvailableRecoveryTime | DescribeLocalAvailableRecoveryTime | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeHistoryTasksStat | DescribeHistoryTasksStat | get |
*全部资源
|
无 | 无 |
| polardb:DeleteDBClusterEndpointZonal | DeleteDBClusterEndpointZonal | delete |
*全部资源
|
无 | 无 |
| polardb:CreateStoragePlan | CreateStoragePlan | create |
*全部资源
|
无 | 无 |
| polardb:ModifyDBNodeHotReplicaMode | ModifyDBNodeHotReplicaMode | update |
*DBCluster
|
无 | 无 |
| polardb:DeleteDBNodes | DeleteDBNodes | delete |
*dbcluster
|
无 | 无 |
| polardb:DescribeVSwitches | DescribeVSwitches | get |
*全部资源
|
无 | 无 |
| polardb:UpgradeDBClusterVersion | UpgradeDBClusterVersion | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeDBClustersWithBackups | DescribeDBClustersWithBackups | get |
*DBCluster
|
无 | 无 |
| polardb:DeleteParameterGroup | DeleteParameterGroup | delete |
*全部资源
|
无 | 无 |
| polardb:ResetAccountZonal | ResetAccountZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeMaskingRules | DescribeMaskingRules | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterServerlessConf | ModifyDBClusterServerlessConf | update |
*DBCluster
|
无 | 无 |
| polardb:CreateCronJobPolicyServerless | CreateCronJobPolicyServerless | create |
*全部资源
|
无 | 无 |
| polardb:ModifyDBEndpointAddress | ModifyDBEndpointAddress | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeRdsVpcs | DescribeRdsVpcs | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeUserEncryptionKeyList | DescribeUserEncryptionKeyList | get |
*DBCluster
|
无 | 无 |
| polardb:DisableDBClusterServerless | DisableDBClusterServerless | update |
*DBCluster
|
无 | 无 |
| polardb:OpenAITask | OpenAITask | update |
*DBCluster
|
无 | 无 |
| polardb:ListTagResources | ListTagResources | get |
*DBCluster
|
无 | 无 |
| polardb:CreateApplicationEndpointAddress | CreateApplicationEndpointAddress | none |
*全部资源
|
无 | 无 |
| polardb:DescribeBackupRegions | DescribeBackupRegions | get |
*全部资源
|
无 | 无 |
| polardb:ModifyCronJobPolicyServerless | ModifyCronJobPolicyServerless | update |
*全部资源
|
无 | 无 |
| polardb:FailoverDBCluster | FailoverDBCluster | update |
*dbcluster
|
无 | 无 |
| polardb:ModifyPendingMaintenanceAction | ModifyPendingMaintenanceAction | update |
*全部资源
|
无 | 无 |
| polardb:ContinueDBClusterMigration | ContinueDBClusterMigration | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBDescription | ModifyDBDescription | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterServerlessConf | DescribeDBClusterServerlessConf | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeAutoRenewAttribute | DescribeAutoRenewAttribute | list |
*DBCluster
|
无 | 无 |
| polardb:DeletePolarFsQuota | DeletePolarFsQuota | none |
*全部资源
|
无 | 无 |
| polardb:CreateDBCluster | CreateDBCluster | create |
*全部资源
|
polardb:EncryptionRequired |
无 |
| polardb:CreateExtensions | CreateExtensions | create |
*全部资源
|
无 | 无 |
| polardb:ModifyGlobalDatabaseNetwork | ModifyGlobalDatabaseNetwork | update |
*GlobalDatabaseNetwork
|
无 | 无 |
| polardb:CreateGlobalDataNetwork | CreateGlobalDataNetwork | create |
*全部资源
|
无 | 无 |
| polardb:DescribeDBMiniEngineVersions | DescribeDBMiniEngineVersions | get |
*全部资源
|
无 | 无 |
| polardb:DescribePendingMaintenanceAction | DescribePendingMaintenanceAction | get |
*全部资源
|
无 | 无 |
| polardb:RestartDBLink | RestartDBLink | none |
*DBCluster
|
无 | 无 |
| polardb:DeleteGlobalDatabaseNetwork | DeleteGlobalDatabaseNetwork | delete |
*GlobalDatabaseNetwork
|
无 | 无 |
| polardb:ModifyDBClusterVpc | ModifyDBClusterVpc | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyAccountDescriptionZonal | ModifyAccountDescriptionZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeScheduleTasks | DescribeScheduleTasks | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClustersZonal | DescribeDBClustersZonal | list |
*全部资源
|
无 | 无 |
| polardb:DescribeResourcePackages | DescribeResourcePackages | get |
*全部资源
|
无 | 无 |
| polardb:DescribeParameterGroups | DescribeParameterGroups | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBLinks | DescribeDBLinks | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeDBClusterEndpointsZonal | DescribeDBClusterEndpointsZonal | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBLogFiles | DescribeDBLogFiles | list |
*DBCluster
|
无 | 无 |
| polardb:CreateActivationCode | CreateActivationCode | create |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterTDE | ModifyDBClusterTDE | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeHistoryTasks | DescribeHistoryTasks | get |
*全部资源
|
无 | 无 |
| polardb:GrantAccountPrivilege | GrantAccountPrivilege | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeBackupTasks | DescribeBackupTasks | get |
*dbcluster
|
无 | 无 |
| polardb:DescribeAccountsZonal | DescribeAccountsZonal | list |
*全部资源
|
无 | 无 |
| polardb:GenerateUpgradeReportForSyncClone | GenerateUpgradeReportForSyncClone | create |
*全部资源
|
无 | 无 |
| polardb:CreateDatabase | CreateDatabase | create |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterAttribute | DescribeDBClusterAttribute | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyApplicationDescription | ModifyApplicationDescription | update |
*全部资源
|
无 | 无 |
| polardb:DeleteDBClusterEndpoint | DeleteDBClusterEndpoint | delete |
*Endpoint
|
无 | 无 |
| polardb:CreateDatabaseZonal | CreateDatabaseZonal | create |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterMonitor | ModifyDBClusterMonitor | update |
*dbcluster
|
无 | 无 |
| polardb:EnableDBClusterOrca | EnableDBClusterOrca | none |
*全部资源
|
无 | 无 |
| polardb:DescribeDBInstancePerformance | DescribeDBInstancePerformance | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyGlobalSecurityIPGroup | ModifyGlobalSecurityIPGroup | update |
*全部资源
|
无 | 无 |
| polardb:ModifyGlobalSecurityIPGroupRelation | ModifyGlobalSecurityIPGroupRelation | update |
*DBCluster
|
无 | 无 |
| polardb:EnableDBClusterServerless | EnableDBClusterServerless | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeApplications | DescribeApplications | get |
*全部资源
|
无 | 无 |
| polardb:ModifyDBNodeConfig | ModifyDBNodeConfig | update |
*DBCluster
|
无 | 无 |
| polardb:AbortDBClusterMigration | AbortDBClusterMigration | update |
*DBCluster
|
无 | 无 |
| polardb:AddEncryptionDBRolePrivilege | AddEncryptionDBRolePrivilege | create |
*DBCluster
|
无 | 无 |
| polardb:RemoveDBClusterFromGDN | RemoveDBClusterFromGDN | delete |
*DBCluster
|
无 | 无 |
| polardb:RefreshDBClusterStorageUsage | RefreshDBClusterStorageUsage | update |
*全部资源
|
无 | 无 |
| polardb:CheckConnectionString | CheckConnectionString | get |
*全部资源
|
无 | 无 |
| polardb:DeleteDBLink | DeleteDBLink | delete |
*DBCluster
|
无 | 无 |
| polardb:DescribeGlobalDatabaseNetwork | DescribeGlobalDatabaseNetwork | get |
*dbcluster
|
无 | 无 |
| polardb:CancelPolarFsFileQuota | CancelPolarFsFileQuota | none |
*全部资源
|
无 | 无 |
| polardb:ModifyLogBackupPolicy | ModifyLogBackupPolicy | update |
*dbcluster
|
无 | 无 |
| polardb:ModifyGlobalSecurityIPGroupName | ModifyGlobalSecurityIPGroupName | update |
*全部资源
|
无 | 无 |
| polardb:DeleteAccount | DeleteAccount | delete |
*dbcluster
|
无 | 无 |
| polardb:CancelActiveOperationTasks | CancelActiveOperationTasks | delete |
*全部资源
|
无 | 无 |
| polardb:ModifyAutoRenewAttribute | ModifyAutoRenewAttribute | update |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBClusterArch | ModifyDBClusterArch | none |
*全部资源
|
无 | 无 |
| polardb:ModifyDBCluster | ModifyDBCluster | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeAIDBClusterAttribute | DescribeAIDBClusterAttribute | get |
*全部资源
|
无 | 无 |
| polardb:ModifyDBNodeDescription | ModifyDBNodeDescription | update |
*全部资源
|
无 | 无 |
| polardb:DescribeSlowLogs | DescribeSlowLogs | get |
*dbcluster
|
无 | 无 |
| polardb:RestoreTable | RestoreTable | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeFirewallRules | DescribeFirewallRules | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterVersionZonal | DescribeDBClusterVersionZonal | get |
*全部资源
|
无 | 无 |
| polardb:ResetAccount | ResetAccount | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeAITaskStatus | DescribeAITaskStatus | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterConnectivity | DescribeDBClusterConnectivity | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDBClusterEncryptionKey | DescribeDBClusterEncryptionKey | get |
*全部资源
|
无 | 无 |
| polardb:DescribeActivationCodeDetails | DescribeActivationCodeDetails | get |
*全部资源
|
无 | 无 |
| polardb:DescribeBackupPolicy | DescribeBackupPolicy | get |
*dbcluster
|
无 | 无 |
| polardb:CancelScheduleTasks | CancelScheduleTasks | update |
*DBCluster
|
无 | 无 |
| polardb:CloseDBClusterMigration | CloseDBClusterMigration | update |
*dbcluster
|
无 | 无 |
| polardb:DescribeEncryptionDBSecret | DescribeEncryptionDBSecret | none |
*DBCluster
|
无 | 无 |
| polardb:DeleteAccountZonal | DeleteAccountZonal | delete |
*全部资源
|
无 | 无 |
| polardb:DescribeSlowLogRecords | DescribeSlowLogRecords | get |
*dbcluster
|
无 | 无 |
| polardb:DeleteDBEndpointAddress | DeleteDBEndpointAddress | delete |
*Endpoint
|
无 | 无 |
| polardb:ModifyAccountPassword | ModifyAccountPassword | update |
*dbcluster
|
无 | 无 |
| polardb:ModifySQLRateLimitingRules | ModifySQLRateLimitingRules | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterMaintainTime | ModifyDBClusterMaintainTime | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeClassList | DescribeClassList | get |
*全部资源
|
无 | 无 |
| polardb:CreateServiceLinkedRole | CreateServiceLinkedRole | none |
*全部资源
|
无 | 无 |
| polardb:CreateDBLink | CreateDBLink | create |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBNodeClass | ModifyDBNodeClass | update |
*DBCluster
|
无 | 无 |
| polardb:CreateDBClusterEndpointZonal | CreateDBClusterEndpointZonal | create |
*全部资源
|
无 | 无 |
| polardb:DescribeExtensions | DescribeExtensions | get |
*全部资源
|
无 | 无 |
| polardb:DeleteGlobalDataNetwork | DeleteGlobalDataNetwork | delete |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterDescriptionZonal | ModifyDBClusterDescriptionZonal | update |
*全部资源
|
无 | 无 |
| polardb:ModifyDBClusterEndpoint | ModifyDBClusterEndpoint | update |
*dbcluster
|
无 | 无 |
| polardb:UpgradeDBClusterVersionZonal | UpgradeDBClusterVersionZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterEndpoints | DescribeDBClusterEndpoints | get |
*dbcluster
|
无 | 无 |
| polardb:CreateGlobalDatabaseNetwork | CreateGlobalDatabaseNetwork | create |
*GlobalDatabaseNetwork
|
无 | 无 |
| polardb:DescribeDasConfig | DescribeDasConfig | get |
*DBCluster
|
无 | 无 |
| polardb:ResetAccountPassword | ResetAccountPassword | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusters | DescribeDBClusters | list |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterStoragePerformance | ModifyDBClusterStoragePerformance | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeParameterGroup | DescribeParameterGroup | get |
*全部资源
|
无 | 无 |
| polardb:RestartDBNodeZonal | RestartDBNodeZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterMigration | DescribeDBClusterMigration | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBClusterPrimaryZone | ModifyDBClusterPrimaryZone | update |
*dbcluster
|
无 | 无 |
| polardb:DisableDBClusterOrca | DisableDBClusterOrca | none |
*全部资源
|
无 | 无 |
| polardb:CreateColdStorageInstance | CreateColdStorageInstance | create |
*ColdStorageInstance
|
无 | 无 |
| polardb:DescribeMetaList | DescribeMetaList | get |
*DBCluster
|
无 | 无 |
| polardb:TagResources | TagResources | create |
*DBCluster
|
无 | 无 |
| polardb:CheckServiceLinkedRole | CheckServiceLinkedRole | none |
*全部资源
|
无 | 无 |
| polardb:DescribeColdStorageInstance | DescribeColdStorageInstance | get |
*全部资源
|
无 | 无 |
| polardb:RevokeAccountPrivilegeZonal | RevokeAccountPrivilegeZonal | update |
*全部资源
|
无 | 无 |
| polardb:DeleteDatabaseZonal | DeleteDatabaseZonal | delete |
*全部资源
|
无 | 无 |
| polardb:DescribeCrossCloudRegionMappingToAliyun | DescribeCrossCloudRegionMappingToAliyun | get |
*全部资源
|
无 | 无 |
| polardb:GrantAccountPrivilegeZonal | GrantAccountPrivilegeZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeRdsVSwitchs | DescribeRdsVSwitchs | get |
*全部资源
|
无 | 无 |
| polardb:SetPolarFsFileQuota | SetPolarFsFileQuota | none |
*全部资源
|
无 | 无 |
| polardb:DescribeParameterTemplates | DescribeParameterTemplates | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyAccountPasswordZonal | ModifyAccountPasswordZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeVSwitchList | DescribeVSwitchList | none |
*全部资源
|
无 | 无 |
| polardb:UpdateExtensions | UpdateExtensions | update |
*全部资源
|
无 | 无 |
| polardb:CreateOrGetVirtualLicenseOrder | CreateOrGetVirtualLicenseOrder | create |
*全部资源
|
无 | 无 |
| polardb:EnableSQLRateLimitingRules | EnableSQLRateLimitingRules | update |
*全部资源
|
无 | 无 |
| polardb:DescribeUpgradeReport | DescribeUpgradeReport | get |
*全部资源
|
无 | 无 |
| polardb:DescribeDBProxyPerformance | DescribeDBProxyPerformance | get |
*DBCluster
|
无 | 无 |
| polardb:FailoverDBClusterZonal | FailoverDBClusterZonal | update |
*全部资源
|
无 | 无 |
| polardb:DescribeActiveOperationMaintainConf | DescribeActiveOperationMaintainConf | get |
*全部资源
|
无 | 无 |
| polardb:AddFirewallRules | AddFirewallRules | create |
*DBCluster
|
无 | 无 |
| polardb:CheckKMSAuthorized | CheckKMSAuthorized | get |
*DBCluster
|
无 | 无 |
| polardb:DescribeDetachedBackups | DescribeDetachedBackups | get |
*dbcluster
|
无 | 无 |
| polardb:ModifyDBNodesClass | ModifyDBNodesClass | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyApplicationWhitelist | ModifyApplicationWhitelist | none |
*全部资源
|
无 | 无 |
| polardb:DescribeDBClusterProxy | DescribeDBClusterProxy | get |
*DBCluster
|
无 | 无 |
| polardb:ModifyDBClusterSSL | ModifyDBClusterSSL | update |
*DBCluster
|
无 | 无 |
| polardb:ModifyEncryptionDBSecret | ModifyEncryptionDBSecret | update |
*DBCluster
|
无 | 无 |
| polardb:DescribeBackups | DescribeBackups | get |
*Backup
*DBCluster
|
无 | 无 |
资源(Resource)
下表是云原生数据库 PolarDB定义的资源,这些资源可以在 RAM 权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源 ARN 是资源在阿里云上的唯一标识。具体说明如下:
{#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。*表示全部。例如:{#resourceType}为*时:表示全部资源。{#regionId}为*时:表示全部地域。{#accountId}为*时:表示全部阿里云账号。
资源类型 |
资源 ARN |
| DBCluster |
|
| dbcluster |
|
| DBNode |
|
| GlobalDatabaseNetwork |
|
| ParameterGroup |
|
| Backup |
|
| DBClusterParameter |
|
| Endpoint |
|
| Account |
|
| ColdStorageInstance |
|
条件(Condition)
下表是云原生数据库 PolarDB 定义的产品级条件关键字,这些条件关键字可以在 RAM 权限策略语句的Condition元素中使用,用来描述授予权限的条件。以下仅列举产品级的条件关键字,阿里云定义的通用条件关键字也同样适用云原生数据库 PolarDB。
其中,数据类型决定了您可以使用哪些条件运算符将请求中的值与权限策略语句中的值进行比较。您必须使用与数据类型匹配的条件运算符,否则无法匹配策略语句,授权行为无效。数据类型与条件运算符的对应关系,请参见条件操作类型。
条件关键字 |
描述 |
类型 |
| polardb:EncryptionRequired | 创建时是否需要开启TDE | Boolean |
相关操作
您可以创建自定义权限策略,并将权限策略授予 RAM 用户、RAM 用户组或 RAM 角色。具体操作如下: