全部產品
Search
文件中心

ApsaraDB RDS:CreateDBInstance - 建立RDS執行個體

更新時間:Apr 18, 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

*全部資源

*

  • 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

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

Virtual Private Cloud 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

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

您可以在Key Management Service控制台查看金鑰識別碼,也可以建立新的密鑰。詳情請參見建立密鑰

說明
  • 對於 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 查詢已建立的標籤。

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

  • 不允許傳入Null 字元串。

  • 該參數與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

BpeEnabled

string

棄用參數,無需配置。

0

BurstingEnabled

boolean

高效能雲端硬碟的 IO 效能突發功能開關。取值:

  • true:開啟。

  • false:關閉。

說明

瞭解高效能雲端硬碟的 IO 效能突發功能的更多資訊,請參見什麼是高效能雲端硬碟

false

AutoPay

boolean

是否自動支付。取值:

  • true:自動支付。您需要確保賬戶餘額充足。

  • false:只產生訂單不計費。

說明

預設值為 true。如果您的支付方式餘額不足,可以將參數 AutoPay 設定為 false,此時會產生未支付訂單,您可以登入 RDS 管理主控台自行支付。

true

IoAccelerationEnabled

string

高效能雲端硬碟的Buffer Pool Extension(BPE)功能開關。取值:

  • 1:開啟

  • 0:不開啟

0

ColdDataEnabled

boolean

高效能雲端硬碟資料歸檔功能開關。取值:

  • true:開啟。

  • false:關閉。

false

WhitelistTemplateList

string

白名單列表。 當需要配置多個 IP 位址時,用英文逗號隔開多個 IP 位址或 IP 段,且逗號前後不能有空格,例如192.168.0.1,172.16.213.9

192.168.0.1,172.16.213.9

AutoCreateProxy

boolean

是否自動建立代理。取值:

  • true:開啟自動建立,預設為通用代理。

  • false:不開啟自動建立。

false

AutoUseCoupon

boolean

是否使用代金券。取值:

  • true:使用代金券。

  • false(預設):不使用代金券。

說明

使用代金券後,若需要進行降配操作,由代金券抵扣的金額將不會進行退款。

true

PromotionCode

string

優惠券 code。

aliwood-1688-mobile-promotion

OptimizedWrites

string

16K 原子寫功能開關。取值:

  • optimized:開啟。

  • none(預設):關閉。

optimized

ExternalReplication

boolean

開啟或關閉RDS MySQL 原生複製。取值:

  • ON:開啟。

  • OFF:關閉。

ON

CustomExtraInfo

string

返回參數

名稱

類型

描述

樣本值

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. 雲端硬碟儲存規格有誤,請檢查儲存規格配置。
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. Tag.N.Key參數為空白
400 InvalidTagValue.Malformed The Tag.N.Value parameter is empty. Tag.N.Value參數為空白
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. 標籤參數數量超過限制,有效數量: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. 指定的連接埠無效。
400 InvalidUsedTime UsedTime can not Less than or equal to zero. 參數UsedTime不能小於或者等於0。
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. 請為RDS PostgreSQL授權服務關聯角色AliyunServiceRoleForRdsPgsqlOnEcs
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. 指定的 wal_level 參數無效。執行個體中仍然存在複製槽,因此無法將其設定為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. 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. 指定的主機資訊不存在。

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

變更歷史

更多資訊,參考變更詳情