View the Account-level Public SSH Key

GET /api/v1.2/accounts/ssh_key

Use this API to view the account-level public SSH key set in a QDS account. Qubole expects this key to be present on the bastion node if the Unique SSH key feature is enabled otherwise QDS cannot connect to the bastion host.

The public SSH key is used while configuring the bastion host in a Virtual Private Cloud (VPC). Qubole communicates with the cluster that is on a private subnet in the VPC through the bastion host. 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 used to SSH into the bastion host. For more information, see Configuring a Cluster in a VPC with Public and Private Subnets (AWS).

You must add this public SSH key to the bastion host by appending ~/.ssh/authorized_keys for an ec2-user. For more information, see Configuring a Cluster in a VPC with Public and Private Subnets (AWS).

Parameters

None

Request API Syntax

curl -X GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://<QDS environment>/api/v1.2/accounts/ssh_key"

Note

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 GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://us.qubole.com/api/v1.2/accounts/ssh_key"