授权信息

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍云数据库 RDS为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。云数据库 RDS的RAM代码(RamCode)为[{"popCode":"Rds","ramCodes":["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:CreateTempDBInstanceCreateTempDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CancelActiveOperationTasksCancelActiveOperationTasksupdate
全部资源
*
rds:ResourceTag
rds:DescribeEventsDescribeEventsget
全部资源
*
rds:DescribeSecurityGroupConfigurationDescribeSecurityGroupConfigurationget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDBInstanceSecurityGroupRuleCreateDBInstanceSecurityGroupRulecreate
全部资源
*
rds:ModifyDBInstancePayTypeModifyDBInstancePayTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyADInfoModifyADInfoupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeInstanceAutoRenewalAttributeDescribeInstanceAutoRenewalAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceSecurityGroupRuleModifyDBInstanceSecurityGroupRuleupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeAvailableCrossRegionDescribeAvailableCrossRegionget
全部资源
*
rds:CheckInstanceExistCheckInstanceExistget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:AllocateReadWriteSplittingConnectionAllocateReadWriteSplittingConnectioncreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDatabasesDescribeDatabasesget
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:ModifyActionEventPolicyModifyActionEventPolicyupdate
全部资源
*
rds:EnableEventLog
rds:DescribeDiagnosticReportListDescribeDiagnosticReportListget
全部资源
*
rds:DescribeSupportOnlineResizeDiskDescribeSupportOnlineResizeDiskget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyDBInstanceDeletionProtectionModifyDBInstanceDeletionProtectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLLogFilesDescribeSQLLogFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyBackupPolicyModifyBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:EnableBackupLog
rds:BackupLog
rds:DescribeDedicatedHostGroupsDescribeDedicatedHostGroupsget
全部资源
*
rds:DescribeAllWhitelistTemplateDescribeAllWhitelistTemplateget
全部资源
*
rds:DescribeDBInstancePromoteActivityDescribeDBInstancePromoteActivityget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteReplicationLinkDeleteReplicationLinkdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ReleaseReadWriteSplittingConnectionReleaseReadWriteSplittingConnectiondelete
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:ModifyAccountSecurityPolicyModifyAccountSecurityPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CheckCreateDdrDBInstanceCheckCreateDdrDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeOssDownloadsDescribeOssDownloadsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeInstanceLinkedWhitelistTemplateDescribeInstanceLinkedWhitelistTemplateget
全部资源
*
rds:RevokeOperatorPermissionRevokeOperatorPermissiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeAvailableClassesDescribeAvailableClassesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:AllocateInstancePublicConnectionAllocateInstancePublicConnectionupdate
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:DescribeDBInstanceTDEDescribeDBInstanceTDEget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeKmsAssociateResourcesDescribeKmsAssociateResourcesget
全部资源
*
rds:DescribeActionEventPolicyDescribeActionEventPolicyget
全部资源
*
rds:ModifySQLCollectorPolicyModifySQLCollectorPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyParameterModifyParameterupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:TLSVersion
rds:ModifySecurityIpsModifySecurityIpsupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDBInstanceForRebuildCreateDBInstanceForRebuildcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ReleaseInstanceConnectionReleaseInstanceConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:AttachWhitelistTemplateToInstanceAttachWhitelistTemplateToInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyCollationTimeZoneModifyCollationTimeZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyInstanceCrossBackupPolicyModifyInstanceCrossBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:BackupEnabled
rds:LogBackupEnabled
rds:DeleteAccountDeleteAccountdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstancesDescribeDBInstancesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLCollectorPolicyDescribeSQLCollectorPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeBackupDatabaseDescribeBackupDatabaseget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceSpecModifyDBInstanceSpecupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeRdsResourceSettingsDescribeRdsResourceSettingsget
全部资源
*
rds:ModifyDBInstanceMaintainTimeModifyDBInstanceMaintainTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyReadWriteSplittingConnectionModifyReadWriteSplittingConnectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstanceEncryptionKeyDescribeDBInstanceEncryptionKeyget
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:ModifyDBInstanceConfigModifyDBInstanceConfignone
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeAccountsDescribeAccountsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeADInfoDescribeADInfoget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeCrossRegionBackupDBInstanceDescribeCrossRegionBackupDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstanceAttributeDescribeDBInstanceAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceTDEModifyDBInstanceTDEupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:TDEStatus
rds:ModifyDBInstanceDescriptionModifyDBInstanceDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyHADiagnoseConfigModifyHADiagnoseConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSlowLogsDescribeSlowLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteADSettingDeleteADSettingdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CreateDdrInstanceCreateDdrInstancecreate
全部资源
*
rds:UntagResourcesUntagResourcesdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ListTagResourcesListTagResourcesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDTCSecurityIpHostsForSQLServerDescribeDTCSecurityIpHostsForSQLServerget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CreateOnlineDatabaseTaskCreateOnlineDatabaseTaskcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:QueryNotifyQueryNotifyget
全部资源
*
rds:DescribeDBInstanceProxyConfigurationDescribeDBInstanceProxyConfigurationget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteDatabaseDeleteDatabasedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeLogBackupFilesDescribeLogBackupFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceSecurityGroupRuleDescribeDBInstanceSecurityGroupRuleget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:UpgradeDBInstanceKernelVersionUpgradeDBInstanceKernelVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribePriceDescribePriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:MigrateDBInstanceMigrateDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeHostWebShellDescribeHostWebShellget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyResourceGroupModifyResourceGroupupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceNetInfoForChannelDescribeDBInstanceNetInfoForChannelget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:TerminateMigrateTaskTerminateMigrateTaskdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CheckDBNameAvailableCheckDBNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceDetailDescribeDBInstanceDetailget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDedicatedHostsDescribeDedicatedHostsget
全部资源
*
rds:RebuildDBInstanceRebuildDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateReplicationLinkCreateReplicationLinkcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ResourceTag
rds:CreateBackupCreateBackupcreate
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:ResetAccountPasswordResetAccountPasswordupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeBackupPolicyDescribeBackupPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:RestartDBInstanceRestartDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:RecoveryDBInstanceRecoveryDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeCrossBackupMetaListDescribeCrossBackupMetaListget
全部资源
*
rds:TagResourcesTagResourcescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceNetworkExpireTimeModifyDBInstanceNetworkExpireTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeBackupsDescribeBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstanceHAConfigDescribeDBInstanceHAConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:StartDBInstanceStartDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeErrorLogsDescribeErrorLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CopyDatabaseCopyDatabasecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyActiveOperationTasksModifyActiveOperationTasksupdate
全部资源
*
rds:DescribeSlowLogRecordsDescribeSlowLogRecordsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeTasksDescribeTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancesAsCsvDescribeDBInstancesAsCsvget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:GrantOperatorPermissionGrantOperatorPermissioncreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeParametersDescribeParametersget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeInstanceCrossBackupPolicyDescribeInstanceCrossBackupPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:GrantAccountPrivilegeGrantAccountPrivilegeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:MigrateConnectionToOtherZoneMigrateConnectionToOtherZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeMigrateTaskByIdDescribeMigrateTaskByIdget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeModifyParameterLogDescribeModifyParameterLogget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:RebuildReplicationLinkRebuildReplicationLinkcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ResourceTag
rds:DeleteDBInstanceSecurityGroupRuleDeleteDBInstanceSecurityGroupRuledelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeActiveOperationTasksDescribeActiveOperationTasksget
全部资源
*
rds:DescribeDBInstancePerformanceDescribeDBInstancePerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DestroyDBInstanceDestroyDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SwitchDBInstanceVpcSwitchDBInstanceVpcupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeParameterTemplatesDescribeParameterTemplatesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CheckCloudResourceAuthorizedCheckCloudResourceAuthorizedget
全部资源
*
rds:ResourceTag
rds:DescribeDBInstanceIPArrayListDescribeDBInstanceIPArrayListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancesForCloneDescribeDBInstancesForCloneget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CreateDBInstanceCreateDBInstancecreate
全部资源
*
rds:ResourceTag
rds:DescribeCrossRegionBackupsDescribeCrossRegionBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBDescriptionModifyDBDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyWhitelistTemplateModifyWhitelistTemplateupdate
全部资源
*
rds:ModifyInstanceAutoRenewalAttributeModifyInstanceAutoRenewalAttributeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:PurgeDBInstanceLogPurgeDBInstanceLogdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyDatabaseConfigModifyDatabaseConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeDBInstanceMonitorDescribeDBInstanceMonitorget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceByTagsDescribeDBInstanceByTagsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateMigrateTaskCreateMigrateTaskcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SwitchDBInstanceHASwitchDBInstanceHAupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceConnectionStringModifyDBInstanceConnectionStringupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeWhitelistTemplateDescribeWhitelistTemplateget
全部资源
*
rds:CheckAccountNameAvailableCheckAccountNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeMigrateTasksDescribeMigrateTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeWhitelistTemplateLinkedInstanceDescribeWhitelistTemplateLinkedInstanceget
全部资源
*
rds:ModifyDasInstanceConfigModifyDasInstanceConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceMonitorModifyDBInstanceMonitorupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DetachWhitelistTemplateToInstanceDetachWhitelistTemplateToInstancedelete
全部资源
*
rds:CreateReadOnlyDBInstanceCreateReadOnlyDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ReleaseInstancePublicConnectionReleaseInstancePublicConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceSSLModifyDBInstanceSSLupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SSLEnabled
rds:DescribeInstanceKeywordsDescribeInstanceKeywordsget
全部资源
*
rds:DescribeSQLCollectorRetentionDescribeSQLCollectorRetentionget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDTCSecurityIpHostsForSQLServerModifyDTCSecurityIpHostsForSQLServerupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeDBInstancesByExpireTimeDescribeDBInstancesByExpireTimeget
全部资源
*
rds:ResourceTag
rds:CalculateDBInstanceWeightCalculateDBInstanceWeightget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeReplicationLinkLogsDescribeReplicationLinkLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeSQLLogReportListDescribeSQLLogReportListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:AddTagsToResourceAddTagsToResourcecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CopyDatabaseBetweenInstancesCopyDatabaseBetweenInstancescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeResourceUsageDescribeResourceUsageget
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:ModifyHASwitchConfigModifyHASwitchConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeCrossRegionLogBackupFilesDescribeCrossRegionLogBackupFilesget
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:CloneDBInstanceCloneDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyAccountCheckPolicyModifyAccountCheckPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteDBInstanceDeleteDBInstancedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceIpHostnameDescribeDBInstanceIpHostnameget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeBackupTasksDescribeBackupTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancesByPerformanceDescribeDBInstancesByPerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateAccountCreateAccountcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeHistoryTasksDescribeHistoryTasksget
全部资源
*
rds:DeleteBackupFileDeleteBackupFiledelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeTagsDescribeTagsget
全部资源
*
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:SwitchDBInstanceNetTypeSwitchDBInstanceNetTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:StopDBInstanceStopDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceNetworkTypeModifyDBInstanceNetworkTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:InstanceNetworkType
rds:ResetAccountResetAccountupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifySecurityGroupConfigurationModifySecurityGroupConfigurationupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ConfirmNotifyConfirmNotifyget
全部资源
*
rds:DescribeVSwitchesDescribeVSwitchesget
全部资源
*
rds:RevokeAccountPrivilegeRevokeAccountPrivilegedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:MigrateToOtherZoneMigrateToOtherZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeRenewalPriceDescribeRenewalPriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyAccountDescriptionModifyAccountDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:RemoveTagsFromResourceRemoveTagsFromResourcedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
DatabaseInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
rds:RenewInstanceRenewInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag

资源(Resource)

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

条件(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角色。具体操作如下: