Rename SSH Key
Last updated
Last updated
Updates the name of a specified SSH key. Include the ID of the SSH key in the endpoint path and the new name in the body of the request. To retrieve your SSH key IDs, see the .
PUT
{API_URL}/ssh-keys/{id}
id
Required
int
The unique identifier of the SSH key to be renamed
key_name
Required
string
The new name of the SSH key
dict
Returns the data
object, containing details of the updated SSH Key.
Each updated SSH key specifies the following properties:
id
: The ID of the SSH key.
key_name
: The new name of the SSH key.
key_data
: The SSH key value.
create_time
: The UNIX timestamp of when the SSH Key was created.
string
Indicates the result of the request to rename a SSH key. success
signifies success, while failed
indicates an error.
string
A description of the status of the request.