Relational Database Service (RDS)
The Organizations service provides Service Control Policies (SCPs) to set access control policies.
SCPs do not actually grant any permissions to a principal. They only set the permissions boundary for the principal. When SCPs are attached to a member account or an organizational unit (OU), they do not directly grant permissions to that member account or OU. Instead, the SCPs just determine what permissions are available for that member account or the member accounts under that OU.
This section describes the elements used by Organizations SCPs. The elements include actions, resources, and conditions.
For details about how to use these elements to create a custom SCP, see Creating an SCP.
Actions
Actions are specific operations that are allowed or denied in an SCP.
- The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in an SCP.
- The Resource Type column indicates whether the action supports resource-level permissions.
- You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions, and you must specify all resources ("*") in your SCP statements.
- If this column includes a resource type, you must specify the URN in the Resource element of your statements.
- Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.
For details about the resource types defined by RDS, see Resources.
- The Condition Key column contains keys that you can specify in the Condition element of an SCP statement.
- If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
- If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
- If the Condition Key column is empty (-) for an action, the action does not support any condition keys.
For details about the condition keys defined by RDS, see Conditions.
The following table lists the actions that you can define in SCP statements for RDS.
Action |
Description |
Access Level |
Resource Type (*: required) |
Condition Key |
---|---|---|---|---|
rds:task:listAll |
Grants permission to obtain task information. |
list |
- |
- |
rds:tag:list |
Grants permission to query project tags. |
list |
- |
- |
rds:param:listAll |
Grants permission to query parameter templates. |
list |
- |
- |
rds:param:listInstanceParamHistories |
Grants permission to query change history of instance parameters. |
list |
- |
- |
rds:databaseUser:list |
Grants permission to query database users. |
list |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:database:list |
Grants permission to query databases. |
list |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:backup:list |
Grants permission to query backups. |
list |
- |
- |
rds:log:setSlowLogSensitiveStatus |
Grants permission to show original slow query logs. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:enableSecondLevelMonitoring |
Grants permission to enable Monitoring by Seconds. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:tde |
Grants permission to enable TDE. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:openReadonly |
Grants permission to set an instance to read-only. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifySynchronizeModel |
Grants permission to configure the replication mode of a primary/standby instance. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyStrategy |
Grants permission to configure the failover priority of a primary/standby instance. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifySSL |
Grants permission to enable or disable SSL. |
permission_management |
- |
- |
rds:instance:modifyForceSwitch |
Grants permission to enable forcible HA switchover. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:setAutoEnlargePolicy |
Grants permission to configure a storage autoscaling policy. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyBackupPolicy |
Grants permission to configure an automated backup policy. |
permission_management |
instance |
g:EnterpriseProjectId rds:BackupEnabled g:ResourceTag/<tag-key> |
rds:instance:extendSpace |
Grants permission to scale up storage space of an instance. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:shrinkSpace |
Grants permission to scale down storage space of an instance. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:database:shrink |
Grants permission to shrink a database. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:binlog:setPolicy |
Grants permission to configure a binlog policy. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:auditlog:operate |
Grants permission to configure an audit log policy. |
permission_management |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getParameter |
Grants permission to query the parameter template of an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:param:get |
Grants permission to query parameters of a parameter template. |
read |
- |
- |
rds:instance:getSecondLevelMonitoringConfig |
Grants permission to query the configuration of Monitoring by Seconds. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:log:getErrorLogs |
Grants permission to query database error logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:log:getSlowLogs |
Grants permission to query slow query logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:log:download |
Grants permission to download logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:log:setLogSwitchover |
Grants permission to query failover/switchover logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getAutoEnlargePolicy |
Grants permission to query an autoscaling policy. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getBackupPolicy |
Grants permission to query a backup policy. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getDBProxy |
Grants permission to query information about a database proxy. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getDnsName |
Grants permission to query the domain name of an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getMsdtcHosts |
Grants permission to query MSDTC hosts. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getProxyFlavors |
Grants permission to query available instance classes for a database proxy. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getReplicaStatus |
Grants permission to query the replication status of an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getRestoreTime |
Grants permission to query the restoration time range of an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:listAll |
Grants permission to query DB instances. |
read |
- |
- |
rds:instance:get |
Grants permission to query details about an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:getEip |
Grants permission to query the EIP bound to an instance. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:update |
Grants permission to modify instance information. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:updateQuota |
Grants permission to modify project quotas. |
read |
- |
- |
rds:instance:listQuotas |
Grants permission to query resource quotas. |
read |
- |
- |
rds:instance:deleteTag |
Grants permission to delete tags in batches. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
- |
g:RequestTag/<tag-key> g:TagKeys |
|||
rds:instance:createTag |
Grants permission to add tags in batches. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
- |
g:RequestTag/<tag-key> g:TagKeys |
|||
rds:binlog:get |
Grants permission to query binlogs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:binlog:download |
Grants permission to download binlogs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:backup:download |
Grants permission to obtain a backup download link. |
read |
- |
- |
rds:auditlog:list |
Grants permission to query audit logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:auditlog:download |
Grants permission to obtain the link for downloading audit logs. |
read |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:listDatabaseVersion |
Grants permission to query the database version information. |
read |
- |
- |
rds:instance:listFlavors |
Grants permission to query specifications. |
read |
- |
- |
rds:instance:listStorageType |
Grants permission to query storage types. |
read |
- |
- |
rds:coldTable:query |
Grants permission to query hot and cold data separation. |
read |
- |
- |
rds:task:delete |
Grants permission to delete tasks from the task center. |
write |
- |
- |
rds:password:update |
Grants permission to change a database password. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:param:save |
Grants permission to save a parameter template. |
write |
- |
- |
rds:param:reset |
Grants permission to reset a parameter template. |
write |
- |
- |
rds:param:updateTemplate |
Grants permission to modify parameters in a parameter template. |
write |
- |
- |
rds:instance:updateParameter |
Grants permission to modify parameters of an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:param:delete |
Grants permission to delete a parameter template. |
write |
- |
- |
rds:param:createTemplate |
Grants permission to create a parameter template. |
write |
- |
- |
rds:param:copy |
Grants permission to replicate a parameter template. |
write |
- |
- |
rds:param:apply |
Grants permission to apply a parameter template. |
write |
- |
- |
rds:instance:tableRestore |
Grants permission to restore tables. |
write |
- |
- |
rds:instance:switchover |
Grants permission to perform a primary/standby switchover. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:singleToHa |
Grants permission to change an instance from single-node to primary/standby. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:haToSingle |
Grants permission to change an instance from primary/standby to single-node. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:setRecycleBin |
Grants permission to configure a recycling policy. |
write |
- |
- |
rds:instance:restoreInPlace |
Grants permission to restore data to an existing or original instance. |
write |
- |
- |
rds:instance:restart |
Grants permission to reboot an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:stop |
Grants permission to stop an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:start |
Grants permission to start an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifySpec |
Grants permission to change instance specifications. |
write |
- |
- |
rds:instance:modifySecurityGroup |
Grants permission to modify a security group. |
write |
- |
- |
rds:instance:modifyPublicAccess |
Grants permission to bind and unbind an EIP. |
write |
- |
- |
rds:instance:modifyProxy |
Grants permission to enable or disable database proxy. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyPort |
Grants permission to change a database port. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyIp |
Grants permission to change a floating IP address. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyHost |
Grants permission to modify a host. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:updateDnsName |
Grants permission to modify a domain name. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:SetMsdtcHosts |
Grants permission to add MSDTC hosts. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:updateOpsWindow |
Grants permission to configure the maintenance window of an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:updateName |
Grants permission to change an instance name. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:updateRemark |
Grants permission to modify an instance description. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:upgradeDatabaseVersion |
Grants permission to upgrade the version of an instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:deleteInstance |
Grants permission to delete a DB instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:deleteNode |
Grants permission to delete a database node. |
write |
- |
- |
rds:instance:createDns |
Grants permission to create a private DNS server. |
write |
- |
- |
rds:instance:create |
Grants permission to create a DB instance. |
write |
- |
rds:Encrypted rds:BackupEnabled g:RequestTag/<tag-key> g:TagKeys g:EnterpriseProjectId |
rds:instance:batchTableRestore |
Grants permission to restore tables to a point in time in batches. |
write |
- |
- |
rds:databaseUser:update |
Grants permission to modify the remarks of a database account. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:databaseUser:drop |
Grants permission to delete a database account. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:databaseUser:create |
Grants permission to create a database account. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:databasePrivilege:revoke |
Grants permission to revoke permissions of a database account. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:databasePrivilege:grant |
Grants permission to authorize a database account. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:database:drop |
Grants permission to delete a database. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:database:update |
Grants permission to modify a database. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:database:createDatabase |
Grants permission to create a database. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:binlog:merge |
Grants permission to merge binlogs. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:binlog:delete |
Grants permission to delete binlogs. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:backup:delete |
Grants permission to delete a manual backup. |
write |
- |
- |
rds:backup:create |
Grants permission to create a manual backup. |
write |
- |
- |
rds:instance:buildDrRelation |
Grants permission to configure DR capabilities for a DR instance. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:instance:modifyDRRole |
Grants permission to promote a DR instance to primary. |
write |
instance |
g:EnterpriseProjectId g:ResourceTag/<tag-key> |
rds:ltsConfig:update |
Grants permission to dump logs to LTS. |
write |
- |
- |
rds:coldTable:operate |
Grants permission to separate hot and cold data. |
write |
- |
- |
Each API of RDS usually supports one or more actions. Table 2 lists the supported actions and dependencies.
API |
Action |
Dependencies |
---|---|---|
GET /v3/{project_id}/jobs?id={id} |
rds:task:listAll |
- |
GET /v3/{project_id}/tags |
rds:tag:list |
- |
GET /v3/{project_id}/configurations |
rds:param:listAll |
- |
GET /v3/{project_id}/instances/{instance_id}/configuration-histories?offset={offset}&limit={limit}&start_time={start_time}&end_time={end_time}¶m_name={param_name} |
rds:param:listInstanceParamHistories |
- |
GET /v3/{project_id}/instances/{instance_id}/db_user/detail?page={page}&limit={limit} |
rds:databaseUser:list |
- |
GET /v3/{project_id}/instances/{instance_id}/database/detail?page={page}&limit={limit} |
rds:database:list |
- |
GET /v3/{project_id}/backups?instance_id={instance_id} |
rds:backup:list |
- |
PUT /v3/{project_id}/instances/{instance_id}/slowlog-sensitization/{status} |
rds:log:setSlowLogSensitiveStatus |
- |
PUT /v3/{project_id}/instances/{instance_id}/second-level-monitor |
rds:instance:enableSecondLevelMonitoring |
- |
PUT /v3/{project_id}/instances/{instance_id}/tde |
rds:instance:tde |
- |
PUT /v3/{project_id}/instances/{instance_id}/readonly-status |
rds:instance:openReadonly |
- |
PUT /v3/{project_id}/instances/{instance_id}/failover/mode |
rds:instance:modifySynchronizeModel |
- |
PUT /v3/{project_id}/instances/{instance_id}/failover/strategy |
rds:instance:modifyStrategy |
- |
PUT /v3/{project_id}/instances/{instance_id}/ssl |
rds:instance:modifySSL |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:modifyForceSwitch |
- |
PUT /v3/{project_id}/instances/{instance_id}/disk-auto-expansion |
rds:instance:setAutoEnlargePolicy |
- |
PUT /v3/{project_id}/instances/{instance_id}/backups/policy |
rds:instance:modifyBackupPolicy |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:extendSpace |
- |
POST /v3/{project_id}/instances/{instance_id}/db_shrink |
rds:database:shrink |
- |
PUT /v3/{project_id}/instances/{instance_id}/binlog/clear-policy |
rds:binlog:setPolicy |
- |
PUT /v3/{project_id}/instances/{instance_id}/auditlog-policy |
rds:auditlog:operate |
- |
GET /v3/{project_id}/instances/{instance_id}/configurations |
rds:instance:getParameter |
- |
GET /v3/{project_id}/configurations/{config_id} |
rds:param:get |
- |
GET /v3/{project_id}/instances/{instance_id}/second-level-monitor |
rds:instance:getSecondLevelMonitoringConfig |
- |
POST /v3/{project_id}/instances/{instance_id}/error-logs |
rds:log:getErrorLogs |
- |
POST /v3/{project_id}/instances/{instance_id}/slow-logs |
rds:log:getSlowLogs |
- |
POST /v3/{project_id}/instances/{instance_id}/slowlog-download |
rds:log:download |
- |
GET /v3/{project_id}/instances/{instance_id}/disk-auto-expansion |
rds:instance:getAutoEnlargePolicy |
- |
GET /v3/{project_id}/instances/{instance_id}/backups/policy |
rds:instance:getBackupPolicy |
- |
GET /v3/{project_id}/instances/{instance_id}/proxy |
rds:instance:getDBProxy |
- |
GET /v3/{project_id}/instances/{instance_id}/dns |
rds:instance:getDnsName |
- |
GET /v3/{project_id}/instances/{instance_id}/msdtc/hosts?offset={offset}&limit={limit} |
rds:instance:getMsdtcHosts |
- |
GET /v3/{project_id}/flavors/{database_name}?version_name={version_name}&spec_code={spec_code} |
rds:instance:getProxyFlavors |
- |
GET /v3/{project_id}/instances/{instance_id}/replication/status |
rds:instance:getReplicaStatus |
- |
GET /v3/{project_id}/instances/{instance_id}/restore-time?date={date} |
rds:instance:getRestoreTime |
- |
GET /v3/{project_id}/instances |
rds:instance:listAll |
- |
GET /v3/{project_id}/instances?id={id}&name={name}&type={type}&datastore_type={datastore_type}&vpc_id={vpc_id}&subnet_id={subnet_id}&offset={offset}&limit={limit}&tags={key}={value} |
rds:instance:get |
- |
GET https://{Endpoint}/v3/{project_id}/quotas |
rds:instance:listQuotas |
- |
POST /v3/{project_id}/instances/{instance_id}/tags/action |
rds:instance:deleteTag |
- |
POST /v3/{project_id}/instances/{instance_id}/tags/action |
rds:instance:createTag |
- |
GET /v3/{project_id}/instances/{instance_id}/binlog/clear-policy |
rds:binlog:get |
- |
GET /v3/{project_id}/backup-files?backup_id={backup_id} |
rds:backup:download |
- |
GET /v3/{project_id}/instances/{instance_id}/auditlog?start_time={start_time}&end_time={end_time}&offset={offset}&limit={limit} |
rds:auditlog:list |
- |
POST /v3/{project_id}/instances/{instance_id}/auditlog-links |
rds:auditlog:download |
- |
GET /v3/{project_id}/datastores/{database_name} |
rds:instance:listDatabaseVersion |
- |
GET /v3/{project_id}/flavors/{database_name}?version_name={version_name}&spec_code={spec_code} |
rds:instance:listFlavors |
- |
GET /v3/{project_id}/storage-type/{database_name}?version_name={version_name}&ha_mode={ha_mode} |
rds:instance:listStorageType |
- |
POST /v3/{project_id}/instances/{instance_id}/password |
rds:password:update |
- |
PUT /v3/{project_id}/configurations/{config_id} |
rds:param:updateTemplate |
- |
PUT /v3.1/{project_id}/instances/{instance_id}/configurations |
rds:instance:updateParameter |
- |
DELETE /v3/{project_id}/configurations/{config_id} |
rds:param:delete |
- |
POST /v3/{project_id}/configurations |
rds:param:createTemplate |
- |
POST /v3/{project_id}/configurations/{config_id}/copy |
rds:param:copy |
- |
PUT /v3.1/{project_id}/configurations/{config_id}/apply |
rds:param:apply |
- |
POST /v3.1/{project_id}/instances/{instance_id}/restore/tables |
rds:instance:tableRestore |
- |
PUT /v3/{project_id}/instances/{instance_id}/failover |
rds:instance:switchover |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:singleToHa |
- |
PUT /v3/{project_id}/instances/recycle-policy |
rds:instance:setRecycleBin |
- |
POST /v3/{project_id}/instances |
rds:instance:restoreInPlace |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:restart |
- |
POST /v3/{project_id}/instances/{instance_id}/action/shutdown |
rds:instance:stop |
- |
POST /v3/{project_id}/instances/{instance_id}/action/startup |
rds:instance:start |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:modifySpec |
- |
PUT /v3/{project_id}/instances/{instance_id}/security-group |
rds:instance:modifySecurityGroup |
- |
PUT /v3/{project_id}/instances/{instance_id}/public-ip |
rds:instance:modifyPublicAccess |
- |
POST /v3/{project_id}/instances/{instance_id}/proxy |
rds:instance:modifyProxy |
- |
PUT /v3/{project_id}/instances/{instance_id}/port |
rds:instance:modifyPort |
- |
PUT /v3/{project_id}/instances/{instance_id}/ip |
rds:instance:modifyIp |
- |
PUT /v3/{project_id}/instances/{instance_id}/modify-dns |
rds:instance:updateDnsName |
- |
POST /v3/{project_id}/instances/{instance_id}/msdtc/host |
rds:instance:SetMsdtcHosts |
- |
PUT /v3/{project_id}/instances/{instance_id}/ops-window |
rds:instance:updateOpsWindow |
- |
PUT /v3/{project_id}/instances/{instance_id}/name |
rds:instance:updateName |
- |
PUT /v3/{project_id}/instances/{instance_id}/alias |
rds:instance:updateRemark |
- |
POST /v3/{project_id}/instances/{instance_id}/db-upgrade |
rds:instance:upgradeDatabaseVersion |
- |
DELETE /v3/{project_id}/instances/{instance_id} |
rds:instance:deleteInstance |
- |
POST /v3/{project_id}/instances/{instance_id}/create-dns |
rds:instance:createDns |
- |
POST /v3/{project_id}/instances |
rds:instance:create |
- |
PUT /v3/{project_id}/instances/{instance_id}/db-users/{user_name}/comment |
rds:databaseUser:update |
- |
DELETE /v3/{project_id}/instances/{instance_id}/db_user/{user_name} |
rds:databaseUser:drop |
- |
POST /v3/{project_id}/instances/{instance_id}/db_user |
rds:databaseUser:create |
- |
DELETE /v3/{project_id}/instances/{instance_id}/db_privilege |
rds:databasePrivilege:revoke |
- |
POST /v3/{project_id}/instances/{instance_id}/db_privilege |
rds:databasePrivilege:grant |
- |
DELETE /v3/{project_id}/instances/{instance_id}/database/{db_name} |
rds:database:drop |
- |
POST /v3/{project_id}/instances/{instance_id}/database |
rds:database:createDatabase |
- |
DELETE /v3/{project_id}/backups/{backup_id} |
rds:backup:delete |
- |
POST /v3/{project_id}/backups |
rds:backup:create |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:buildDrRelation |
- |
POST /v3/{project_id}/instances/{instance_id}/action |
rds:instance:modifyDRRole |
- |
Resources
A resource type indicates the resources that an SCP applies to. If you specify a resource type for any action in Table 3, the resource URN must be specified in the SCP statements using that action, and the SCP applies only to resources of this type. If no resource type is specified, the Resource element is marked with an asterisk (*) and the SCP applies to all resources. You can also set condition keys in an SCP to define resource types.
The following table lists the resource types that you can define in SCP statements for RDS.
Conditions
A Condition element lets you specify conditions for when an SCP is in effect. It contains condition keys and operators.
- The condition key that you specify can be a global condition key or a service-specific condition key.
- Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, the system automatically obtains such information and authenticates users. For details, see Global Condition Keys.
- Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, rds:) only apply to operations of the RDS service. For details, see Table 4.
- The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
- A condition operator, condition key, and a condition value together constitute a complete condition statement. An SCP can be applied only when its request conditions are met. For supported condition operators, see Condition operators.
The following table lists the condition keys that you can define in SCPs for RDS. You can include these condition keys to specify conditions for when your SCP is in effect.
Service-specific Condition Key |
Type |
Single-valued/Multivalued |
Description |
---|---|---|---|
rds:Encrypted |
Boolean |
Single-valued |
Filters access permissions based on the tag key of whether to enable disk encryption transferred in the request parameter. |
rds:BackupEnabled |
Boolean |
Single-valued |
Filters access permissions based on the tag key of whether to enable the backup policy transferred in the request parameter. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot