查詢執行個體詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
selectdb:DescribeDBInstanceAttribute |
list |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBInstanceId |
string |
是 |
執行個體 ID。 |
selectdb-cn-7213cjv**** |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
06758CAB-1204-5852-A471-29C87D5C1D0F |
| Status |
string |
執行個體的狀態,取值說明:
|
ACTIVE |
| SubDomain |
string |
可用性區域。 |
cn-beijing-h-aliyun |
| GmtModified |
string |
執行個體修改時間(例如重啟,申請公網等操作)。格式為 yyyy-MM-ddTHH:mmZ(UTC 時間)。 |
2023-08-17T09:58Z |
| LockMode |
integer |
執行個體鎖定模式,取值為 lock,執行個體自動到期或欠費。 |
lock |
| LockReason |
string |
執行個體鎖定原因。 |
nolock |
| ResourceCpu |
integer |
資源 CPU 數量。 |
8 |
| StorageSize |
integer |
儲存空間大小。 |
400 |
| ObjectStoreSize |
integer |
儲存空間。 |
0 |
| MaintainStarttime |
string |
執行個體可維護時間段的開始時間。 |
預留參數,暫不返回 |
| MaintainEndtime |
string |
執行個體可維護時間段的結束時間。 |
預留參數,暫不返回 |
| DBClusterList |
array<object> |
執行個體所屬叢集列表資訊。 |
|
|
object |
叢集列表。 |
||
| DbInstanceName |
string |
執行個體名稱。 |
執行個體測試 |
| DbClusterId |
string |
叢集 ID。 |
selectdb-cn-h033cjs****-be |
| DbClusterName |
string |
叢集名稱。 |
test01 |
| Status |
string |
叢集的狀態,取值說明:
|
ACTIVATION |
| CreatedTime |
string |
叢集的建立時間。 |
2023-08-14T09:24:13Z |
| DbClusterClass |
string |
叢集規格,取值說明:
|
selectdb.2xlarge |
| CpuCores |
integer |
CPU 核心數。 |
8 |
| Memory |
integer |
記憶體大小。 |
64 |
| CacheStorageType |
string |
緩衝空間類型。 |
cloud_essd |
| PerformanceLevel |
string |
效能層級。 |
PL1 |
| CacheStorageSizeGB |
string |
緩衝空間,單位:GB。 |
200 |
| StartTime |
string |
叢集啟動時間。 |
2023-08-14T09:24:13Z |
| ChargeType |
string |
叢集的付費類型。取值:
|
Prepaid |
| ModifiedTime |
string |
修改時間。 |
2024-07-02T16:35:44+08:00 |
| ScalingRulesEnable |
boolean |
是否開啟分時彈性策略。 |
false |
| ZoneId |
string |
可用性區域 ID。 |
cn-hangzhou-k |
| VSwitchId |
string |
交換器 ID。 |
vsw-t4n8x7jcc8rknon85tqoa |
| SubDomain |
string |
子域。 |
預留參數,暫不返回。 |
| ClusterBinding |
string |
綁定的目的地組群。 |
selectdb-cn-7213cjv****-be |
| ClusterNodeType |
string |
叢集節點類型。僅在 serverless 下生效。 枚舉值:
|
base |
| ClusterNodeCount |
integer |
叢集節點數量。僅在 serverless 下生效。 |
1 |
| ScaleMax |
number |
執行個體 RCU(RDS Capacity Unit)的自動擴縮範圍最大值。 |
4 |
| ScaleMin |
number |
執行個體 RCU(RDS Capacity Unit)自動擴縮範圍的最小值。 |
0.5 |
| Engine |
string |
資料庫類型。 |
selectdb |
| EngineVersion |
string |
資料庫版本。 |
2.4 |
| EngineMinorVersion |
string |
執行個體的核心小版本號碼。 |
3.0.1 |
| DBInstanceId |
string |
執行個體 ID。 |
selectdb-cn-7213cjv**** |
| Description |
string |
執行個體備忘資訊。 |
test |
| CreateTime |
string |
建立時間。 |
2023-08-14T03:00:42Z |
| CanUpgradeVersions |
array |
資訊列表。 |
|
|
string |
資訊列表。 |
test |
|
| ChargeType |
string |
執行個體的付費類型。取值:
|
Prepaid |
| ExpireTime |
string |
執行個體到期時間。 |
2023-09-17T00:00Z |
| ResourceGroupId |
string |
執行個體所屬的資源群組 ID。 |
rg-aekzbck4asz3dsa |
| Tags |
array<object> |
執行個體標籤列表資訊。 |
|
|
object |
執行個體標籤列表。 |
||
| TagKey |
string |
標籤鍵。 |
testKey |
| TagValue |
string |
標籤值。 |
testValue |
| RegionId |
string |
地區 ID。 |
cn-beijing |
| ZoneId |
string |
執行個體可用性區域 ID |
cn-beijing-h |
| VpcId |
string |
執行個體 VPC ID。 |
vpc-bp175iuvg8nxqraf2**** |
| VSwitchId |
string |
交換器 ID。 |
vsw-bp18iztwqrs8qj2nc6nyu |
| DeployScheme |
string |
執行個體部署模式 |
multi_az |
| MultiZone |
array<object> |
多可用性區域配置。 說明
|
|
|
object |
多可用性區域列表。 |
||
| ZoneId |
string |
可用性區域 ID。 |
cn-hangzhou-k |
| VSwitchIds |
array |
交換器 ID 列表。 |
|
|
string |
交換器 ID。 |
vsw-bp10dbralpn4bzmgkkh8f |
|
| Cidr |
string |
首碼列表條目的 CIDR 地址塊資訊。 |
113.88.14.211/32 |
| AvailableIpCount |
integer |
可用性區域下可用 IP。 |
4096 |
| Serverless |
boolean |
當前執行個體是否開啟了 Serverless 功能。
|
false |
| SecGroupConnValid |
string |
當前執行個體所在 VPC 是否啟用連接埠直連功能。
|
false |
| VirtualClusterList |
array<object> |
虛擬叢集列表。 |
|
|
object |
|||
| DbClusterId |
string |
叢集 ID。 |
selectdb-vcg-33cjs****-be |
| DbClusterName |
string |
叢集名稱。 |
vgcdemo |
| Status |
string |
執行個體的狀態,取值說明:
|
UPDATING |
| CreatedTime |
string |
建立時間。 |
2025-05-31T21:01:09Z |
| ActiveClusterId |
string |
主叢集 ID。 |
selectdb-xx78***-be |
| ActiveClusterName |
string |
主叢集名稱。 |
test1 |
| StandbyClusterId |
string |
備叢集 ID。 |
selectdb-x6u7***-be |
| StandbyClusterName |
string |
備叢集名稱。 |
test2 |
| ConfigPatternType |
string |
執行個體已應用的配置模板 |
log |
| OTelGrafanaServiceStatus |
string |
||
| OTelBearerToken |
string |
樣本
正常返回樣本
JSON格式
{
"RequestId": "06758CAB-1204-5852-A471-29C87D5C1D0F",
"Status": "ACTIVE",
"SubDomain": "cn-beijing-h-aliyun",
"GmtModified": "2023-08-17T09:58Z",
"LockMode": 0,
"LockReason": "nolock",
"ResourceCpu": 8,
"StorageSize": 400,
"ObjectStoreSize": 0,
"MaintainStarttime": "預留參數,暫不返回",
"MaintainEndtime": "預留參數,暫不返回\n",
"DBClusterList": [
{
"DbInstanceName": "執行個體測試",
"DbClusterId": "selectdb-cn-h033cjs****-be",
"DbClusterName": "test01",
"Status": "ACTIVATION",
"CreatedTime": "2023-08-14T09:24:13Z",
"DbClusterClass": "selectdb.2xlarge",
"CpuCores": 8,
"Memory": 64,
"CacheStorageType": "cloud_essd",
"PerformanceLevel": "PL1",
"CacheStorageSizeGB": "200",
"StartTime": "2023-08-14T09:24:13Z",
"ChargeType": "Prepaid",
"ModifiedTime": "2024-07-02T16:35:44+08:00",
"ScalingRulesEnable": false,
"ZoneId": "cn-hangzhou-k",
"VSwitchId": "vsw-t4n8x7jcc8rknon85tqoa",
"SubDomain": "預留參數,暫不返回。",
"ClusterBinding": "selectdb-cn-7213cjv****-be",
"ClusterNodeType": "base",
"ClusterNodeCount": 1,
"ScaleMax": 4,
"ScaleMin": 0.5
}
],
"Engine": "selectdb",
"EngineVersion": "2.4",
"EngineMinorVersion": "3.0.1",
"DBInstanceId": "selectdb-cn-7213cjv****",
"Description": "test",
"CreateTime": "2023-08-14T03:00:42Z",
"CanUpgradeVersions": [
"test"
],
"ChargeType": "Prepaid",
"ExpireTime": "2023-09-17T00:00Z",
"ResourceGroupId": "rg-aekzbck4asz3dsa",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"RegionId": "cn-beijing",
"ZoneId": "cn-beijing-h",
"VpcId": "vpc-bp175iuvg8nxqraf2****",
"VSwitchId": "vsw-bp18iztwqrs8qj2nc6nyu",
"DeployScheme": "multi_az",
"MultiZone": [
{
"ZoneId": "cn-hangzhou-k",
"VSwitchIds": [
"vsw-bp10dbralpn4bzmgkkh8f"
],
"Cidr": "113.88.14.211/32",
"AvailableIpCount": 4096
}
],
"Serverless": false,
"SecGroupConnValid": "false",
"VirtualClusterList": [
{
"DbClusterId": "selectdb-vcg-33cjs****-be",
"DbClusterName": "vgcdemo",
"Status": "UPDATING",
"CreatedTime": "2025-05-31T21:01:09Z",
"ActiveClusterId": "selectdb-xx78***-be",
"ActiveClusterName": "test1",
"StandbyClusterId": "selectdb-x6u7***-be\n",
"StandbyClusterName": "test2"
}
],
"ConfigPatternType": "log",
"OTelGrafanaServiceStatus": "",
"OTelBearerToken": ""
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | 文檔轉換失敗,檔案大小超過系統限額。 |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | 子帳號許可權不足,請先擷取授權。 |
| 400 | InvalidDBName | The specified database name is not allowed. | 資料庫名稱不符合要求,請確認資料名稱是否正確。 |
| 400 | CreateOrderFailed | Failed to create order. | 建立訂單失敗。 |
| 400 | InvalidDBName.Duplicate | Specified DB name already exists in the This instance. | 建立叢集名稱重複。 |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | 當叢集未運行時,無法執行請求的操作。 |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 當前執行個體狀態不支援此操作。 |
| 403 | InstanceEngineType.NotSupport | The instance engine and type does not support operations. | 操作失敗,執行個體引擎和類型不支援該操作。 |
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | 指定的執行個體狀態不支援此操作。 |
| 403 | MoneyLessThan100 | The Account Monet less Than 100. | 當前阿里雲帳號餘額不足100,請儲值。 |
| 403 | OperationDenied.DBNameAndAccountPrivilegeCount | The operation is not permitted due to count of database or account privilege. | 操作失敗,資料庫與許可權的數量不一致。 |
| 403 | InsufficientResourceCapacity | The resource is out of usage. | 資源不足,請您稍後再試。 |
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | SelectDB執行個體不存在。 |
| 404 | InvalidClusterInstance.NotFound | Specified cluster instance does not exist. | SelectDB執行個體不存在。 |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | 操作失敗,當前執行個體鎖定。 |
| 404 | IncorrectVswitchId | The specified parameter VSwitchId is not valid. | 交換器參數無效。 |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstance.NotFound | The specified instance is not found. | 沒有找到指定的執行個體,請檢查執行個體的正確性。 |
| 404 | InvalidDBInstanceClass.NotFound | The specified instance classic does not exist. | 當前選擇的配置或規格不存在或已停售,請重新選擇。 |
| 404 | InvalidRegionId.NotFound | The provided RegionId does not exist in our records. | 操作失敗,輸入的地區及可用性區域不存在。 |
| 404 | QueryPrice.Failed | The inquiry failed. Contact Alibaba Cloud customer service representatives. | 詢價失敗,請聯絡客服同學。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。