API Docs

Get to know list_keys

Overview: Lists the available SSH keys you are able to use.

list_keys expects no parameters.

Example:

$api->call('cloud.list_keys');

Output:

Array
(
    [1] => Array
        (
            [id] => 1 //the unique ID of the key
            [keyname] => First SSH Key //the name of the key
            [pubkey] => {SSH public key here} //the SSH key
            [fingerprint] => {SSH key fingerprint} //the SSH key fingerprint
            [date_added] => 1429038624 //the date the SSH key was added (unix epoch)
        )

    [3] => Array
        (
            [id] => 3
            [keyname] => Second SSH Key
            [pubkey] => {SSH public key here}
            [fingerprint] => {SSH key fingerprint}
            [date_added] => 1429039624
        )
)