You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/operate/rc/api/examples/create-database.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ categories:
5
5
- docs
6
6
- operate
7
7
- rc
8
-
description: This article describes how to create and manage a database using `cURL`
9
-
commands.
8
+
description: This article describes how to create and manage a database using the Redis Cloud API.
10
9
linkTitle: Create and manage databases
11
10
weight: 20
12
11
---
@@ -15,6 +14,8 @@ You can use the Redis Cloud REST API to create and manage databases.
15
14
16
15
## Redis Cloud Essentials
17
16
17
+
To create a Redis Cloud Essentials database, use
18
+
18
19
## Redis Cloud Pro
19
20
20
21
### Create a Redis Cloud Pro database
@@ -23,23 +24,23 @@ To create a Redis Cloud Pro database, use `POST /subscriptions/{subscriptionId}/
23
24
24
25
This call creates a database in the specified subscription. Use `GET /subscriptions` to get a list of subscriptions and their IDs.
25
26
26
-
Creating a database is an [asynchronous operation]({{< relref "/operate/rc/api/get-started/process-lifecycle" >}}).
27
-
28
-
The following API call creates a database.
29
-
30
27
```shell
31
28
POST "https://[host]/v1/subscriptions/{subscriptionId}/databases"
32
29
{
33
-
"name": "Database-example-basic",
34
-
"memoryLimitInGb": 10,
35
-
"password": "P@ssw0rd"
30
+
"name": "Basic-database-example",
31
+
"datasetSizeInGb": 1
36
32
}
37
33
```
38
34
39
-
The example JSON body contains only the most basic, required parameters in order to create a database:
35
+
This example JSON body contains only the most basic, required parameters in order to create a database:
36
+
37
+
-`name`: The database name. A unique name per subscription that can contain only alphanumeric characters and hyphens
38
+
-`datasetSizeInGb`: Maximum dataset size in GB
39
+
40
+
There are many additional parameters and settings that can be defined on database creation. Review the database parameters and options in the [full API reference]({{< relref "/operate/rc/api/api-reference#tag/Databases-Pro/operation/createDatabase" >}}).
41
+
42
+
### Update a Redis Cloud Pro database
40
43
41
-
- Database name - A unique name per subscription that can contain only alphanumeric characters and hyphens
42
-
- Maximum database size in GB
43
-
- Database password
44
+
To update a Redis Cloud Pro database, use `PUT /subscriptions/{subscriptionId}/databases/{databaseId}`.
44
45
45
-
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" >}}).
46
+
The primary component of a database update request is the JSON request body that contains the details of the requested database changes. You can see the full set of changes you can make in the [full API reference]({{< relref "/operate/rc/api/api-reference#tag/Databases-Pro/operation/updateDatabase" >}}).
0 commit comments