curl --request POST \
--url https://api.thundercompute.com:8443/v1/instances/{id}/add_key \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"success": true,
"uuid": "<string>",
"key": "<string>",
"message": "<string>"
}Add an SSH key to an existing instance. If public_key is provided in the request body, it will be added to authorized_keys. If no public_key is provided, a new key pair will be generated and the private key returned.
curl --request POST \
--url https://api.thundercompute.com:8443/v1/instances/{id}/add_key \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"success": true,
"uuid": "<string>",
"key": "<string>",
"message": "<string>"
}Bearer token authentication. Provide your API token prefixed with "Bearer ", e.g. "Bearer your-api-token".
Instance ID
Optional: provide an existing public key to add
The body is of type object.
Was this page helpful?