Modifies the information of a 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
Name String Yes newDB001

The new name of the database.

Description String Yes This is database desc

The description of the database.

LocationUri String Yes oss://xxxx

The storage path of the database.

OldDbName String Yes oldDB001

The original name of the database.

Parameters Map No

The parameters of the database.

String No key001=value=002

The values of database parameters.

Response parameters

Parameter Type Example Description
Code String NO_SUCH_OBJECT

The error code returned.

Data String null

The data returned.

Message String No such database: bd001

The error message returned.

RequestId String 9BEAC206-0795-4DE3-B1FD-964BEF432B23

The ID of the request.

Success Boolean true

Indicates whether the information of the database is modified.

Examples

Sample requests

http(s)://[Endpoint]/?LocationUri=oss://xxxx
&Description=This is database desc
&Parameters={"key":"key001=value=002"}
&Name=newDB001
&OldDbName=oldDB001
&<Common request parameters>

Sample success responses

XML format

<Message>No such database: bd001</Message>
<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>
<Data>null</Data>
<Code>NO_SUCH_OBJECT</Code>
<Success>true</Success>

JSON format

{
    "Message": "No such database: bd001",
    "RequestId": "9BEAC206-0795-4DE3-B1FD-964BEF432B23",
    "Data": "null",
    "Code": "NO_SUCH_OBJECT",
    "Success": "true"
}

Error codes

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