授权信息

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍关系型数据库(RDS)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。关系型数据库(RDS)的RAM代码(RamCode)为rds,支持的授权粒度为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)

下表是关系型数据库(RDS)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
  • 操作:是指具体的权限点。
  • API:是指操作对应的API接口。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作API访问级别资源类型条件关键字关联操作
rds:RestartDBInstanceRestartDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ImportUserBackupFileImportUserBackupFilecreate
全部资源
*
rds:CreateReadOnlyDBInstanceCreateReadOnlyDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteDBProxyEndpointAddressDeleteDBProxyEndpointAddressdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyInstanceCrossBackupPolicyModifyInstanceCrossBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:BackupEnabled
rds:LogBackupEnabled
rds:DescribeSecretsDescribeSecretsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribePriceDescribePriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteParameterGroupDeleteParameterGroupdelete
全部资源
*
rds:CreateDBNodesCreateDBNodescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeSecurityGroupConfigurationDescribeSecurityGroupConfigurationget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDatabasesDescribeDatabasesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeHistoryTasksStatDescribeHistoryTasksStatget
全部资源
*
rds:ModifySQLCollectorRetentionModifySQLCollectorRetentionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeWhitelistTemplateLinkedInstanceDescribeWhitelistTemplateLinkedInstanceget
全部资源
*
rds:ModifySecurityIpsModifySecurityIpsupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:RevokeAccountPrivilegeRevokeAccountPrivilegedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeParameterGroupsDescribeParameterGroupsget
全部资源
*
rds:ReleaseInstanceConnectionReleaseInstanceConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyTaskInfoModifyTaskInfoupdate
全部资源
*
rds:DescribeParametersDescribeParametersget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:RestoreTableRestoreTablecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteSecretDeleteSecret
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyDBNodeModifyDBNodeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:RemoveTagsFromResourceRemoveTagsFromResourcedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
DatabaseInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
rds:DetachWhitelistTemplateToInstanceDetachWhitelistTemplateToInstancedelete
全部资源
*
rds:CreateParameterGroupCreateParameterGroupcreate
全部资源
*
rds:CreateGadInstanceMemberCreateGadInstanceMembercreate
全部资源
*
rds:DescribeHistoryTasksDescribeHistoryTasksget
全部资源
*
rds:DestroyDBInstanceDestroyDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstanceAttributeDescribeDBInstanceAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ListUserBackupFilesListUserBackupFilesget
全部资源
*
rds:DeleteDBInstanceDeleteDBInstancedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLLogRecordsDescribeSQLLogRecordsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:MigrateSecurityIPModeMigrateSecurityIPModeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceByTagsDescribeDBInstanceByTagsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DeleteDatabaseDeleteDatabasedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceEncryptionKeyDescribeDBInstanceEncryptionKeyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceTDEModifyDBInstanceTDEupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:TDEStatus
rds:DescribeInstanceKeywordsDescribeInstanceKeywordsget
全部资源
*
rds:DescribeCrossRegionBackupsDescribeCrossRegionBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CheckCreateDdrDBInstanceCheckCreateDdrDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBProxyModifyDBProxyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:InstanceNetworkType
rds:DescribeRenewalPriceDescribeRenewalPriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyDBInstanceHAConfigModifyDBInstanceHAConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeHASwitchConfigDescribeHASwitchConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceMonitorModifyDBInstanceMonitorupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeBackupTasksDescribeBackupTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeAnalyticdbByPrimaryDBInstanceDescribeAnalyticdbByPrimaryDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeReadDBInstanceDelayDescribeReadDBInstanceDelayget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBDescriptionModifyDBDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:SwitchDBInstanceNetTypeSwitchDBInstanceNetTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceConnectionStringModifyDBInstanceConnectionStringupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeHADiagnoseConfigDescribeHADiagnoseConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceMonitorDescribeDBInstanceMonitorget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancePerformanceDescribeDBInstancePerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CloneParameterGroupCloneParameterGroupcreate
全部资源
*
rds:ResourceTag
rds:DescribeDetachedBackupsDescribeDetachedBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeAllWhitelistTemplateDescribeAllWhitelistTemplateget
全部资源
*
rds:CreateAccountCreateAccountcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyHADiagnoseConfigModifyHADiagnoseConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifySQLCollectorPolicyModifySQLCollectorPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyHASwitchConfigModifyHASwitchConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:AddTagsToResourceAddTagsToResourcecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyInstanceAutoRenewalAttributeModifyInstanceAutoRenewalAttributeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CloneDBInstanceCloneDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ReceiveDBInstanceReceiveDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CheckCloudResourceAuthorizedCheckCloudResourceAuthorizedget
全部资源
*
rds:ResourceTag
rds:ReleaseInstancePublicConnectionReleaseInstancePublicConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeAccountsDescribeAccountsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBProxyEndpointAddressModifyDBProxyEndpointAddressupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DBProxyConnectStringNetType
rds:DescribeAvailableCrossRegionDescribeAvailableCrossRegionget
全部资源
*
rds:DescribeKmsAssociateResourcesDescribeKmsAssociateResourcesget
全部资源
*
rds:DescribeDBInstanceIPArrayListDescribeDBInstanceIPArrayListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBProxyInstanceModifyDBProxyInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:RebuildDBInstanceRebuildDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:UpgradeDBProxyInstanceKernelVersionUpgradeDBProxyInstanceKernelVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstancesByPerformanceDescribeDBInstancesByPerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDbProxyInstanceSslModifyDbProxyInstanceSslupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DbProxySslEnabled
rds:ResetAccountPasswordResetAccountPasswordupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:QueryNotifyQueryNotifyget
全部资源
*
rds:ConfirmNotifyConfirmNotifyget
全部资源
*
rds:DescribeDBInstancesForCloneDescribeDBInstancesForCloneget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeSlowLogsDescribeSlowLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyEventInfoModifyEventInfoupdate
全部资源
*
rds:DescribeSQLCollectorPolicyDescribeSQLCollectorPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDiagnosticReportListDescribeDiagnosticReportListget
全部资源
*
rds:MigrateDBInstanceMigrateDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeVSwitchesDescribeVSwitchesget
全部资源
*
rds:DescribeLocalAvailableRecoveryTimeDescribeLocalAvailableRecoveryTimeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyResourceGroupModifyResourceGroupupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceDelayedReplicationTimeModifyDBInstanceDelayedReplicationTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:RevokeOperatorPermissionRevokeOperatorPermissiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstanceProxyConfigurationDescribeDBInstanceProxyConfigurationget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:TagResourcesTagResourcescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyActionEventPolicyModifyActionEventPolicyupdate
全部资源
*
rds:EnableEventLog
rds:DescribeDBProxyPerformanceDescribeDBProxyPerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSlowLogRecordsDescribeSlowLogRecordsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteGadInstanceDeleteGadInstancedelete
全部资源
*
rds:ModifyDBInstancePayTypeModifyDBInstancePayTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstancesByExpireTimeDescribeDBInstancesByExpireTimeget
全部资源
*
rds:ResourceTag
rds:ModifyDBInstanceSpecModifyDBInstanceSpecupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBMiniEngineVersionsDescribeDBMiniEngineVersionsget
全部资源
*
rds:ModifyParameterGroupModifyParameterGroupupdate
全部资源
*
rds:GetDBInstanceTopologyGetDBInstanceTopologyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeCrossBackupMetaListDescribeCrossBackupMetaListget
全部资源
*
rds:DescribeErrorLogsDescribeErrorLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeCrossRegionBackupDBInstanceDescribeCrossRegionBackupDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:GrantAccountPrivilegeGrantAccountPrivilegeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeInstanceCrossBackupPolicyDescribeInstanceCrossBackupPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:GrantOperatorPermissionGrantOperatorPermissioncreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeMetaListDescribeMetaListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CreateDBInstanceForRebuildCreateDBInstanceForRebuildcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CheckAccountNameAvailableCheckAccountNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceMaintainTimeModifyDBInstanceMaintainTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceNetInfoForChannelDescribeDBInstanceNetInfoForChannelget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDedicatedHostGroupsDescribeDedicatedHostGroupsget
全部资源
*
rds:ModifyReadWriteSplittingConnectionModifyReadWriteSplittingConnectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeWhitelistTemplateDescribeWhitelistTemplateget
全部资源
*
rds:AllocateReadWriteSplittingConnectionAllocateReadWriteSplittingConnectioncreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceDescriptionModifyDBInstanceDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CheckServiceLinkedRoleCheckServiceLinkedRoleget
全部资源
*
rds:CreateDBInstanceEndpointCreateDBInstanceEndpointcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstanceHAConfigDescribeDBInstanceHAConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeModifyParameterLogDescribeModifyParameterLogget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateBackupCreateBackupcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeParameterGroupDescribeParameterGroupget
全部资源
*
rds:DescribeSQLLogFilesDescribeSQLLogFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeParameterTemplatesDescribeParameterTemplatesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteDBNodesDeleteDBNodesdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyReadonlyInstanceDelayReplicationTimeModifyReadonlyInstanceDelayReplicationTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
rds:DescribeAvailableRecoveryTimeDescribeAvailableRecoveryTimeget
全部资源
*
rds:DescribeRdsResourceSettingsDescribeRdsResourceSettingsget
全部资源
*
rds:ModifyDBInstanceAutoUpgradeMinorVersionModifyDBInstanceAutoUpgradeMinorVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifySecurityGroupConfigurationModifySecurityGroupConfigurationupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CancelActiveOperationTasksCancelActiveOperationTasksupdate
全部资源
*
rds:ResourceTag
rds:ModifyDBInstanceDeletionProtectionModifyDBInstanceDeletionProtectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:UntagResourcesUntagResourcesdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CheckDBNameAvailableCheckDBNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceNetInfoDescribeDBInstanceNetInfoget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeActiveOperationTasksDescribeActiveOperationTasksget
全部资源
*
rds:SwitchDBInstanceVpcSwitchDBInstanceVpcupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CreateDdrInstanceCreateDdrInstancecreate
全部资源
*
rds:DescribeDBInstancesAsCsvDescribeDBInstancesAsCsvget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CreateSecretCreateSecret
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:UpgradeDBInstanceEngineVersionUpgradeDBInstanceEngineVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyParameterModifyParameterupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:TLSVersion
rds:AllocateInstancePublicConnectionAllocateInstancePublicConnectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeTasksDescribeTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeActionEventPolicyDescribeActionEventPolicyget
全部资源
*
rds:MigrateToOtherZoneMigrateToOtherZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeAvailableClassesDescribeAvailableClassesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyBackupPolicyModifyBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:EnableBackupLog
rds:BackupLog
rds:DescribeDedicatedHostsDescribeDedicatedHostsget
全部资源
*
rds:DescribeBackupPolicyDescribeBackupPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:TransformDBInstancePayTypeTransformDBInstancePayTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBProxyEndpointModifyDBProxyEndpointupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:MigrateConnectionToOtherZoneMigrateConnectionToOtherZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeDBInstanceDetailDescribeDBInstanceDetailget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeGadInstancesDescribeGadInstancesget
GadInstance
acs:rds::{#accountId}:gadinstance/*
rds:SwitchDBInstanceHASwitchDBInstanceHAupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CreateDBProxyEndpointAddressCreateDBProxyEndpointAddresscreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DBProxyConnectStringNetType
rds:DescribeReplicationLinkLogsDescribeReplicationLinkLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteBackupDeleteBackupdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ReleaseReadWriteSplittingConnectionReleaseReadWriteSplittingConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeSQLCollectorRetentionDescribeSQLCollectorRetentionget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeBackupDatabaseDescribeBackupDatabaseget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DeleteAccountDeleteAccountdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:RenewInstanceRenewInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstancesDescribeDBInstancesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateGADInstanceCreateGADInstancecreate
GadInstance
acs:rds::{#accountId}:gadinstance/*
rds:DescibeImportsFromDatabaseDescibeImportsFromDatabaselist
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:UpdateUserBackupFileUpdateUserBackupFileupdate
全部资源
*
rds:DescribeBinlogFilesDescribeBinlogFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDatabaseCreateDatabasecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceSSLDescribeDBInstanceSSLget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ListTagResourcesListTagResourcesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstanceTDEDescribeDBInstanceTDEget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLLogReportListDescribeSQLLogReportListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceNetworkExpireTimeModifyDBInstanceNetworkExpireTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeTagsDescribeTagsget
全部资源
*
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeResourceUsageDescribeResourceUsageget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeInstanceAutoRenewalAttributeDescribeInstanceAutoRenewalAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeEventsDescribeEventsget
全部资源
*
rds:ModifyDasInstanceConfigModifyDasInstanceConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceEndpointModifyDBInstanceEndpointupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceSSLModifyDBInstanceSSLupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SSLEnabled
rds:CreateDBInstanceCreateDBInstancecreate
全部资源
*
rds:ResourceTag
rds:PurgeDBInstanceLogPurgeDBInstanceLogdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeBackupsDescribeBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeCrossRegionLogBackupFilesDescribeCrossRegionLogBackupFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyWhitelistTemplateModifyWhitelistTemplateupdate
全部资源
*
rds:AttachWhitelistTemplateToInstanceAttachWhitelistTemplateToInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeDBInstancePromoteActivityDescribeDBInstancePromoteActivityget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeInstanceLinkedWhitelistTemplateDescribeInstanceLinkedWhitelistTemplateget
全部资源
*
rds:CopyDatabaseCopyDatabasecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CalculateDBInstanceWeightCalculateDBInstanceWeightget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:RebuildReplicationLinkRebuildReplicationLinkcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ResourceTag
rds:CreateReplicationLinkCreateReplicationLinkcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ResourceTag
rds:DetachGadInstanceMemberDetachGadInstanceMemberupdate
全部资源
*
rds:DeleteReplicationLinkDeleteReplicationLinkdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteDBInstanceEndpointAddressDeleteDBInstanceEndpointAddressdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:GetDbProxyInstanceSslGetDbProxyInstanceSslget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstanceEndpointsDescribeDBInstanceEndpointsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteDBInstanceEndpointDeleteDBInstanceEndpointdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeHistoryEventsDescribeHistoryEventslist
全部资源
*
rds:CheckInstanceExistCheckInstanceExistget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:StopDBInstanceStopDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:StartDBInstanceStartDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyAccountDescriptionModifyAccountDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:UpgradeDBInstanceKernelVersionUpgradeDBInstanceKernelVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceNetworkTypeModifyDBInstanceNetworkTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:InstanceNetworkType
rds:RestoreDdrTableRestoreDdrTablecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResetAccountResetAccountupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyActiveOperationTasksModifyActiveOperationTasksupdate
全部资源
*
rds:CreateDBInstanceEndpointAddressCreateDBInstanceEndpointAddresscreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBProxyEndpointDescribeDBProxyEndpointget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeHistoryEventsStatDescribeHistoryEventsStatlist
全部资源
*
rds:ModifyDBInstanceEndpointAddressModifyDBInstanceEndpointAddressupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteUserBackupFileDeleteUserBackupFiledelete
全部资源
*

资源(Resource)

下表是关系型数据库(RDS)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:
  • {#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。
  • *表示全部。例如:
    • {#resourceType}*时:表示全部资源。
    • {#regionId}*时:表示全部地域。
    • {#accountId}*时:表示全部阿里云账号。
资源类型资源ARN
DBInstanceacs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
DBInstanceacs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
DBInstanceacs:rds:{#regionId}:{#accountId}:dbinstance/*
Customacs:rds:{#regionId}:{#accountId}:custom/{#InstanceId}
DatabaseInstanceacs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
DBInstanceacs:rds:*:{#accountId}:dbinstance/*
GadInstanceacs:rds::{#accountId}:gadinstance/{#GadInstanceName}
DBInstanceacs:rds:{#Region}:{#AccountId}:dbinstance/{#DbInstanceId}
Accountacs:rds:{#regionId}:{#accountId}:dbinstance/{#DataBaseInstanceId}/account/{#AccountName}
DBInstanceacs:rds:*:{#accountId}:dbinstance/{#dbinstanceId}
DBInstanceacs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
DBInstanceacs:rds:*:{#accountId}:dbinstance/{#DBInstanceId}
ActionEventPolicyacs:rds:{#regionId}:{#accountId}:actioneventpolicy/{#RegionId}
GadInstanceacs:rds::{#accountId}:gadinstance/*

条件(Condition)

下表是关系型数据库(RDS)定义的产品级条件关键字,这些条件关键字可以在RAM权限策略语句的Condition元素中使用,用来描述授予权限的条件。以下仅列举产品级的条件关键字,阿里云定义的通用条件关键字也同样适用关系型数据库(RDS)
其中,数据类型决定了您可以使用哪些条件运算符将请求中的值与权限策略语句中的值进行比较。您必须使用与数据类型匹配的条件运算符,否则无法匹配策略语句,授权行为无效。数据类型与条件运算符的对应关系,请参见条件操作类型
条件关键字描述类型
rds:ResourceTag资源标签,与标签键组成条件关键字rds:ResourceTag/&lt;tag-key&gt;。示例值:假设标签为team:dev, 则此处条件关键字和值的写法 &quot;rds:ResourceTag/team&quot;: &quot;dev&quot;。STRING
rds:DiskEncryptionRequired磁盘是否加密。String
rds:SSLEnabledSSL是否开启String
rds:TDEStatusTDE状态。String
rds:BackupEnabled是否开启跨地域备份总开关。String
rds:DBProxyConnectStringNetType独享代理连接地址的网络类型。String
rds:EnableEventLog是否开启历史事件记录。String
rds:InstanceNetworkType实例的网络类型。String
rds:LogBackupEnabled是否开启跨地域日志备份开关。String
rds:DbProxySslEnabledSSL加密配置。String
rds:EnableBackupLog是否开启日志备份。String
rds:BackupLog是否开启日志备份。String
rds:TLSVersionTLS版本,示例:TLSv1,TLSv1.1,TLSv1.2。String

相关操作

您可以创建自定义权限策略,并将权限策略授予RAM用户、RAM用户组或RAM角色。具体操作如下: