Skip to content

Commit 9a0f928

Browse files
committed
add toc and cli
1 parent 9b5876a commit 9a0f928

13 files changed

+218
-241
lines changed

TOC-tidb-cloud-essential.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
- [TLS Connections to TiDB Cloud](/tidb-cloud/secure-connections-to-serverless-clusters.md)
267267
- Audit Management
268268
- [Console Audit Logging](/tidb-cloud/tidb-cloud-console-auditing.md)
269+
- [Database Audit Logging](/tidb-cloud/serverless-database-audit-logging.md)
269270
- Billing
270271
- [Invoices](/tidb-cloud/tidb-cloud-billing.md#invoices)
271272
- [Billing Details](/tidb-cloud/tidb-cloud-billing.md#billing-details)
@@ -605,6 +606,18 @@
605606
- [delete](/tidb-cloud/ticloud-serverless-authorized-network-delete.md)
606607
- [list](/tidb-cloud/ticloud-serverless-authorized-network-list.md)
607608
- [update](/tidb-cloud/ticloud-serverless-authorized-network-update.md)
609+
- audit-log
610+
- config
611+
- [update](/tidb-cloud/ticloud-serverless-audit-log-config-update.md)
612+
- [describe](/tidb-cloud/ticloud-serverless-audit-log-config-describe.md)
613+
- filter-rule
614+
- [create](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-create.md)
615+
- [delete](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-delete.md)
616+
- [describe](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-describe.md)
617+
- [list](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-list.md)
618+
- [update](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-update.md)
619+
- [template](/tidb-cloud/ticloud-serverless-audit-log-filter-rule-template.md)
620+
- [download](/tidb-cloud/ticloud-serverless-audit-log-download.md)
608621
- [ai](/tidb-cloud/ticloud-ai.md)
609622
- [completion](/tidb-cloud/ticloud-completion.md)
610623
- config
File renamed without changes.

tidb-cloud/ticloud-auditlog-config.md

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

tidb-cloud/ticloud-auditlog-download.md

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,45 @@
11
---
2-
title: ticloud serverless audit-log describe
3-
summary: The reference of `ticloud serverless audit-log describe`.
2+
title: ticloud serverless audit-log config describe
3+
summary: The reference of `ticloud serverless audit-log config describe`.
44
---
55

6-
# ticloud serverless audit-log describe
6+
# ticloud serverless audit-log config describe
77

8-
Describe the database audit logging configuration for a {{{ .starter }}} or {{{ .essential }}} cluster.
8+
Describe the database audit logging configuration for a TiDB Cloud Essential cluster.
99

1010
```shell
11-
ticloud serverless audit-log describe [flags]
12-
```
13-
14-
Or use the following alias command:
15-
16-
```shell
17-
ticloud serverless audit-log get [flags]
11+
ticloud serverless audit-log config describe [flags]
1812
```
1913

2014
## Examples
2115

2216
Get the database audit logging configuration in interactive mode:
2317

2418
```shell
25-
ticloud serverless audit-log describe
19+
ticloud serverless audit-log config describe
2620
```
2721

2822
Get the database audit logging configuration in non-interactive mode:
2923

3024
```shell
31-
ticloud serverless audit-log describe -c <cluster-id>
25+
ticloud serverless audit-log config describe -c <cluster-id>
3226
```
3327

3428
## Flags
3529

36-
In non-interactive mode, you need to manually enter the required flags. In interactive mode, you can just follow CLI prompts to fill them in.
37-
3830
| Flag | Description | Required | Note |
3931
|-------------------------|----------------------------|----------|------------------------------------------------------|
4032
| -c, --cluster-id string | The cluster ID. | Yes | Only works in non-interactive mode. |
41-
| -h, --help | Shows help information for this command. | No | Works in both non-interactive and interactive modes. |
33+
| -h, --help | Shows help information for this command. | No | Works in both interactive and non-interactive modes. |
4234

4335
## Inherited flags
4436

4537
| Flag | Description | Required | Note |
4638
|----------------------|------------------------------------------------------------------------------------------------------|----------|------------------------------------------------------------------------------------------------------------------|
47-
| --no-color | Disables color in output. | No | Only works in non-interactive mode. In interactive mode, disabling color might not work with some UI components. |
48-
| -D, --debug | Enables debug mode. | No | Works in both non-interactive and interactive modes. |
39+
| -D, --debug | Enable debug mode. | No | Works in both interactive and non-interactive modes. |
40+
| --no-color | Disable color output. | No | Only works in non-interactive mode. |
41+
| -P, --profile string | Profile to use from your configuration file. | No | Works in both interactive and non-interactive modes. |
4942

5043
## Feedback
5144

52-
If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an [issue](https://github.com/tidbcloud/tidbcloud-cli/issues/new/choose). Also, we welcome any contributions.
45+
If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an [issue](https://github.com/tidbcloud/tidbcloud-cli/issues/new/choose). Also, we welcome any contributions.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: ticloud serverless audit-log config update
3+
summary: The reference of `ticloud serverless audit-log config update`.
4+
---
5+
6+
# ticloud serverless audit-log config update
7+
8+
Update the database audit logging configuration for a TiDB Cloud Essential cluster.
9+
10+
```shell
11+
ticloud serverless audit-log config update [flags]
12+
```
13+
14+
## Examples
15+
16+
Configure database audit logging in interactive mode:
17+
18+
```shell
19+
ticloud serverless audit-log config update
20+
```
21+
22+
Unredact the database audit log in non-interactive mode:
23+
24+
```shell
25+
ticloud serverless audit-log config update -c <cluster-id> --unredacted
26+
```
27+
28+
Enable database audit logging with S3 Cloud Storage in non-interactive mode:
29+
30+
```shell
31+
ticloud serverless audit-log config update -c <cluster-id> --enabled --cloud-storage S3 --s3.uri <s3-uri> --s3.access-key-id <s3-access-key-id> --s3.secret-access-key <s3-secret-access-key>
32+
```
33+
34+
Configure database audit logging rotation strategy in non-interactive mode:
35+
36+
```shell
37+
ticloud serverless audit-log config update -c <cluster-id> --rotation-interval-minutes <rotation-interval-minutes> --rotation-size-mib <rotation-size-mib>
38+
```
39+
40+
Disable database audit logging in non-interactive mode:
41+
42+
```shell
43+
ticloud serverless audit-log config update -c <cluster-id> --enabled=false
44+
```
45+
46+
## Flags
47+
48+
| Flag | Description | Required | Note |
49+
|------|-------------|----------|------|
50+
| --azblob.sas-token string | The SAS token of Azure Blob. | No | Only works in non-interactive mode. |
51+
| --azblob.uri string | The Azure Blob URI in `azure://<account>.blob.core.windows.net/<container>/<path>` format. | No | Only works in non-interactive mode. |
52+
| --cloud-storage string | The cloud storage. One of ["TIDB_CLOUD", "S3", "GCS", "AZURE_BLOB", "OSS"]. | No | Only works in non-interactive mode. |
53+
| -c, --cluster-id string | The ID of the cluster to be updated. | Yes | Only works in non-interactive mode. |
54+
| --enabled | Enable or disable database audit logging. | No | Only works in non-interactive mode. |
55+
| --gcs.service-account-key string | The base64 encoded service account key of GCS. | No | Only works in non-interactive mode. |
56+
| --gcs.uri string | The GCS URI in `gs://<bucket>/<path>` format. | No | Only works in non-interactive mode. |
57+
| --oss.access-key-id string | The access key ID of the OSS. | No | Only works in non-interactive mode. |
58+
| --oss.access-key-secret string | The access key secret of the OSS. | No | Only works in non-interactive mode. |
59+
| --oss.uri string | The OSS URI in `oss://<bucket>/<path>` format. | No | Only works in non-interactive mode. |
60+
| --rotation-interval-minutes int32 | The rotation interval in minutes, range [10, 1440]. | No | Only works in non-interactive mode. |
61+
| --rotation-size-mib int32 | The rotation size in MiB, range [1, 1024]. | No | Only works in non-interactive mode. |
62+
| --s3.access-key-id string | The access key ID of the S3. You only need to set one of the s3.role-arn and [s3.access-key-id, s3.secret-access-key]. | No | Only works in non-interactive mode. |
63+
| --s3.role-arn string | The role arn of the S3. You only need to set one of the s3.role-arn and [s3.access-key-id, s3.secret-access-key]. | No | Only works in non-interactive mode. |
64+
| --s3.secret-access-key string | The secret access key of the S3. You only need to set one of the s3.role-arn and [s3.access-key-id, s3.secret-access-key]. | No | Only works in non-interactive mode. |
65+
| --s3.uri string | The S3 URI in `s3://<bucket>/<path>` format. | No | Only works in non-interactive mode. |
66+
| --unredacted | Unredact or redact the database audit log. | No | Only works in non-interactive mode. |
67+
| -h, --help | Shows help information for this command. | No | Works in both interactive and non-interactive modes. |
68+
69+
## Inherited flags
70+
71+
| Flag | Description | Required | Note |
72+
|------|-------------|----------|------|
73+
| -D, --debug | Enable debug mode. | No | Works in both interactive and non-interactive modes. |
74+
| --no-color | Disable color output. | No | Only works in non-interactive mode. |
75+
| -P, --profile string | Profile to use from your configuration file. | No | Works in both interactive and non-interactive modes. |
76+
77+
## Feedback
78+
79+
If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an [issue](https://github.com/tidbcloud/tidbcloud-cli/issues/new/choose). Also, we welcome any

0 commit comments

Comments
 (0)