SSH Key API

​

list_ssh_keys

1
vessl.list_ssh_keys()
Copied!
List ssh public keys.
Example
1
vessl.list_ssh_keys()
Copied!
​

create_ssh_key

1
vessl.create_ssh_key(
2
key_path: str, key_name: str, ssh_public_key_value: str
3
)
Copied!
Create a SSH public key.
Args
  • key_path (str) : SSH public key path.
  • key_name (str) : SSH public key name,
  • ssh_public_key_value (str) : SSH public key value.
Example
1
vessl.create_ssh_key(
2
key_path="/Users/johndoe/.ssh/id_ed25519.pub",
3
key_name="[email protected]",
4
ssh_public_key_value="ssh-public-key-value",
5
)
Copied!
​

delete_ssh_key

1
vessl.delete_ssh_key(
2
key_id: int
3
)
Copied!
Delete the ssh public key.
Args
  • key_id (int) : Key ID.
Example
1
vessl.delete_ssh_key(
2
key_id=123456,
3
)
Copied!