全部產品
Search
文件中心

ApsaraDB RDS:CreateDBInstance

更新時間:Jun 26, 2026

該介面用於建立 RDS 執行個體。

介面說明

適用引擎

  • RDS MySQL

  • RDS PostgreSQL

  • RDS SQL Server

  • RDS MariaDB。

相關功能文件

警告 該 API 操作涉及費用,請仔細閱讀相關功能文件後再進行操作。 呼叫 API 時,如有報錯資訊,可以透過搜尋錯誤資訊,查看報錯原因。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

rds:CreateDBInstance

create

*All Resource

*

  • rds:ResourceTag
  • rds:Engine
  • rds:EngineVersion
  • rds:DBInstanceClass
  • rds:DBInstanceStorage

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

地域 ID。可呼叫 DescribeRegions 取得。

cn-hangzhou

Engine

string

資料庫類型。取值:

  • MySQL

  • SQLServer

  • PostgreSQL

  • MariaDB

MySQL

EngineVersion

string

資料庫版本。取值:

  • 常規執行個體
    • MySQL:5.55.65.78.0

    • SQL Server:08r2_ent_ha(雲端硬碟版,已停售)、2008r2(高效能本機磁碟,已停售)、2012(企業版單機)、2012_ent_ha2012_std_ha2012_web2014_ent_ha2014_std_ha2016_ent_ha2016_std_ha2016_web2017_ent2017_std_ha2017_web2019_ent2019_std_ha2019_web2022_ent2022_std_ha2022_web

    • PostgreSQL:10.011.012.013.014.015.016.017.018.0

    • MariaDB:10.310.6

  • Serverless 執行個體
    • MySQL:5.78.0

    • SQL Server:2016_std_sl2017_std_sl2019_std_sl

    • PostgreSQL:14.015.016.017.018.0

說明
  • MariaDB 不支援建立 Serverless 執行個體。

  • SQL Server 執行個體中 _ent 表示企業叢集版、_ent_ha 表示企業版、_std_ha 表示標準版、_web 表示 Web 版。

  • SQL Server 2014 版本執行個體國際站不支援售賣。

  • Babelfish for RDS PostgreSQL 執行個體只支援大版本 15.0。

8.0

DBInstanceClass

string

執行個體規格。可以指定標準版或倚天版規格,詳情請參見主執行個體規格表

如需建立 Serverless 執行個體,請傳入如下取值:

  • MySQL 基礎系列:mysql.n2.serverless.1c

  • MySQL 高可用系列:mysql.n2.serverless.2c

  • SQL Server:mssql.mem2.serverless.s2

  • PostgreSQL 基礎系列:pg.n2.serverless.1c

  • PostgreSQL 高可用系列:pg.n2.serverless.2c

mysql.n2.medium.2c

DBInstanceStorage

integer

執行個體儲存空間,單位為 GB。每 5 GB 進行遞增,取值範圍請參見執行個體規格表

100

SystemDBCharset

string

棄用參數,無需配置。

gbk

DBInstanceNetType

string

執行個體的網路連線類型。固定配置 Intranet,表示內網連線。

枚舉值:

  • Intranet :

Intranet

DBInstanceDescription

string

執行個體名稱。長度為 2~255 個字元。以中文、英文字母開頭,可以包含數字、中文、英文、短橫線(-)。

說明

不能以 http:// 和 https:// 開頭。

testInstance

SecurityIPList

string

該執行個體的 IP 白名單。多條記錄請以半形逗號(,)隔開,不可重複,單個執行個體最多新增 1000 個 IP 位址或 IP 段。支援如下兩種格式:

  • IP 位址形式,例如:10.10.XX.XX。

  • CIDR 形式,例如:10.10.XX.XX/24(無類別域間路由,24 表示了位址中前綴的長度,範圍為 1~32)。

10.10.XX.XX/24

ClientToken

string

用於保證請求的冪等性,防止重複提交請求。由用戶端產生該參數值,要保證在不同請求間唯一,最大值不超過 64 個 ASCII 字元,且該參數值中不能包含非 ASCII 字元。

ETnLKlblzczshOTUbOCz****

PayType

string

執行個體的付費類型,取值:

說明

系統會自動產生訂單並自動完成支付,無需手動確認支付。

Postpaid

ZoneId

string

主節點可用區 ID。

  • 指定了 VPC 和交換機時,此處必須傳入目標交換機所在的可用區 ID,否則無法建立成功。

  • 對於高可用系列執行個體,還需傳入 ZoneIdSlave1,以此決定執行個體是單可用區部署還是多可用區部署。

  • 對於三節點企業系列執行個體,還需傳入 ZoneIdSlave1ZoneIdSlave2,以此決定執行個體是單可用區部署還是多可用區部署。

  • 對於 RDS 叢集系列執行個體,兩節點還需要傳入 ZoneIdSlave1,三節點還需要傳入 ZoneIdSlave1ZoneIdSlave2

