全部產品
Search
文件中心

ApsaraDB RDS:CreateDBInstance

更新時間:Jul 14, 2026

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

介面說明

適用引擎

  • RDS MySQL

  • RDS PostgreSQL

  • RDS SQL Server

  • RDS MariaDB

相關功能文件

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

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

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_web2025_ent2025_std

    • 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

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 自動擴縮範圍的最小值。取值:

  • MySQL:0.5~32

  • SQL Server:2~16(僅支援整數)

  • PostgreSQL:0.5~14

說明

該參數的值必須小於等於 MaxCapacity

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. 目前可用區不支援建立 VPC 網路類型執行個體,請更換可用區。
400 InvalidZone.NotSupportedForStorageType The specified zone is closed or invalid for Specified DBInstanceStorageType. 指定的區域已關閉或對於指定的 DBInstanceStorageType 無效。
400 InvalidNetworkTypeClassicWhenCloudStorage The Specified InstanceNetworkType value Classic is not valid when choose cloud storage type. 選擇雲端儲存類型時,指定 InstanceNetworkType 的值為 Classic 是無效的。
400 InvalidZone.NotSupported The Specified Zone not supported. 區域無效。
400 InvalidEssdStorageSize invalid cloud essd storage size. 高效能雲端硬碟大小必須不小於 10GB,essd PL0 必須不小於 10G,PL1 必須不小於 20G,PL2 必須不小於 465G,PL3 必須不小於 1265G。
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. 指定的 vSwitch 中沒有可用的 IP。
400 InvalidPrivateIpAddress.AlreadyUsed The specified IP is already used. IP 已被使用。
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. 指定的安全 IP 清單格式不符合要求,請檢查格式規範。
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. Tag.N.Key 包含重複鍵。
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. 參數 ResourceIds.N 不能為空。
400 InvalidParameter.TagKey The Tag.N.Key parameter is invalid. 操作失敗,標籤鍵(Tag.N.Key)參數無效。
400 InvalidParameter.TagValue The Tag.N.Value parameter is invalid. Tag.N.Value 參數無效。
400 NoPermission.SystemTag You have no permission to use system tags. 不能使用系統標籤。
400 InvalidParam.Amount Amount is allowed from 1 to 20. 數量支援 1 到 20 的數值。
400 InvalidParam.CreateStrategy Only Atomicity and Partial are allowed. 僅支援 Atomicity 和 Partial 參數。
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. 參數 Port 無效,請檢查該參數的正確性。
400 InvalidUsedTime UsedTime can not Less than or equal to zero. usedTime 參數值應為 1~11 之間。
400 Kms.Unauthorized KMS has not been authorized. KMS 服務未授權。
400 InvalidDBInstanceClass.Offline The specified instance type is no longer provided. Please specify another instance type. 目前所選的執行個體規格已下線,請更換其他執行個體規格。
400 SystemParamGroupCode.Format Specific DBParamGroupId is not valid. 建立參數 DBParamGroupId 無效。
400 InvalidDBInstanceName.Duplicate Specified DB instance name already exists in the Aliyun RDS. 操作失敗,執行個體名稱已存在,請修改執行個體名稱後重試。
400 ServiceLinkedRole.NotExist Service linked role for RDS PostgreSQL not exist. SLR 不存在,使用者需要先建立 SLR。
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. 指定的 IP 位址格式不正確。
400 InvalidPrivateIpAddress.Mismatch Specified private IP address is not in the CIDR block of virtual switch. VPC 位址無效。
400 TooManyWhitelistTemplateIds create dbinstance can support attach to up to 10 whitelist templates. 傳入白名單範本數量過多!最多支援關聯 10 個白名單範本。
400 UnsupportExtendDisk.NotSupport Specified DB instance is unsupport extend disk. 指定的執行個體不支援擴充磁碟。
400 InvalidWhitelistTemplateId the template id list is invalid. 傳入的白名單範本 ID 清單有誤,請檢查!
400 InvalidRequestId The request is copy, check your token. 重複請求,請檢查 token。
400 InvalidParameter.MinCapacity The specified parameter 'MinCapacity' is not valid. 入參「MinCapacity」無效。
400 UnsupportedClassCode The specified DB instance class stops selling. 執行個體規格已停止銷售。
400 InvalidParameter.NotSupportDBInstanceStorageType Parameter DBInstanceStorageType is invalid. DBInstanceStorageType 參數無效。
400 InvalidParam.InstanceNetworkType Creation of classic network instances is not supported. 傳統網路已下線,不支援建立傳統網路執行個體!
400 InvalidOrder.NotFound Specified order does not exist in RDS. RDS 中不存在指定的訂單。
400 InvalidVSwitchId.Format The specified vswitch Id format is incorrect. 指定的 vswitch Id 格式不正確。
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. 您的帳戶可用額度小於 0,請先儲值後再嘗試購買。
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. 提供的 DBInstanceId 不存在。
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. 您的阿里雲端帳號不存在,或者您的 AccessKey 已經過期。
400 SqlExecuteFailedOrTimeout sql command execution failed or timed out:%s. SQL 命令執行失敗或執行逾時。
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. DB 執行個體引擎類型不支援此操作。
400 Pay.NoCreditCard No credit cards.
400 VpcNetworkTypeNotSupport The vpc network type instance does not support this operation. VPC 網路類型執行個體不支援此操作。
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. Xfs 執行個體必須是獨享高可用執行個體。
400 UnsupportedColdData Current coldDataEnabled parameter can not support. 指定區域不支援冷儲存功能。
400 AtLeastThreeVSwitchAvailableIp The primary vswitch requires at least three available IP addresses. 主要交換器至少需要 3 個可用 IP。
400 AtLeastTwoVSwitchAvailableIp The primary vswitch requires at least two available IP addresses. 主要交換器至少需要 2 個可用的 IP。
400 DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance Current instance is already attached to another duckdb instance, operation is conflict. 目前執行個體已經關聯了另一個 DUCKDB 執行個體,這和目前的 DUCKDB 操作衝突了。
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. 由於 RDS API 服務失敗,請求處理失敗。
403 ByokRoleArnNotFound The roleArn can not be null. roleArn 不能為空。
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. 執行個體資料庫版本不是 MySQL 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. 執行個體節點個數不是大於等於 3 的單數,不支援群組複寫。
403 GroupReplicationNotSupport.InvalidXengine Group Replication is not supported because the instance has xengine tables. 執行個體存在 xengine 引擎資料表,不支援群組複寫。
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. SSD 磁碟不支援此操作,請升級至 ESSD。
403 InvalidVswitchId Specified conn vswitch id is not valid. 指定的 VSwitchId 格式不正確或為空。
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. Kms key 已停用。
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. 指定的主機資訊不存在。

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

變更歷史

更多資訊,參考變更詳情