Refresh the Account-level SSH Key Pair¶
A new version is available for this API. The current version will be deprecated soon. See Refresh the Account-level SSH Key Pair using API version 2.
Use this API to create a new SSH key pair and use the public key to configure it on the bastion host of the VPC.
You must configure the public key of the SSH key pair on the bastion host of a VPC. Qubole communicates with the cluster that is configured on a private subnet of a VPC through the bastion host.
If the Unique SSH Key feature is not enabled, then the default Qubole public key is used to SSH into the bastion host. For more information, see Configuring a Cluster in a VPC with Public and Private Subnets (AWS).
Whenever the public SSH key is rotated, ensure to replace the public SSH key on the bastion host with the rotated public SSH key. For more information on adding the unique public SSH key, see Configuring a Cluster in a VPC with Public and Private Subnets (AWS).
The rotation policy for each cluster instance that is every time a cluster starts, a new SSH key pair is generated so Qubole automatically handles the rotation of keys every time the cluster starts. This happens only if the Unique SSH Key feature is enabled on the QDS account. If it is not enabled, then the default Qubole public key is added on the cluster nodes.
The previously generated SSH key pair gets overridden by the newly generated SSH key pair.
Request API Syntax¶
curl -X PUT -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \ "https://<QDS environment>/api/v1.2/accounts/refresh_ssh_key"
The above syntax uses the QDS environment as the placeholder. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.
Sample API Request¶
Here is a sample request to see the account-level public SSH key of a QDS account in the https://us.qubole.com environment.
curl -X PUT -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \ "https://us.qubole.com/api/v1.2/accounts/refresh_ssh_key"