cn-hangzhou-b

ZoneIdSlave1

string

備節點可用區 ID。

  • 如果填寫 Auto,則表示多可用區部署並且會自動為備節點選擇可用區。

  • 如果和 ZoneId 相同,則為單可用區部署。

  • 如果和 ZoneId 不同,則為多可用區部署。

cn-hangzhou-c

ZoneIdSlave2

string

RDS MySQL 叢集系列執行個體支援在新建執行個體時,同時建立 1~2 個備節點。有此需求時,您可透過本參數指定第 2 個備節點的可用區。

cn-hangzhou-d

InstanceNetworkType

string

執行個體的網路類型。取值:

  • VPC:專有網路。

  • Classic:經典網路。

說明
  • MySQL 雲端硬碟執行個體只支援專有網路,此參數必須配置為 VPC

  • PostgreSQL 和 MariaDB 執行個體只支援專有網路,此參數必須配置為 VPC

  • SQL Server 單機版和 Web 版執行個體支援經典網路和專有網路。其餘執行個體只支援專有網路,此參數必須配置為 VPC

VPC

ConnectionMode

string

執行個體的存取模式。取值:

  • Standard:標準存取模式。

  • Safe:資料庫代理模式。

預設為 RDS 系統分配。

說明

SQL Server 2012、2016、2017 只支援標準存取模式。

Standard

VPCId

string

專有網路(VPC)ID。

說明

網路類型 InstanceNetworkType 取值為 VPC 時生效。

vpc-****

VSwitchId

string

虛擬交換機 ID。

  • 可用區對應關係:VSwitchId 所在的可用區必須與主節點可用區(ZoneId)和備節點可用區(ZoneIdSlave1)相對應;且填寫了兩個交換機 ID 時,其順序需分別與 ZoneId 和 ZoneSlaveId1 的順序一致。

  • 網路類型限制:網路類型 InstanceNetworkType 必須為 VPC

  • 多交換機填寫要求:若您填寫了 ZoneSlaveId1(備節點可用區 ID),並且不為 Auto,此處需填寫兩個交換機 ID,並使用半形逗號(,)隔開。

  • 字元限制:VSwitchId 中不能包含空格#&%等特殊字元。

vsw-****

PrivateIpAddress

string

設定執行個體的內網 IP。需要在指定交換機的 IP 位址範圍內。系統預設透過 VPCIdvSwitchId 自動分配。

172.16.XX.XX

UsedTime

string

指定購買時長。取值:

  • 當參數 Period=Year 時,UsedTime 取值為 1~5

  • 當參數 Period=Month 時,UsedTime 取值為 1~11

說明

若付費類型為 Prepaid 則該參數必須傳入。

2

Period

string

指定預付費執行個體為包年或者包月類型。取值:

  • Year:包年。

  • Month:包月。

說明

若付費類型為 Prepaid 則該參數必須傳入。

Year

ResourceGroupId

string

資源群組 ID。

rg-acfmy****

DBInstanceStorageType

string

執行個體儲存類型。取值:

  • local_ssd:高效能本機磁碟(推薦)。

  • general_essd:高效能雲端硬碟(推薦)。

  • cloud_essd:ESSD PL1 雲端硬碟。

  • cloud_essd2:ESSD PL2 雲端硬碟。

  • cloud_essd3:ESSD PL3 雲端硬碟。

  • cloud_ssd:SSD 雲端硬碟(不推薦,部分地域已經停止售賣)。

本參數的預設值根據 DBInstanceClass 參數中傳的規格代碼自動判斷:

  • 規格代碼為高效能本機磁碟規格:預設值為 local_ssd

  • 規格代碼為雲端硬碟規格:預設值為 cloud_essd

說明

Serverless 執行個體僅支援 ESSD PL1 雲端硬碟和高效能雲端硬碟。

general_essd

BusinessInfo

string

業務擴充參數。

121436975448952

EncryptionKey

string

同地域內的雲端硬碟加密的密鑰 ID。傳入此參數表示開啟雲端硬碟加密(開啟後無法關閉),並且需要傳入 RoleARN

您可以在密鑰管理服務控制台查看密鑰 ID,也可以建立新的密鑰。詳情請參見建立密鑰

說明
  • 對於 RDS MySQL、RDS PostgreSQL 和 RDS SQL Server 可不傳此參數,僅需要傳入 RoleARN 即可使用服務密鑰建立雲端硬碟加密執行個體。

  • 支援 RAM 授權允許子帳號建立執行個體時必須開啟雲端硬碟加密,若不開啟雲端硬碟加密,則不允許建立執行個體,RAM 子帳號授權配置如下: {"Version":"1","Statement":[{"Effect":"Deny","Action":"rds:CreateDBInstance","Resource":"*","Condition":{"StringEquals":{"rds:DiskEncryptionRequired":"false"}}}]}
    警告 此配置也會同步影響控制台建立執行個體 CreateOrder 介面。

