File size: 850 Bytes
76d9c4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: SSH-key
version: EN
---

### list_ssh_keys
```python
vessl.list_ssh_keys()
```
List ssh public keys.

**Example**
```python
vessl.list_ssh_keys()
```

----

## create_ssh_key
```python
vessl.create_ssh_key(
   key_path: str, key_name: str, ssh_public_key_value: str
)
```
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**
```python
vessl.create_ssh_key(
    key_path="/Users/johndoe/.ssh/id_ed25519.pub",
    key_name="john@abcd.com",
    ssh_public_key_value="ssh-public-key-value",
)
```

----

## delete_ssh_key
```python
vessl.delete_ssh_key(
   key_id: int
)
```
Delete the ssh public key.

**Args**
* `key_id` (int) : Key ID.

**Example**
```python
vessl.delete_ssh_key(
    key_id=123456,
)
```