Skip to content

Commit e589e29

Browse files
committed
stash commit
1 parent 19baab7 commit e589e29

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

content/operate/rc/api/examples/create-database.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,39 @@ categories:
77
- rc
88
description: This article describes how to create and manage a database using `cURL`
99
commands.
10-
linkTitle: Create databases
10+
linkTitle: Create and manage databases
1111
weight: 20
1212
---
1313

14-
You can use the Redis Cloud REST API to create databases.
14+
You can use the Redis Cloud REST API to create and manage databases.
1515

16-
These examples use the [`cURL` utility]({{< relref "/operate/rc/api/get-started/use-rest-api#use-the-curl-http-client" >}}). You can use any REST client to work with the Redis Cloud REST API. The examples in this article refer to Redis Cloud Pro databases.
16+
## Redis Cloud Essentials
1717

18-
## Create a database
18+
## Redis Cloud Pro
1919

20-
To create a database, use `POST /subscriptions/{subscription-id}/databases`
20+
### Create a Redis Cloud Pro database
2121

22-
The database is created in an existing or a newly created subscription.
22+
To create a Redis Cloud Pro database, use `POST /subscriptions/{subscriptionId}/databases`.
2323

24-
When a subscription is created, it is created with at least one database.
25-
26-
You can add databases to the subscription; you can also update or delete existing databases.
24+
This call creates a database in the specified subscription. Use `GET /subscriptions` to get a list of subscriptions and their IDs.
2725

2826
Creating a database is an [asynchronous operation]({{< relref "/operate/rc/api/get-started/process-lifecycle" >}}).
2927

3028
The following API call creates a database.
3129

3230
```shell
33-
POST "https://[host]/v1/subscriptions/$SUBSCRIPTION_ID/databases"
31+
POST "https://[host]/v1/subscriptions/{subscriptionId}/databases"
3432
{
3533
"name": "Database-example-basic",
3634
"memoryLimitInGb": 10,
3735
"password": "P@ssw0rd"
3836
}
3937
```
4038

41-
The JSON body contains only the most basic, required parameters in order to create a database:
39+
The example JSON body contains only the most basic, required parameters in order to create a database:
4240

4341
- Database name - A unique name per subscription that can contain only alphanumeric characters and hyphens
4442
- Maximum database size in GB
4543
- Database password
4644

47-
### Additional database parameters
48-
4945
There are many additional parameters and settings that can be defined on database creation. Review the database parameters and options in the [Full API documentation]({{< relref "/operate/rc/api/api-reference#tag/Databases-Pro/operation/createDatabase" >}}).

0 commit comments

Comments
 (0)