Modifies the information about a logical database.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes EditLogicDatabase

The operation that you want to perform. Set the value to EditLogicDatabase.

Alias String Yes test_logic_db
  • The alias of the logical database. If you want to change the alias, specify a new alias.
  • If you do not need to change the alias of the logical database, call the GetLogicDatabase or GetDBTopology operation to query the alias of the logical database.
LogicDbId Long Yes 1***

The ID of the logical database. You can call the ListLogicDatabases operation to query the ID of the logical database.

DatabaseIds Array of Long Yes 1860****
  • The IDs of the physical databases that compose the logical database. If you want to change the physical databases, you can call the ListDatabases or SearchDatabase operation to query the IDs of the new physical databases that you want to specify.
  • If you do not want to change the physical databases, you can call the GetDBTopology operation to query the IDs of the physical databases that compose the logical database.
Tid Long No 134325

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 Data Management (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 the 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:

  • true: The request is successful.
  • false: The request fails.
ErrorMessage String UnknownError

The error message.

ErrorCode String UnknownError

The error code.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=EditLogicDatabase
&Alias=test_logic_db
&LogicDbId=1***
&DatabaseIds=[1860****]
&Tid=1***
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<EditLogicDatabaseResponse>
    <RequestId>C51420E3-144A-4A94-B473-8662FCF4AD10</RequestId>
    <Success>true</Success>
</EditLogicDatabaseResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "C51420E3-144A-4A94-B473-8662FCF4AD10",
  "Success" : true
}

Error codes

For a list of error codes, visit the API Error Center.