授权信息

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

资源(Resource)

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