@@ -130,15 +130,23 @@ the ``customers.jsonl`` file:
130130
131131 $ tt tdg2 export localhost:3301 customers:customers.jsonl
132132
133- If the ``customers `` type has four fields (``id ``, ``firstname ``, ``lastname ``, and ``age ``), the file with exported data might look like this:
133+ If token authentication is enabled in TDG2, pass the application token in the ``-token `` option:
134+
135+ .. code-block :: console
136+
137+ $ tt tdg2 export localhost:3301 customers:customers.jsonl \
138+ --token=2fc136cf-8cae-4655-a431-7c318967263d
139+
140+ If the ``customers `` type has four fields (``id ``, ``firstname ``, ``lastname ``, and ``age ``),
141+ the file with exported data might look like this:
134142
135143.. code-block :: json
136144
137145 {"age" :30 ,"first_name" :" Samantha" ,"id" :1 ,"second_name" :" Carter" }
138146 {"age" :41 ,"first_name" :" Fay" ,"id" :2 ,"second_name" :" Rivers" }
139147 {"age" :74 ,"first_name" :" Milo" ,"id" :4 ,"second_name" :" Walters" }
140148
141- If an object contains a ``null `` value in a field, this field skipped:
149+ ``null `` field values are skipped:
142150
143151.. code-block :: json
144152
@@ -168,11 +176,55 @@ Set the ``tt tdg2 export`` batch size less or equal to 1000:
168176
169177 $ tt tdg2 export localhost:3301 customers:customers.jsonl --batch-size=1000
170178
179+ .. _tt-export-auth :
180+
181+ Authentication
182+ --------------
183+
184+ When connecting to the cluster with enabled authentication, specify access credentials
185+ in the ``--username `` and ``--password `` command options:
186+
187+ .. code-block :: console
188+
189+ $ tt crud export localhost:3301 customers:customers.csv \
190+ --username myuser -password p4$$w0rD
191+
192+ .. _tt-export-ssl :
193+
194+ Encrypted connection
195+ --------------------
196+
197+ To connect to instances that use :ref: `SSL encryption <configuration_connections_ssl >`,
198+ provide the SSL certificate and SSL key files in the ``--sslcertfile `` and ``--sslkeyfile `` options.
199+ If necessary, add other SSL parameters in the ``--ssl* `` options.
200+
201+ .. code-block :: console
202+
203+ $ tt crud export localhost:3301 customers:customers.csv \
204+ --username myuser -password p4$$w0rD \
205+ --auth pap-sha256 --sslcertfile certs/server.crt \
206+ --sslkeyfile certs/server.key
207+
208+ For connections that use SSL but don't require additional parameters, add the ``--use-ssl ``
209+ option:
210+
211+ .. code-block :: console
212+
213+ $ tt crud export localhost:3301 customers:customers.csv \
214+ --username myuser -password p4$$w0rD \
215+ --use--ssl
216+
171217 .. _tt-export-options :
172218
173219Options
174220-------
175221
222+ .. option :: --auth STRING
223+
224+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
225+
226+ Authentication type: ``chap-sha1 `` or ``pap-sha256 ``.
227+
176228.. option :: --batch-queue-size INT
177229
178230 The maximum number of tuple batches in a queue between a fetch and write threads (the default is ``32 ``).
@@ -226,6 +278,60 @@ Options
226278
227279 Export data using a :ref: `read view <read_views >`.
228280
281+ .. option :: --sslcafile STRING
282+
283+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
284+
285+ The path to a trusted certificate authorities (CA) file for encrypted connections.
286+
287+ See also :ref: `tt-export-ssl `.
288+
289+ .. option :: --sslcertfile STRING
290+
291+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
292+
293+ The path to an SSL certificate file for encrypted connections.
294+
295+ See also :ref: `tt-export-ssl `.
296+
297+ .. option :: --sslciphersfile STRING
298+
299+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
300+
301+ The list of SSL cipher suites used for encrypted connections, separated by colons (``: ``).
302+
303+ See also :ref: `tt-export-ssl `.
304+
305+ .. option :: --sslkeyfile STRING
306+
307+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
308+
309+ The path to a private SSL key file for encrypted connections.
310+
311+ See also :ref: `tt-export-ssl `.
312+
313+ .. option :: --sslpassword STRING
314+
315+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
316+
317+ The password for the SSL key file for encrypted connections.
318+
319+ See also :ref: `tt-export-ssl `.
320+
321+ .. option :: --sslpasswordfile STRING
322+
323+ **Applicable to: ** ``tt crud export ``, ``tt tdg2 export ``
324+
325+ A file with list of passwords to the SSL key file for encrypted connections.
326+
327+ See also :ref: `tt-export-auth `.
328+
329+ .. option :: --token STRING
330+
331+ **Applicable to: ** ``tt tdg2 export ``
332+
333+ An application token for connecting to TDG2.
334+
229335.. option :: --username STRING
230336
231337 A username for connecting to the instance.
0 commit comments