Creates 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 db001

The name of the database.

Description String Yes this is db description

The description of the database.

LocationUri String Yes oss://data/xxx

The Object Storage Service (OSS) address of the database.

Parameters Map No

The attributes of the database.

String No key001=value001

The values of database attributes.

Response parameters

Parameter Type Example Description
Code String ALREADY_EXISTS

The error code returned.

Data Long 6666

The ID of the database that is created.

Message String Database db001 already exists

The error message returned.

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

The ID of the request.

Success Boolean false

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?LocationUri=oss://data/xxx
&Description=this is db description
&Parameters={"key":"key001=value001"}
&Name=db001
&<Common request parameters>

Sample success responses

XML format

<Message>Database db001 already exists</Message>
<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>
<Data>6666</Data>
<Code>ALREADY_EXISTS</Code>
<Success>false</Success>

JSON format

{
    "Message": "Database db001 already exists",
    "RequestId": "9BEAC206-0795-4DE3-B1FD-964BEF432B23",
    "Data": "6666",
    "Code": "ALREADY_EXISTS",
    "Success": "false"
}

Error codes

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