0d24*****-da7b-4786-b981-9a164dxxxxxx

RoleARN

string

主帳號授權 RDS 雲端服務帳號存取 KMS 權限的全域資源描述符(ARN)。您可以透過 CheckCloudResourceAuthorized 介面查看 ARN 資訊。

重要 開啟雲端硬碟加密時,必須傳入 RoleARN

acs:ram::1406****:role/aliyunrdsinstanceencryptiondefaultrole

AutoRenew

string

執行個體是否自動續費,僅在建立包年包月執行個體時傳入。取值:

  • true

  • false

說明
  • 按月購買時,自動續費週期為 1 個月。

  • 按年購買時,自動續費週期為 1 年。

true

Category

string

執行個體系列。取值:

  • 常規執行個體

    • Basic:基礎系列。

    • HighAvailability:高可用系列。

    • cluster:MySQL 或 PostgreSQL 叢集系列。

    • AlwaysOn:SQL Server 叢集系列。

    • Finance:三節點企業系列。

    說明

    建立 SQL Server 企業叢集版和基礎系列企業版時,該參數必填。例如:建立基礎系列的 2022 企業叢集版(2022_ent)時,該參數必須傳入 Basic。

  • Serverless 執行個體

    • serverless_basic:Serverless 基礎系列。(僅適用 MySQL 和 PostgreSQL)

    • serverless_standard:Serverless 高可用系列。(僅適用 MySQL 和 PostgreSQL)

    • serverless_ha:SQL Server Serverless 高可用系列。

    說明

    當 PayType=Serverless 時,該參數必填。

HighAvailability

DedicatedHostGroupId

string

專屬叢集主機群組 ID。

在專屬叢集內建立 RDS 執行個體時需要指定。

  • 您可以呼叫 DescribeDedicatedHostGroups 介面查詢 RDS 主機群組資訊。

  • 如您還未建立 RDS 主機群組,可以呼叫 CreateDedicatedHostGroup 介面建立。

dhg-4n****

TargetDedicatedHostIdForMaster

string

專屬叢集中主執行個體的主機 ID。

在專屬叢集內建立 RDS 執行個體時需要指定。如不指定該參數,系統預設自動分配主機。

  • 您可以呼叫 DescribeDedicatedHosts 介面查詢 RDS 主機群組內的主機資訊。

  • 如您還沒有主機,可以呼叫 CreateDedicatedHost 介面新增。

i-bp****

TargetDedicatedHostIdForSlave

string

專屬叢集中備執行個體的主機 ID。

在專屬叢集內建立 RDS 高可用系列或三節點企業系列執行個體時需要指定。如不指定該參數,系統預設自動分配主機。

  • 您可以呼叫 DescribeDedicatedHosts 介面查詢 RDS 專屬叢集內的主機資訊。

  • 如您還沒有主機,可以呼叫 CreateDedicatedHost 介面新增。

i-bp****

TargetDedicatedHostIdForLog

string

專屬叢集中日誌執行個體的主機 ID。

在專屬叢集內建立 RDS 三節點企業系列執行個體時需要指定。如不指定該參數,系統預設自動分配主機。

  • 您可以呼叫 DescribeDedicatedHosts 介面查詢 RDS 專屬叢集內的主機資訊。

  • 如您還沒有主機,可以呼叫 CreateDedicatedHost 介面新增。

i-bp****

DBParamGroupId

string

參數範本 ID。可呼叫 DescribeParameterGroups 查詢。

說明

僅 MySQL 和 PostgreSQL 支援此參數,如不配置,將採用系統預設參數範本,您也可以自訂參數範本後,在此處使用。

rpg-sys-****

DBTimeZone

string

設定執行個體的時區,僅在 EngineMySQLPostgreSQL 時生效。

  • EngineMySQL
    • 此參數配置 UTC 時區。取值範圍為 -12:59 ~ +13:00

    • 高效能本機磁碟執行個體可以使用命名時區,例如 Asia/Hong_Kong。命名時區的詳細資訊,請參見命名時區參考

  • EnginePostgreSQL
    • 此參數配置命名時區,不支援 UTC 時區。命名時區的詳細資訊,請參見命名時區參考

    • 僅當執行個體為 PostgreSQL 雲端硬碟時,該參數可配置。

說明
  • 購買主執行個體時支援設定時區,唯讀執行個體不支援設定時區,唯讀執行個體將繼承主執行個體時區。

  • 如果不配置此參數,系統將根據您購買執行個體的地域,選擇預設時區。

+08:00

DBIsIgnoreCase

string

