Creates a logical database in Database Management (DMS).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateLogicDatabase |
The operation that you want to perform. Set the value to CreateLogicDatabase. |
Alias | String | Yes | test_logic_db |
The alias of the logical database. |
DatabaseIds | Array of Long | Yes | 1860**** |
The IDs of the physical databases that compose the logical database. You can specify one or more database IDs. You can call the ListDatabases or SearchDatabase operation to query the IDs of the physical databases. |
Tid | Long | No | 3*** |
The ID of the tenant. Note To view the ID of the tenant, move the pointer over the profile picture in the upper-right
corner of the DMS console. For more information, see the "View information about the
current tenant" section of the Manage DMS tenants topic.
|
RegionId | String | No | cn-hangzhou |
The ID of the region in which DMS is activated. For more information about the valid values of this parameter, see RegionID parameter. Note Set this parameter to the ID of the region that is in proximity to your applications.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C51420E3-144A-4A94-B473-8662FCF4AD10 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
ErrorMessage | String | UnknownError |
The error message. |
ErrorCode | String | UnknownError |
The error code. |
LogicDbId | Long | 1*** |
The ID of the logical database. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=CreateLogicDatabase
&Alias=test_logic_db
&DatabaseIds=[1860****]
&Tid=3***
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateLogicDatabaseResponse>
<LogicDbId>1***</LogicDbId>
<RequestId>EFF67767-7D49-5833-8B83-F87C9CBDE33A</RequestId>
<Success>true</Success>
</CreateLogicDatabaseResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"LogicDbId" : "1***",
"RequestId" : "EFF67767-7D49-5833-8B83-F87C9CBDE33A",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.