授权信息

访问控制(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:CancelActiveOperationTasksCancelActiveOperationTasksupdate
全部资源
*
rds:ResourceTag
rds:DescribeParameterGroupsDescribeParameterGroupsget
全部资源
*
rds:DescribeSecurityGroupConfigurationDescribeSecurityGroupConfigurationget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeEventsDescribeEventsget
全部资源
*
rds:UpgradeDBInstanceMajorVersionPrecheckUpgradeDBInstanceMajorVersionPrecheckget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteParameterGroupDeleteParameterGroupdelete
全部资源
*
rds:CreateParameterGroupCreateParameterGroupcreate
全部资源
*
rds:ModifyDBInstancePayTypeModifyDBInstancePayTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeInstanceAutoRenewalAttributeDescribeInstanceAutoRenewalAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyParameterGroupModifyParameterGroupupdate
全部资源
*
rds:DescribeAvailableCrossRegionDescribeAvailableCrossRegionget
全部资源
*
rds:DescribeDiagnosticReportListDescribeDiagnosticReportListget
全部资源
*
rds:CheckInstanceExistCheckInstanceExistget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
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:CreateDatabaseCreateDatabasecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDatabasesDescribeDatabasesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyActionEventPolicyModifyActionEventPolicyupdate
全部资源
*
rds:EnableEventLog
rds:UpgradeDBInstanceMajorVersionUpgradeDBInstanceMajorVersionupdate
DBInstance
acs:rds:*:{#accountId}:dbinstance/{#DBInstanceId}
rds:ModifyBackupPolicyModifyBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:EnableBackupLog
rds:BackupLog
rds:DescribeDBMiniEngineVersionsDescribeDBMiniEngineVersionsget
全部资源
*
rds:ModifySQLCollectorPolicyModifySQLCollectorPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeInstanceLinkedWhitelistTemplateDescribeInstanceLinkedWhitelistTemplateget
全部资源
*
rds:DescribeDedicatedHostGroupsDescribeDedicatedHostGroupsget
全部资源
*
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:ReleaseInstanceConnectionReleaseInstanceConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateDBInstanceForRebuildCreateDBInstanceForRebuildcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CheckCreateDdrDBInstanceCheckCreateDdrDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyInstanceCrossBackupPolicyModifyInstanceCrossBackupPolicyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:BackupEnabled
rds:LogBackupEnabled
rds:DescribeAvailableClassesDescribeAvailableClassesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstanceNetInfoDescribeDBInstanceNetInfoget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:AllocateInstancePublicConnectionAllocateInstancePublicConnectionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceEndpointModifyDBInstanceEndpointupdate
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:DescribeAllWhitelistTemplateDescribeAllWhitelistTemplateget
全部资源
*
rds:DescribeKmsAssociateResourcesDescribeKmsAssociateResourcesget
全部资源
*
rds:DescribeDBInstancePromoteActivityDescribeDBInstancePromoteActivityget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DeleteReplicationLinkDeleteReplicationLinkdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeActionEventPolicyDescribeActionEventPolicyget
全部资源
*
rds:DescribeHADiagnoseConfigDescribeHADiagnoseConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteSlotDeleteSlotdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DeleteDBInstanceEndpointAddressDeleteDBInstanceEndpointAddressdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:AttachWhitelistTemplateToInstanceAttachWhitelistTemplateToInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CheckServiceLinkedRoleCheckServiceLinkedRoleget
全部资源
*
rds:DescribeSQLCollectorPolicyDescribeSQLCollectorPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceSpecModifyDBInstanceSpecupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteDBNodesDeleteDBNodesdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeDBInstanceEncryptionKeyDescribeDBInstanceEncryptionKeyget
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:DeleteAccountDeleteAccountdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeSlotsDescribeSlotsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
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:DescribeRdsResourceSettingsDescribeRdsResourceSettingsget
全部资源
*
rds:DescribeBackupDatabaseDescribeBackupDatabaseget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:UpdatePostgresExtensionsUpdatePostgresExtensionsupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeBinlogFilesDescribeBinlogFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDBProxyEndpointAddressCreateDBProxyEndpointAddresscreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DBProxyConnectStringNetType
rds:DescribeCrossRegionBackupDBInstanceDescribeCrossRegionBackupDBInstanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBProxyEndpointAddressModifyDBProxyEndpointAddressupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DBProxyConnectStringNetType
rds:DeleteBackupDeleteBackupdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBProxyInstanceModifyDBProxyInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceAttributeDescribeDBInstanceAttributeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyHADiagnoseConfigModifyHADiagnoseConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceHAConfigModifyDBInstanceHAConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceMaintainTimeModifyDBInstanceMaintainTimeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceTDEModifyDBInstanceTDEupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:TDEStatus
rds:LockAccountLockAccountupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBProxyModifyDBProxyupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:InstanceNetworkType
rds:CreateCloudMigrationPrecheckTaskCreateCloudMigrationPrecheckTaskcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ModifyDBInstanceMetricsModifyDBInstanceMetricsupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceDescriptionModifyDBInstanceDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeAccountsDescribeAccountsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDBNodesCreateDBNodescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CreateDdrInstanceCreateDdrInstancecreate
全部资源
*
rds:ModifyPGHbaConfigModifyPGHbaConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:QueryNotifyQueryNotifyget
全部资源
*
rds:DescribeDBInstanceDetailDescribeDBInstanceDetailget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateDBInstanceEndpointAddressCreateDBInstanceEndpointAddresscreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:UpgradeDBProxyInstanceKernelVersionUpgradeDBProxyInstanceKernelVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DeleteDatabaseDeleteDatabasedelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDedicatedHostsDescribeDedicatedHostsget
全部资源
*
rds:RebuildDBInstanceRebuildDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribePriceDescribePriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeModifyPGHbaConfigLogDescribeModifyPGHbaConfigLogget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:MigrateDBInstanceMigrateDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyResourceGroupModifyResourceGroupupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CreateBackupCreateBackupcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
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:DescribeDBInstanceNetInfoForChannelDescribeDBInstanceNetInfoForChannelget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
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:ModifyDBInstanceEndpointAddressModifyDBInstanceEndpointAddressupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CreateReplicationLinkCreateReplicationLinkcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ResourceTag
rds:CheckDBNameAvailableCheckDBNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreatePostgresExtensionsCreatePostgresExtensionscreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:CloneParameterGroupCloneParameterGroupcreate
全部资源
*
rds:ResourceTag
rds:DescribeDBInstanceMetricsDescribeDBInstanceMetricsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:UpgradeDBInstanceKernelVersionUpgradeDBInstanceKernelVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLLogRecordsDescribeSQLLogRecordsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:RestartDBInstanceRestartDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceAutoUpgradeMinorVersionModifyDBInstanceAutoUpgradeMinorVersionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeleteDBProxyEndpointAddressDeleteDBProxyEndpointAddressdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeParameterGroupDescribeParameterGroupget
全部资源
*
rds:DescribeCrossBackupMetaListDescribeCrossBackupMetaListget
全部资源
*
rds:TagResourcesTagResourcescreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeAvailableMetricsDescribeAvailableMetricsget
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:DescribeCloudMigrationResultDescribeCloudMigrationResultget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeBackupsDescribeBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CreateCloudMigrationTaskCreateCloudMigrationTaskcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:StartDBInstanceStartDBInstanceupdate
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:DescribePostgresExtensionsDescribePostgresExtensionsget
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:DescribeDBInstanceEndpointsDescribeDBInstanceEndpointsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeParametersDescribeParametersget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:MigrateSecurityIPModeMigrateSecurityIPModeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DeleteDBInstanceEndpointDeleteDBInstanceEndpointdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeUpgradeMajorVersionTasksDescribeUpgradeMajorVersionTasksget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeInstanceCrossBackupPolicyDescribeInstanceCrossBackupPolicyget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
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:GrantAccountPrivilegeGrantAccountPrivilegeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
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:ActivateMigrationTargetInstanceActivateMigrationTargetInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeActiveOperationTasksDescribeActiveOperationTasksget
全部资源
*
rds:DestroyDBInstanceDestroyDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstancePerformanceDescribeDBInstancePerformanceget
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:DescribeLocalAvailableRecoveryTimeDescribeLocalAvailableRecoveryTimeget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CheckCloudResourceAuthorizedCheckCloudResourceAuthorizedget
全部资源
*
rds:ResourceTag
rds:DescribeDBInstanceIPArrayListDescribeDBInstanceIPArrayListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:CreateDBInstanceCreateDBInstancecreate
全部资源
*
rds:ResourceTag
rds:ModifyWhitelistTemplateModifyWhitelistTemplateupdate
全部资源
*
rds:ModifyDBDescriptionModifyDBDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancesForCloneDescribeDBInstancesForCloneget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifyInstanceAutoRenewalAttributeModifyInstanceAutoRenewalAttributeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:DescribeCrossRegionBackupsDescribeCrossRegionBackupsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DeletePostgresExtensionsDeletePostgresExtensionsdelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DescribeDBInstanceByTagsDescribeDBInstanceByTagsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceConnectionStringModifyDBInstanceConnectionStringupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SwitchDBInstanceHASwitchDBInstanceHAupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:CheckAccountNameAvailableCheckAccountNameAvailableget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeWhitelistTemplateDescribeWhitelistTemplateget
全部资源
*
rds:DescribeUpgradeMajorVersionPrecheckTaskDescribeUpgradeMajorVersionPrecheckTaskget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeInstanceKeywordsDescribeInstanceKeywordsget
全部资源
*
rds:CreateReadOnlyDBInstanceCreateReadOnlyDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeWhitelistTemplateLinkedInstanceDescribeWhitelistTemplateLinkedInstanceget
全部资源
*
rds:ReleaseInstancePublicConnectionReleaseInstancePublicConnectiondelete
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeDBInstancesByExpireTimeDescribeDBInstancesByExpireTimeget
全部资源
*
rds:ResourceTag
rds:ModifyDasInstanceConfigModifyDasInstanceConfigupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeSQLCollectorRetentionDescribeSQLCollectorRetentionget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeReplicationLinkLogsDescribeReplicationLinkLogsget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:DetachWhitelistTemplateToInstanceDetachWhitelistTemplateToInstancedelete
全部资源
*
rds:DescribeDBProxyPerformanceDescribeDBProxyPerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ModifyDBInstanceSSLModifyDBInstanceSSLupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:SSLEnabled
rds:DescribeSQLLogReportListDescribeSQLLogReportListget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeResourceUsageDescribeResourceUsageget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribePGHbaConfigDescribePGHbaConfigget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstanceSSLDescribeDBInstanceSSLget
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:TransformDBInstancePayTypeTransformDBInstancePayTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:AddTagsToResourceAddTagsToResourcecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:UnlockAccountUnlockAccountupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:CreateServiceLinkedRoleCreateServiceLinkedRolecreate
全部资源
*
rds:DeleteDBInstanceDeleteDBInstancedelete
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:CreateAccountCreateAccountcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeCrossRegionLogBackupFilesDescribeCrossRegionLogBackupFilesget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeDBInstancesByPerformanceDescribeDBInstancesByPerformanceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:CloneDBInstanceCloneDBInstancecreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:DescribeHistoryTasksDescribeHistoryTasksget
全部资源
*
rds:DescribeReadDBInstanceDelayDescribeReadDBInstanceDelayget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:DescribeTagsDescribeTagsget
全部资源
*
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:StopDBInstanceStopDBInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ModifyDBInstanceNetworkTypeModifyDBInstanceNetworkTypeupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:InstanceNetworkType
rds:DescribeRenewalPriceDescribeRenewalPriceget
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
rds:ModifySecurityGroupConfigurationModifySecurityGroupConfigurationupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag
rds:ResourceTag
rds:DescribeCloudMigrationPrecheckResultDescribeCloudMigrationPrecheckResultget
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:CreateDBInstanceEndpointCreateDBInstanceEndpointcreate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:MigrateToOtherZoneMigrateToOtherZoneupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:RenewInstanceRenewInstanceupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ConfirmNotifyConfirmNotifyget
全部资源
*
rds:DescribeVSwitchesDescribeVSwitchesget
全部资源
*
rds:ModifyAccountDescriptionModifyAccountDescriptionupdate
DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
rds:ResourceTag
rds:ResourceTag

资源(Resource)

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