表名是否區分大小寫。取值:

  • true:不區分大小寫(預設)。

  • false:區分大小寫。

true

TargetMinorVersion

string

指定建立的 RDS 執行個體的核心小版本,僅在建立 MySQL 或 PostgreSQL 執行個體時需要傳入。 格式:

  • MySQL:<執行個體版本>_<數字版本號>。例如 rds_20200229xcluster_20200229xcluster80_20200229。說明如下:

    • rds:高可用系列或基礎系列。

    • xcluster:MySQL 5.7 三節點企業系列。

    • xcluster80:MySQL 8.0 三節點企業系列。

    說明

    數字版本號可透過呼叫 DescribeDBMiniEngineVersions 介面查詢。各版本差異,請參見 AliSQL 小版本 Release Notes

  • PostgreSQL:rds_postgres_<大版本>00_<小版本號>。例如 rds_postgres_1400_20220830。說明如下:

    • 1400:PostgreSQL 大版本為 14。

    • 20220830:AliPG 核心小版本,可透過呼叫 DescribeDBMiniEngineVersions 介面查詢。各版本差異,請參見 PostgreSQL 小版本 Release Notes

    說明

    如果 BabelfishConfig 中配置了啟用 Babelfish,則 RDS PostgreSQL 執行個體小版本格式為:rds_postgres_大版本 00_AliPG 核心小版本_babelfish

rds_20200229

StorageAutoScale

string

儲存空間自動擴容開關,僅 MySQL 和 PostgreSQL 支援。取值:

  • Enable:開啟。

  • Disable:關閉(預設)。

說明

您也可以在執行個體建立完成之後,呼叫 ModifyDasInstanceConfig 進行調整。更多資訊,請參見設定儲存空間自動擴容

Disable

StorageThreshold

integer

儲存空間自動擴容觸發閾值(百分比)。取值:

  • 10

  • 20

  • 30

  • 40

  • 50

說明

StorageAutoScaleEnable 時該參數必填。

50

StorageUpperBound

integer

儲存空間自動擴容的總儲存空間上限值,即自動擴容不會導致執行個體總儲存空間超過該值。單位:GB。

說明
  • 取值需大於等於 0。

  • StorageAutoScaleEnable 時必填。

2000

DryRun

boolean

是否對本次建立執行個體的操作執行預檢查。取值:

  • true:執行預檢查操作,不建立執行個體。檢查項目包含請求參數、請求格式、業務限制和庫存等。

  • false:傳送正常請求,通過檢查後直接建立執行個體(預設)。

false

UserBackupId

string

使用者備份 ID。可呼叫 ListUserBackupFiles 介面查詢。傳入該參數,可基於使用者備份建立執行個體。

如需傳入此參數,有如下限制:

  • PayType 參數必須為 Postpaid

  • Engine 參數必須為 MySQL

  • EngineVersion 參數必須為 5.7

  • Category 參數必須為 Basic

67798****

Amount

integer

指定需要建立的 RDS MySQL 執行個體數量。本參數僅適用於批次建立 RDS MySQL 執行個體。

取值範圍:1~20;預設值:1

說明
  • 建立多個 RDS MySQL 執行個體時,可以考慮透過 Tag.KeyTag.Value 參數給同一批次的執行個體打上標籤,以方便建立完成後透過標籤管理該批次的執行個體。

  • 完成多個 RDS MySQL 執行個體的建立後,介面只會返回 TaskIdRequestIdMessage 參數,不會返回其他詳情參數。如需查詢個體執行個體的詳情,可呼叫 DescribeDBInstanceAttribute 介面。

  • engine 參數非 MySQL,而本參數的值大於 1 時,介面會呼叫失敗並返回錯誤碼 InvalidParam.Engine

2

CreateStrategy

string

批次建立執行個體策略。本參數僅在 Amount 參數大於 1 時生效,取值:

  • Atomicity(預設值):原子性。即同一批次的執行個體要麼全部建立成功,若有一個建立失敗,則所有執行個體建立失敗。

  • Partial:非原子性。即執行個體的建立不受同一批次中其他執行個體的影響。

Atomicity

Tag

array<object>

標籤列表。

object

標籤列表詳情內容。

Key

string

標籤鍵。傳入此參數為執行個體繫結標籤。

  • 若傳入的標籤鍵已存在,則直接為執行個體繫結該標籤鍵。可呼叫 ListTagResources 查詢已建立的標籤。

  • 若傳入的標籤鍵不存在,則先建立再為執行個體繫結該標籤鍵。

  • 不允許傳入空字串。

  • 該參數與 Tag.Value 參數為配套參數,不可單獨使用。

testkey1

Value

string

