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 clusters-in-vpc.

You must add this public SSH key to the bastion host by appending ~/.ssh/authorized_keys for an ec2-user. For more information, see clusters-in-vpc.

Parameters

None

Request API Syntax

curl -X GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v1.2/accounts/ssh_key"

Sample API Request

Here is a sample request to see the account-level public SSH key of a QDS account in the https://gcp.qubole.com environment.

curl -X GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v1.2/accounts/ssh_key"