| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/sql/export/__pycache__/ |
Upload File : |
�
��� � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ej ej ej
ej j ej j ej j � � G d� d ej � � � � � � � � ZdS )
z�Export TDE certificate from a Cloud SQL instance.
Export data from a Cloud SQL instance to a Google Cloud Storage bucket as
a BAK backup file.
� N)�api_util)�base)�export_util)�flags)�
console_ioc �R � e Zd ZdZd ej d� � iZed� � � Zd� Z dS )�Tdez�Export a TDE certificate from a Cloud SQL instance.
Exports a TDE certificate from a Cloud SQL instance to a Google Cloud Storage
bucket. This is only supported for SQL Server.
�EXAMPLESa To export a TDE certificate with the name `foo` and private key password `my-pvk-password` in the Cloud SQL
instance `my-instance` to certificate path `my-bucket/my-cert.cert` and private key path `my-bucket/my-key.pvk`,
run:
$ {command} my-instance --certificate=foo --cert-path=gs://my-bucket/my-cert.cert --pvk-path=gs://my-bucket/my-key.pvk --pvk-password=my-pvk-password
To export a TDE certificate with the name `foo` and private key password `my-pvk-password` in the Cloud SQL
instance `my-instance` and prompting for the private key password,
run:
$ {command} my-instance --certificate=foo --cert-path=gs://my-bucket/my-cert.cert --pvk-path=gs://my-bucket/my-key.pvk --prompt-for-pvk-password
c � � t j � | � � t j | � � t j | � � dS )z�Args is called by calliope to gather arguments for this command.
Args:
parser: An argparse parser that you can use to add arguments that go on
the command line after this command. Positional arguments are allowed.
N)r �
ASYNC_FLAG�AddToParserr �AddInstanceArgument�AddTdeFlags)�parsers �lib/surface/sql/export/tde.py�ArgszTde.Args<