標籤鍵對應的標籤值。傳入此參數為執行個體繫結標籤。

  • 若對應的標籤鍵中存在傳入的標籤值,則直接為執行個體繫結該標籤值。可呼叫 ListTagResources 查詢已建立的標籤。

  • 若對應的標籤鍵中不存在傳入的標籤值,則先建立再為執行個體繫結該標籤值。

  • 該參數與 Tag.Key 參數為配套參數,不可單獨使用。

testvalue1

DeletionProtection

boolean

是否開啟 RDS 釋放保護功能,僅隨用隨付執行個體支援。取值:

  • true:開啟。

  • false:關閉(預設)。

true

BabelfishConfig

string

Babelfish for RDS PostgreSQL 配置資訊。

配置格式:{"babelfishEnabled":"true","migrationMode":"xxxxxxx","masterUsername":"xxxxxxx","masterUserPassword":"xxxxxxxx"}

參數含義如下:

  • babelfishEnabled:是否開啟 Babelfish,開啟為 true,該參數不配置預設不開啟。

  • migrationMode:資料庫模式,單資料庫模式配置為 single-db,多資料庫模式配置為 multi-db

  • masterUsername:初始化管理帳號。由小寫字母、數字、底線組成,以字母開頭,以字母或數字結尾,最多 63 個字元,且不能以 pg 開頭。

  • masterUserPassword:管理帳號的密碼。由大寫、小寫、數字、特殊字元組成,至少包含三種,長度為 8-32 位;特殊字元包括 ! @ # $ % ^ & * () _ + - =

說明

該參數僅適用於 RDS PostgreSQL 執行個體,Babelfish for RDS PostgreSQL 的更多介紹,請參見 Babelfish 簡介

{"babelfishEnabled":"true","migrationMode":"single-db","masterUsername":"babelfish_user","masterUserPassword":"Babelfish123!"}

ServerlessConfig

object

RDS Serverless 執行個體的相關設定。建立 Serverless 執行個體時必傳。

說明

MariaDB 不支援建立 Serverless 執行個體。

MaxCapacity

number

執行個體 RCU(RDS Capacity Unit)自動擴縮範圍的最大值。取值:

  • MySQL:1~32

  • SQL Server:2~16

  • PostgreSQL:1~14

說明

該參數的值必須大於等於 MinCapacity,且僅支援傳入整數

8

MinCapacity

number

執行個體 RCU 自動擴。

0.5

AutoPause

boolean

是否开启 Serverless 实例的智能暂停和启动。取值:

  • true:启用。

  • false:不启用(默认)。

說明

仅 MySQL 和 PostgreSQL 的 Serverless 实例需设置该参数。如果 10 分钟无任何连接将进入暂停状态,当连接进入时会自动唤醒。

true

SwitchForce

boolean

是否开启 Serverless 实例的强制弹性扩缩容。取值:

  • true:启用。

  • false:不启用(默认)。

說明
  • 仅 MySQL 和 PostgreSQL 的 Serverless 实例需设置该参数。开启该参数后,实例进行强制扩缩容时会有 30~120 秒的服务不可用,请根据实际情况谨慎使用。

  • 实例 RCU 的弹性扩缩容通常会立刻生效,但在某些特殊情况下(例如大事务执行中)无法即刻完成扩缩容,此时可开启本参数进行强制扩缩容。

false

ConnectionString

string

数据库内网连接地址。

连接地址格式:xxx.mysql.rds.aliyuncs.com,其中xxx是实例 ID 的前缀,如 rm-uf6wjk5***。

rm-uf6wjk5****.mysql.rds.aliyuncs.com

Port

string

支持在创建 RDS 实例时初始化端口。取值范围:

  • MySQL:1000~65534

  • PostgreSQL、SQL Server、MariaDB:1000~5999

3306

BurstingEnabled

boolean

棄用參數,無需配置。

false

AutoPay

boolean

高性能云盘的 IO 性能突发功能开关。取值:

  • true:开启。

  • false:关闭。

說明

了解高性能云盘的 IO 性能突发功能的更多信息,请参见什么是高性能云盘

true

IoAccelerationEnabled

string

是否自动支付。取值:

  • true:自动支付。您需要确保账户余额充足。

  • false:只生成订单不扣费。

說明

默认值为 true。如果您的支付方式余额不足,可以将参数 AutoPay 设置为 false,此时会生成未支付订单,您可以登录 RDS 管理控制台自行支付。

0

ColdDataEnabled

boolean

高性能云盘的Buffer Pool Extension(BPE)功能开关。取值:

  • 1:开启

  • 0:不开启

false

WhitelistTemplateList

string

高性能云盘数据归档功能开关。取值:

  • true:开启。

  • false:关闭。

192.168.0.1,172.16.213.9

AutoCreateProxy

boolean

白名单列表。 当需要配置多个 IP 地址时,用英文逗号隔开多个 IP 地址或 IP 段,且逗号前后不能有空格,例如192.168.0.1,172.16.213.9

false

