Skip to content

Commit 2d22804

Browse files
authored
DOC-5651 RS: Added REST API example to create DB page (#2141)
1 parent 165c277 commit 2d22804

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

content/operate/rs/databases/create.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ title: Create a Redis Enterprise Software database
1111
toc: 'true'
1212
weight: 10
1313
---
14-
Redis Enterprise Software lets you create databases and distribute them across a cluster of nodes.
14+
Redis Enterprise Software lets you create databases and distribute them across a cluster of nodes using the [Cluster Manager UI](#cluster-manager-ui-method) or the [REST API](#rest-api-method).
1515

16-
To create a new database:
16+
## Cluster Manager UI method
17+
18+
To create a new database using the Cluster Manager UI:
1719

1820
1. Sign in to the Cluster Manager UI at `https://<hostname>:8443`
1921

2022
1. Use one of the following methods to create a new database:
2123

2224
- [Quick database](#quick-database)
2325

24-
- [Create database](#create-database) with additional configuration
26+
- [Create database with additional configuration](#create-db-ui)
2527

2628
1. If you did not specify a port number for the database, you can find the port number in the **Endpoint** field in the **Databases > Configuration > General** section.
2729

@@ -33,7 +35,7 @@ For databases with Active-Active replication for geo-distributed locations,
3335
see [Create an Active-Active database]({{< relref "/operate/rs/databases/active-active/create.md" >}}). To create and manage Active-Active databases, use the legacy UI.
3436
{{< /note >}}
3537

36-
## Quick database
38+
### Quick database
3739

3840
To quickly create a database and skip additional configuration options during initial creation:
3941

@@ -57,7 +59,7 @@ To quickly create a database and skip additional configuration options during in
5759

5860
1. Select **Create**.
5961

60-
## Create database
62+
### Create database with additional configuration {#create-db-ui}
6163

6264
To create a new database and configure additional settings:
6365

@@ -99,6 +101,22 @@ For Active-Active databases, see [Create an Active-Active geo-replicated databas
99101

100102
1. Select **Create**.
101103

104+
## REST API method
105+
106+
To [create a database]({{<relref "/operate/rs/references/rest-api/requests/bdbs#post-bdbs-v1">}}) using a REST API request:
107+
108+
```sh
109+
POST https://<host>:<port>/v1/bdbs
110+
{
111+
"name": "test-database",
112+
"type": "redis",
113+
"memory_size": 1073741824,
114+
// Additional fields
115+
}
116+
```
117+
118+
For additional database configuration fields, see the [BDB object]({{<relref "/operate/rs/references/rest-api/objects/bdb">}}) reference.
119+
102120
## Continue learning with Redis University
103121

104122
{{< university-links >}}

0 commit comments

Comments
 (0)