1
1
---
2
2
Title : redis-di add-context
3
3
linkTitle : redis-di add-context
4
- description : Adds a new context
4
+ description : Adds a new context
5
5
weight : 10
6
6
alwaysopen : false
7
7
categories : ["redis-di"]
8
8
aliases :
9
9
---
10
10
11
+ Adds a new context
12
+
11
13
## Usage
12
14
13
15
```
14
16
Usage: redis-di add-context [OPTIONS] CONTEXT_NAME
15
17
```
16
18
17
19
## Options
18
- * ` context_name ` (REQUIRED):
19
- * Type: STRING
20
- * Default: ` none `
21
- * Usage: ` context-name `
22
-
23
-
24
-
25
-
26
- * ` log_level ` :
27
- * Type: Choice([ 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'] )
28
- * Default: ` info `
29
- * Usage: `--log-level
30
- -l`
31
-
32
-
33
20
21
+ - ` context_name ` (REQUIRED):
34
22
35
- * ` cluster_host ` (REQUIRED):
36
- * Type: STRING
37
- * Default: ` none `
38
- * Usage: ` --cluster-host `
23
+ - Type: STRING
24
+ - Default: ` none `
25
+ - Usage: ` context-name `
39
26
40
- Host/IP of Redis Enterprise Cluster (service name in case of k8s)
27
+ - ` log_level ` :
41
28
29
+ - Type: Choice([ 'TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] )
30
+ - Default: ` info `
31
+ - Usage: `--log-level
32
+ -l`
42
33
43
- * ` cluster_api_port ` (REQUIRED):
44
- * Type: <IntRange 1<=x<=65535>
45
- * Default: ` 9443 `
46
- * Usage: ` --cluster-api-port `
47
-
48
- API Port of Redis Enterprise Cluster
49
-
34
+ - ` rdi_namespace ` :
50
35
51
- * ` cluster_user ` (REQUIRED):
52
- * Type: STRING
53
- * Default: ` none `
54
- * Usage: ` --cluster-user `
36
+ - Type: STRING
37
+ - Default: ` rdi `
38
+ - Usage: ` --rdi-namespace `
55
39
56
- Redis Enterprise Cluster username with either DB Member, Cluster Member or Cluster Admin roles
40
+ RDI Kubernetes namespace
57
41
42
+ - ` rdi_host ` (REQUIRED):
58
43
59
- * ` rdi_host ` (REQUIRED):
60
- * Type: STRING
61
- * Default: ` none `
62
- * Usage: ` --rdi-host `
44
+ - Type: STRING
45
+ - Default: ` none `
46
+ - Usage: ` --rdi-host `
63
47
64
48
Host/IP of RDI Database
65
49
50
+ - ` rdi_port ` (REQUIRED):
66
51
67
- * ` rdi_port ` (REQUIRED):
68
- * Type: <IntRange 1<=x<=65535>
69
- * Default: ` none `
70
- * Usage: ` --rdi-port `
52
+ - Type: <IntRange 1<=x<=65535>
53
+ - Default: ` none `
54
+ - Usage: ` --rdi-port `
71
55
72
56
Port of RDI Database
73
57
58
+ - ` rdi_user ` :
74
59
75
- * ` rdi_user ` :
76
- * Type: STRING
77
- * Default: ` none `
78
- * Usage: ` --rdi-user `
60
+ - Type: STRING
61
+ - Default: ` none `
62
+ - Usage: ` --rdi-user `
79
63
80
64
RDI Database Username
81
65
66
+ - ` rdi_key ` :
82
67
83
- * ` rdi_key ` :
84
- * Type: STRING
85
- * Default: ` none `
86
- * Usage: ` --rdi-key `
68
+ - Type: STRING
69
+ - Default: ` none `
70
+ - Usage: ` --rdi-key `
87
71
88
72
Private key file to authenticate with
89
73
74
+ - ` rdi_cert ` :
90
75
91
- * ` rdi_cert ` :
92
- * Type: STRING
93
- * Default: ` none `
94
- * Usage: ` --rdi-cert `
76
+ - Type: STRING
77
+ - Default: ` none `
78
+ - Usage: ` --rdi-cert `
95
79
96
80
Client certificate file to authenticate with
97
81
82
+ - ` rdi_cacert ` :
98
83
99
- * ` rdi_cacert ` :
100
- * Type: STRING
101
- * Default: ` none `
102
- * Usage: ` --rdi-cacert `
84
+ - Type: STRING
85
+ - Default: ` none `
86
+ - Usage: ` --rdi-cacert `
103
87
104
88
CA certificate file to verify with
105
89
90
+ - ` help ` :
106
91
107
- * ` help ` :
108
- * Type: BOOL
109
- * Default: ` false `
110
- * Usage: ` --help `
92
+ - Type: BOOL
93
+ - Default: ` false `
94
+ - Usage: ` --help `
111
95
112
96
Show this message and exit.
113
97
114
-
115
-
116
98
## CLI help
117
99
118
100
```
@@ -121,16 +103,9 @@ Usage: redis-di add-context [OPTIONS] CONTEXT_NAME
121
103
Adds a new context
122
104
123
105
Options:
124
- -l, --log-level [DEBUG|INFO|WARN |ERROR|CRITICAL]
106
+ -l, --log-level [TRACE| DEBUG|INFO|WARNING |ERROR|CRITICAL]
125
107
[default: INFO]
126
- --cluster-host TEXT Host/IP of Redis Enterprise Cluster (service
127
- name in case of k8s) [required]
128
- --cluster-api-port INTEGER RANGE
129
- API Port of Redis Enterprise Cluster
130
- [default: 9443; 1<=x<=65535; required]
131
- --cluster-user TEXT Redis Enterprise Cluster username with
132
- either DB Member, Cluster Member or Cluster
133
- Admin roles [required]
108
+ --rdi-namespace TEXT RDI Kubernetes namespace [default: rdi]
134
109
--rdi-host TEXT Host/IP of RDI Database [required]
135
110
--rdi-port INTEGER RANGE Port of RDI Database [1<=x<=65535;
136
111
required]
0 commit comments