AutoUseCoupon

boolean

是否自动创建代理。取值:

  • true:开启自动创建,默认为通用代理。

  • false:不开启自动创建。

true

PromotionCode

string

是否使用代金券。取值:

  • true:使用代金券。

  • false(默认):不使用代金券。

說明

使用代金券后,若需要进行降配操作,由代金券抵扣的金额将不会进行退款。

aliwood-1688-mobile-promotion

OptimizedWrites

string

优惠券 code。

optimized

ExternalReplication

boolean

16K 原子写功能开关。取值:

  • optimized:开启。

  • none(默认):关闭。

ON

CustomExtraInfo

string

开启或关闭RDS MySQL 原生复制。取值:

  • ON:开启。

  • OFF:关闭。

返回參數

名稱

類型

描述

樣本值

object

返回参数详情。

DryRunResult

boolean

创建实例预检查是否通过。返回值:

  • true:通过。

  • false:未通过。

說明
  • 如不执行预检查,则不返回该参数。

  • 如预检查未通过,则返回对应错误。

true

TagResult

boolean

实例是否成功绑定标签。返回值:

  • true:成功。

  • false:失败。

說明

如不为实例绑定标签,则不返回该参数。

true

RequestId

string

请求 ID。

1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC

ConnectionString

string

实例内网连接地址。

rm-uf6wjk5****.mysql.rds.aliyuncs.com

Message

string

批量创建任务的提示信息。

說明

该参数仅在 Amount 参数大于 1 时返回。

Batch Create DBInstance Task Is In Process.

DBInstanceId

string

实例 ID。若给 Amount 参数指定大于 1 的值, 将返回与该值对应的实例 ID 个数,以逗号分隔。

例如 Amount 参数为 3,则返回 3 个实例 ID。示例: rm-uf6wjk5*****1,rm-uf6wjk5*****2,rm-uf6wjk5*****3

rm-uf6wjk5****

Port

string

实例内网连接地址对应端口号。

3306

TaskId

string

批量创建任务的任务 ID。

  • 仅在 Amount 参数大于 1 时返回。

  • 当前暂不支持通过 TaskId 的值查看任务。

s2365879-a9d0-55af-fgae-f2****

DryRun

boolean

表示当前请求需要在创建实例前执行预检查。

  • 返回值固定为 true

  • 如不执行预检查,则不返回该参数。

true

OrderId

string

订单 ID。

1007893702****

說明

使用新版 SDK 包调用本接口时,由于 SDK 内部的客户端默认超时时间和服务端的不一致,因此可能返回请求超时的错误,但实际上接口已调用成功。如需避免这个问题,您可以在调用前设置 ReadTimeout 参数为 20000。 设置调用超时时间

樣本

正常返回樣本

JSON格式

