@@ -17605,7 +17605,7 @@ paths:
17605
17605
content:
17606
17606
application/json:
17607
17607
schema:
17608
- $ref: '#/components/schemas/SSHKeyRequest '
17608
+ $ref: '#/components/schemas/SSHKey '
17609
17609
responses:
17610
17610
'200':
17611
17611
description: SSH Key associated successfully.
@@ -17621,14 +17621,14 @@ paths:
17621
17621
curl -H "Content-Type: application/json" \
17622
17622
-H "Authorization: Bearer $TOKEN" \
17623
17623
-X POST -d '{
17624
- "label": "My SSH Key"
17624
+ "label": "My SSH Key",
17625
17625
"ssh_key": "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
17626
17626
}' \
17627
17627
https://api.linode.com/v4/profile/sshkeys
17628
17628
- lang: CLI
17629
17629
source: >
17630
17630
linode-cli sshkeys create \
17631
- --label "My SSH Key"
17631
+ --label "My SSH Key" \
17632
17632
--ssh_key "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
17633
17633
/profile/sshkeys/{sshKeyId}:
17634
17634
x-linode-cli-command: sshkeys
@@ -17673,8 +17673,10 @@ paths:
17673
17673
tags:
17674
17674
- Profile
17675
17675
summary: SSH Key Update
17676
- description: >
17676
+ description: |
17677
17677
Updates an SSH Key that you have permission to `read_write`.
17678
+
17679
+ Only SSH key labels can be updated.
17678
17680
operationId: updateSSHKey
17679
17681
x-linode-cli-action: update
17680
17682
security:
@@ -17688,7 +17690,10 @@ paths:
17688
17690
content:
17689
17691
application/json:
17690
17692
schema:
17691
- $ref: '#/components/schemas/SSHKey'
17693
+ type: object
17694
+ properties:
17695
+ label:
17696
+ $ref: '#/components/schemas/SSHKey/properties/label'
17692
17697
responses:
17693
17698
'200':
17694
17699
description: SSH Key updated successfully.
@@ -17706,10 +17711,10 @@ paths:
17706
17711
-X PUT -d '{
17707
17712
"label": "my laptop"
17708
17713
}' \
17709
- https://api.linode.com/v4/profile/sshkey /42
17714
+ https://api.linode.com/v4/profile/sshkeys /42
17710
17715
- lang: CLI
17711
17716
source: >
17712
- linode-cli sshkey update 42 \
17717
+ linode-cli sshkeys update 42 \
17713
17718
--label "my laptop"
17714
17719
delete:
17715
17720
tags:
@@ -17743,13 +17748,12 @@ paths:
17743
17748
x-code-samples:
17744
17749
- lang: Shell
17745
17750
source: >
17746
- curl -H "Content-Type: application/json" \
17747
- -H "Authoriztion: Bearer $TOKEN" \
17751
+ curl -H "Authoriztion: Bearer $TOKEN" \
17748
17752
-X DELETE \
17749
17753
https://api.linode.com/v4/profile/sshkeys/42
17750
17754
- lang: CLI
17751
17755
source: >
17752
- linode-cli sshkey delete 42
17756
+ linode-cli sshkeys delete 42
17753
17757
/profile/phone-number:
17754
17758
x-linode-cli-command: phone
17755
17759
delete:
@@ -17780,8 +17784,7 @@ paths:
17780
17784
x-code-samples:
17781
17785
- lang: Shell
17782
17786
source: >
17783
- curl -H "Content-Type: application/json" \
17784
- -H "Authorization: Bearer $TOKEN" \
17787
+ curl -H "Authorization: Bearer $TOKEN" \
17785
17788
-X DELETE \
17786
17789
https://api.linode.com/v4/profile/phone-number
17787
17790
- lang: CLI
@@ -26765,36 +26768,23 @@ components:
26765
26768
ssh_key:
26766
26769
type: string
26767
26770
format: ssh-key
26768
- description: >
26769
- The public SSH Key, which is used to authenticate to the root user
26770
- of the Linodes you deploy.
26771
- readOnly: true
26771
+ description: |
26772
+ The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
26773
+
26774
+ Accepted formats:
26775
+ * ssh-dss
26776
+ * ssh-rsa
26777
+ * ecdsa-sha2-nistp
26778
+ * ssh-ed25519
26779
+ * sk-ecdsa-sha2-nistp256 (Akamai-specific)
26780
+ example: "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
26772
26781
created:
26773
26782
type: string
26774
26783
format: date-time
26775
26784
description: >
26776
26785
The date this key was added.
26777
26786
example: "2018-01-01T00:01:01"
26778
26787
readOnly: true
26779
- SSHKeyRequest:
26780
- type: object
26781
- description: >
26782
- An object consisting of a user identified name as the `label` and the
26783
- generated key as the `ssh-key`.
26784
- properties:
26785
- label:
26786
- type: string
26787
- minLength: 1
26788
- maxLength: 64
26789
- description: >
26790
- A label for the key.
26791
- example: "My SSH Key"
26792
- ssh_key:
26793
- type: string
26794
- format: ssh-key
26795
- description: >
26796
- The public SSH Key, which is used to authenticate to the root user
26797
- of the Linodes you deploy.
26798
26788
Vlans:
26799
26789
type: object
26800
26790
description: >
0 commit comments