Skip to content

Commit 6447235

Browse files
committed
Remove update database and consolidate
1 parent e589e29 commit 6447235

File tree

3 files changed

+16
-102
lines changed

3 files changed

+16
-102
lines changed

content/operate/rc/api/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ You can use the API to:
3333

3434
1. [Manage subscriptions]({{< relref "/operate/rc/api/examples/manage-subscriptions.md" >}})
3535
1. Database examples
36-
- [Create database]({{< relref "/operate/rc/api/examples/create-database" >}})
37-
- [Update database]({{< relref "/operate/rc/api/examples/update-database.md" >}})
36+
- [Create and manage databases]({{< relref "/operate/rc/api/examples/create-database" >}})
3837
- [Back up and import data]({{< relref "/operate/rc/api/examples/back-up-and-import-data.md" >}})
3938
1. [Manage cloud accounts]({{< relref "/operate/rc/api/examples/manage-cloud-accounts.md" >}})
4039
1. [Estimate costs]({{< relref "/operate/rc/api/examples/dryrun-cost-estimates.md" >}})

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ categories:
55
- docs
66
- operate
77
- 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.
109
linkTitle: Create and manage databases
1110
weight: 20
1211
---
@@ -15,6 +14,8 @@ You can use the Redis Cloud REST API to create and manage databases.
1514

1615
## Redis Cloud Essentials
1716

17+
To create a Redis Cloud Essentials database, use
18+
1819
## Redis Cloud Pro
1920

2021
### Create a Redis Cloud Pro database
@@ -23,23 +24,23 @@ To create a Redis Cloud Pro database, use `POST /subscriptions/{subscriptionId}/
2324

2425
This call creates a database in the specified subscription. Use `GET /subscriptions` to get a list of subscriptions and their IDs.
2526

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-
3027
```shell
3128
POST "https://[host]/v1/subscriptions/{subscriptionId}/databases"
3229
{
33-
"name": "Database-example-basic",
34-
"memoryLimitInGb": 10,
35-
"password": "P@ssw0rd"
30+
"name": "Basic-database-example",
31+
"datasetSizeInGb": 1
3632
}
3733
```
3834

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
4043

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}`.
4445

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" >}}).

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

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)