{
  "DryRunResult": true,
  "TagResult": true,
  "RequestId": "1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC",
  "ConnectionString": "rm-uf6wjk5****.mysql.rds.aliyuncs.com",
  "Message": "Batch Create DBInstance Task Is In Process.",
  "DBInstanceId": "rm-uf6wjk5****",
  "Port": "3306",
  "TaskId": "s2365879-a9d0-55af-fgae-f2****",
  "DryRun": true,
  "OrderId": "1007893702****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Invalid.ParamGroupDBVersion %s.%s
400 InvalidInstanceLevel.DiskType Specified instance level not support request disk type
400 RR309 We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification.
400 InvalidZoneId.NotSupported The Specified vpc Zone not supported.
400 InvalidZone.NotSupportedForStorageType The specified zone is closed or invalid for Specified DBInstanceStorageType.
400 InvalidNetworkTypeClassicWhenCloudStorage The Specified InstanceNetworkType value Classic is not valid when choose cloud storage type.
400 InvalidZone.NotSupported The Specified Zone not supported.
400 InvalidEssdStorageSize invalid cloud essd storage size.
400 InvalidParameter Some Reuquest Parameters Is Invalid. Check or Try It Again Later.
400 Pay.AmountLimitExceeded Pay amount limit exceeded.
400 IncompleteAccountInfo Your information is incomplete. Complete your information before the operation.
400 IncompleteTaxInfo Your tax information is incomplete. Complete your information before the operation.
400 InvalidPaymentMethod.Incomplete No payment method is specified for your account. We recommend that you add a payment method.
400 InvalidPaymentMethod.Missing No payment method is specified for your account. We recommend that you add a payment method.
400 InsuffcientBalanceOrBankAccount Add a payment method or add funds to the prepayment balance. Get started by creating an instance.
400 InvalidPaymentMethod.NoAccess No payment method is specified for your account. We recommend that you add a payment method.
400 InvalidPaymentMethod.InsufficientBalance No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.
400 Pay.LowFunds The balance of the advance payment is insufficient or there is no balance of the advance payment.
400 Pay.ChargeChannelNotFound Failure to obtain the first external payment channel if the advance balance is insufficient.
400 VswitchIpExhausted Vswitch IP exhausted.
400 InvalidPrivateIpAddress.AlreadyUsed The specified IP is already used.
400 InvalidEcsImage.NotFound Sepcified ecs image does not exist
400 InvalidMinorVersion.NotFound Sepcified minor version does not exists.
400 InvalidConcurrentOperate Concurrent operation is detected.
400 ZoneId.NotMatchWithCategory The number of ZoneId specified does not match with category.
400 InvalidSecurityIPList.Format The specified parameter securityIPList is not valid.
400 InvalidDBParamGroupId.Format The specified parameter dbParamGroupId is not valid.
400 InvalidTargetMinorVersion.Format The specified parameter targetMinorVersion is not valid.
400 InvalidDedicatedHostGroupId.Format The specified parameter dedicatedHostGroupId is not valid.
400 InvalidDBInstanceClass.Malformed The specified parameter DBInstanceClass is not valid.
400 InvalidEngineVersion.Malformed The specified parameter EngineVersion is not valid.
400 CreditPayInsufficientBalance Insufficient credit pay limit. Please contact your channel partner to increase the limit.
400 InvalidTagKey.Malformed The Tag.N.Key parameter is empty.
400 InvalidTagValue.Malformed The Tag.N.Value parameter is empty.
400 Duplicate.TagKey The Tag.N.Key contains duplicate keys.
400 NumberExceed.Tags The maximum number of Tags is exceeded. The maximum is 20.
400 MissingParameter.ResourceIds The parameter ResourceIds.N must not be null.
400 InvalidParameter.TagKey The Tag.N.Key parameter is invalid.
400 InvalidParameter.TagValue The Tag.N.Value parameter is invalid.
400 NoPermission.SystemTag You have no permission to use system tags.
400 InvalidParam.Amount Amount is allowed from 1 to 20.
400 InvalidParam.CreateStrategy Only Atomicity and Partial are allowed.
400 InvalidParam.Engine Only MySQL is allowed when Amount > 1.
400 InvalidMultiZoneInfoList The Specified Zone Info List is Invaild.
400 InvalidKmsConfigStatus The Kms Service Config is Invalid.
400 InvalidConnectionString.Duplicate Specified connection string already exists in the Aliyun RDS.
400 InvalidPort.Malformed Specified port is not valid.
400 InvalidUsedTime UsedTime can not Less than or equal to zero.
400 Kms.Unauthorized KMS has not been authorized.
400 InvalidDBInstanceClass.Offline The specified instance type is no longer provided. Please specify another instance type.
400 SystemParamGroupCode.Format Specific DBParamGroupId is not valid.
400 InvalidDBInstanceName.Duplicate Specified DB instance name already exists in the Aliyun RDS.
400 ServiceLinkedRole.NotExist Service linked role for RDS PostgreSQL not exist.
400 CommodityServiceCalling.Exception Failed to call commodity service.
400 Commodity.InvalidComponent The module you purchased is not legal, please buy it again.
400 Pay.InsufficientBalance Insufficient available balance.
400 Price.CommoditySys Commodity system call exception.
400 RegionEndTimeDissolvedAustralia Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024.
400 RegionEndTimeDissolvedIndia Cloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024.
400 InvalidPrivateIpAddress.Format The specified private IP address format is incorrect.
400 InvalidPrivateIpAddress.Mismatch Specified private IP address is not in the CIDR block of virtual switch.
400 TooManyWhitelistTemplateIds create dbinstance can support attach to up to 10 whitelist templates.
400 UnsupportExtendDisk.NotSupport Specified DB instance is unsupport extend disk.
400 InvalidWhitelistTemplateId the template id list is invalid.
400 InvalidRequestId The request is copy, check your token.
400 InvalidParameter.MinCapacity The specified parameter 'MinCapacity' is not valid.
400 UnsupportedClassCode The specified DB instance class stops selling.
400 InvalidParameter.NotSupportDBInstanceStorageType Parameter DBInstanceStorageType is invalid.
400 InvalidParam.InstanceNetworkType Creation of classic network instances is not supported.
400 InvalidOrder.NotFound Specified order does not exist in RDS.
400 InvalidVSwitchId.Format The specified vswitch Id format is incorrect.
400 Order.ComboInstanceNotAllowOperate A package instance is not allowed to operate independently.
400 Price.PricingPlanResultNotFound Pricing plan price result not found.
400 Order.NoRealNameAuthentication You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.
400 InsufficientAvailableQuota Your account quota limit is less than 0, please recharge before trying to purchase.
400 RegionDissolvedEOM Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support.
400 Order.PeriodInvalid There is a problem with the period you selected, please choose again.
400 pay.noCreditCard Account not bound to credit card.
400 Order.InstHasUnpaidOrder There is an unpaid order for the service you have purchased. Please pay or void it before placing the order.
400 BasicInfoUncompleted Your information is incomplete. Complete your information before the operation.
400 Risk.RiskControlRejection Your account is abnormal, please contact customer service for details.
400 Api.NotSupport Specified api is not supported.
400 ContainForbiddenLabelError There is a label that prohibits placing orders. Please contact your distributor for assistance.
400 InvalidDBInstanceId.NotFound The DBInstanceId provided does not exist in records.
400 InvalidParam Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica.
400 System.SaleValidateFailed Sales expression validation system error.
400 Abs.InvalidAccount.NotFound account is not found.
400 SqlExecuteFailedOrTimeout sql command execution failed or timed out:%s.
400 ColdData.EngineVersionNotSupport The current instance engine version not support coldDataEnabled.
400 ColdData.MinorVersionNotSupport The current instance minor version not support coldDataEnabled.
400 IncorrectTargetClasscode The current instance type does not support this operation.
400 RequiredParam.NotFound Required input param is not found.
400 Parameters.Invalid Parameter error, please check the parameters.
400 BackupPolicyNotSupport Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy.
400 InvalideStatus.Format The instance status does not support this operation.
400 InvalidReleasedKeepPolicy.Format Specified Released Keep Policy is not valid.
400 InvalidDBInstanceEngineType.Format the DB instance engine type does not support this operation.
400 Pay.NoCreditCard No credit cards.
400 VpcNetworkTypeNotSupport The vpc network type instance does not support this operation.
400 MirrorInsExists Specified DB instance mirror ins already existed.
400 InvalidBackupSet The specified database does not exist in the backup set.
400 OrdTCommodityQueryError Failed to query for product.
400 ProductInstanceReleased The instance has been released. Please check before placing the order.
400 IncorrectTargetCategory Current target category does not support this operation.
400 PurchaseDurationInsufficient The purchase duration does not meet the requirements, please choose again.
400 NotFound.ParamGroupId Current ParamGroupId not found.
400 InvalidParamForXfs Xfs instance must be single tenant standard instance.
400 UnsupportedColdData Current coldDataEnabled parameter can not support.
400 AtLeastThreeVSwitchAvailableIp The primary vswitch requires at least three available IP addresses.
400 AtLeastTwoVSwitchAvailableIp The primary vswitch requires at least two available IP addresses.
400 DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance Current instance is already attached to another duckdb instance, operation is conflict.
401 CannotDecreaseEssdPerfLevel cannot decrease cloud essd performance level.
500 ExternalFailure The request processing has failed due to external service failure.
500 RequestMetaDataFailed The service request failed. Please try again later or contact service personnel.
500 InvokeProxyFailure The request processing has failed due to service failure of rds api.
403 ByokRoleArnNotFound The roleArn can not be null.
403 RISK.RISK_CONTROL_REJECTION Risk control rejection.
403 AliCroup2CloudUserCannotBuyNotInnerCommodity There is no group cloud commodity label, and users within the group are not allowed to purchase.
403 GroupReplicationNotSupport.InvalidEngineVersion Group Replication requires the instance engine version to be 8.0.
403 GroupReplicationNotSupport.InvalidNodeClassCode Group Replication requires the ClassCode of each node to be consistent.
403 GroupReplicationNotSupport.InvalidNodeNum Group Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.
403 GroupReplicationNotSupport.InvalidXengine Group Replication is not supported because the instance has xengine tables.
403 GroupReplicationNotSupport.MemoryTooSmall Group Replication is not supported because the memory is too small.
403 IncorrectMinorVersion Current engine minor version does not support operations.
403 CloudDiskEncryptionNotSupport The encryption key is not allowed for general-purpose instance.
403 CloudSSDNotSupport Cloud ssd does not support this operation, please upgrade to essd.
403 InvalidVswitchId Specified conn vswitch id is not valid.
403 BasicCategoryNotSupport The Basic category is not supported.
403 OrderStatus.UnPaid The specified db instance has unpaid order.
403 InvalidReduceDiskSize The storage capacity after the scale-down must be larger than the used amount.
403 InvalidUserOperatorPermission The user permission does not support this operation.
403 OperationDenied.ZoneResource There is no available zone for inventory.
403 NotInFlowController Sorry,no permission.
403 InvalidKmsKey Kms key is disabled.
403 InvalidInstanceLevel.Malformed Current DB instance level does not support this operation.
403 IncorrectCharacterType Current DB instance character type does not support this operation.
404 InsufficientResourceCapacity The target availability zone does not have sufficient resources.
404 InvalidClusterKms The current instance does not authorized to access the Key Management Service.
404 Request.NotFound The requested resource is not available.
404 HostInfo.NotFound The specified host info is not found.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情