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/audit-system-logs.md
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,9 @@ To view the log, sign in to the [Redis Cloud console](https://cloud.redis.io/) a
16
16
17
17
To learn more, see [System logs]({{< relref "/operate/rc/logs-reports/system-logs" >}}).
18
18
19
+
## Get system logs via REST API
19
20
20
-
### System log REST API
21
-
22
-
The REST API operation for querying the system service log is `GET /logs`.
23
-
24
-
For example, the following request returns the latest 100 system log entries, in descending order:
25
-
26
-
```shell
27
-
GET "https://[host]/v1/logs?limit=100&offset=0"
28
-
```
21
+
The REST API operation for querying the system service log is [`GET /logs`]({{< relref "/operate/rc/api/api-reference#tag/Account/operation/getAccountSystemLogs" >}}).
29
22
30
23
The `/logs` API operation accepts the following parameters:
Copy file name to clipboardExpand all lines: content/operate/rc/api/examples/back-up-and-import-data.md
+8-23Lines changed: 8 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -21,22 +21,19 @@ This parameter enables periodic and on-demand backup operations for the specifie
21
21
The number of database backups that can run simultaneously on a cluster is limited to 4 by default.
22
22
{{</note>}}
23
23
24
-
The API operation for on-demand backups is `POST /subscriptions/{subscriptionId}/databases/{databaseId}/backup`.
24
+
For Redis Cloud Pro databases, back up a database with [`POST /subscriptions/{subscriptionId}/databases/{databaseId}/backup`]({{< relref "/operate/rc/api/api-reference#tag/Databases-Pro/operation/backupDatabase" >}}). For Redis Cloud Essentials databases, use [`POST /fixed/subscriptions/{subscriptionId}/databases/{databaseId}/backup`]({{< relref "/operate/rc/api/api-reference#tag/Databases-Essentials/operation/backupDatabase_1" >}}).
25
25
On-demand database backup is an [asynchronous operation]({{< relref "/operate/rc/api/get-started/process-lifecycle" >}}).
26
26
27
-
```shell
28
-
POST "https://[host]/v1/subscriptions/<subscriptionId>/databases/<databaseId>/backup"
29
-
```
27
+
The backup database API does not require a body. Instead, the `periodicBackupPath` must be set to a valid path with available storage capacity to store the backup files for the specific database. You can set an `adhocBackupPath` in the body to specify a different backup location for this backup.
30
28
31
-
The backup database API does not require a body.
32
-
Instead, the `periodicBackupPath` must be set to a valid path with available storage capacity to store the backup files for the specific database.
29
+
See [Set up backup storage locations]({{< relref "/operate/rc/databases/back-up-data#set-up-backup-storage-locations" >}}) to learn how to configure your backup storage locations.
33
30
34
-
## Import a database
31
+
## Import data to a database
35
32
36
33
You can import data into an existing database from multiple storage sources, including AWS S3, Redis, and FTP.
37
34
Database import is an [asynchronous operation]({{< relref "/operate/rc/api/get-started/process-lifecycle" >}}).
38
35
39
-
The API operation for performing on-demand backup is `POST /v1/subscriptions/{subscriptionId}/databases/{databaseId}/import`.
36
+
Use [`POST /v1/subscriptions/{subscriptionId}/databases/{databaseId}/import`]({{< relref "/operate/rc/api/api-reference#tag/Databases-Pro/operation/importDatabase" >}}) to import data to an existing Redis Cloud Pro database. For Redis Cloud Essentials databases, use [`POST /fixed/subscriptions/{subscriptionId}/databases/{databaseId}/backup`]({{< relref "/operate/rc/api/api-reference#tag/Databases-Essentials/operation/importDatabase_1" >}})
40
37
41
38
The requirements for data import are:
42
39
@@ -51,27 +48,15 @@ The duration of the import process depends on the amount of data imported and th
51
48
Data imported into an existing database overwrites any existing data.
52
49
{{< /warning >}}
53
50
54
-
To import the data, run:
55
-
56
-
```shell
57
-
POST "https://[host]/v1/subscriptions/<subscriptionId>/databases/{databaseId}/import" \
0 commit comments