@@ -17605,7 +17605,7 @@ paths:
1760517605 content:
1760617606 application/json:
1760717607 schema:
17608- $ref: '#/components/schemas/SSHKeyRequest '
17608+ $ref: '#/components/schemas/SSHKey '
1760917609 responses:
1761017610 '200':
1761117611 description: SSH Key associated successfully.
@@ -17621,14 +17621,14 @@ paths:
1762117621 curl -H "Content-Type: application/json" \
1762217622 -H "Authorization: Bearer $TOKEN" \
1762317623 -X POST -d '{
17624- "label": "My SSH Key"
17624+ "label": "My SSH Key",
1762517625 "ssh_key": "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
1762617626 }' \
1762717627 https://api.linode.com/v4/profile/sshkeys
1762817628 - lang: CLI
1762917629 source: >
1763017630 linode-cli sshkeys create \
17631- --label "My SSH Key"
17631+ --label "My SSH Key" \
1763217632 --ssh_key "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
1763317633 /profile/sshkeys/{sshKeyId}:
1763417634 x-linode-cli-command: sshkeys
@@ -17673,8 +17673,10 @@ paths:
1767317673 tags:
1767417674 - Profile
1767517675 summary: SSH Key Update
17676- description: >
17676+ description: |
1767717677 Updates an SSH Key that you have permission to `read_write`.
17678+
17679+ Only SSH key labels can be updated.
1767817680 operationId: updateSSHKey
1767917681 x-linode-cli-action: update
1768017682 security:
@@ -17688,7 +17690,10 @@ paths:
1768817690 content:
1768917691 application/json:
1769017692 schema:
17691- $ref: '#/components/schemas/SSHKey'
17693+ type: object
17694+ properties:
17695+ label:
17696+ $ref: '#/components/schemas/SSHKey/properties/label'
1769217697 responses:
1769317698 '200':
1769417699 description: SSH Key updated successfully.
@@ -17706,10 +17711,10 @@ paths:
1770617711 -X PUT -d '{
1770717712 "label": "my laptop"
1770817713 }' \
17709- https://api.linode.com/v4/profile/sshkey /42
17714+ https://api.linode.com/v4/profile/sshkeys /42
1771017715 - lang: CLI
1771117716 source: >
17712- linode-cli sshkey update 42 \
17717+ linode-cli sshkeys update 42 \
1771317718 --label "my laptop"
1771417719 delete:
1771517720 tags:
@@ -17743,13 +17748,12 @@ paths:
1774317748 x-code-samples:
1774417749 - lang: Shell
1774517750 source: >
17746- curl -H "Content-Type: application/json" \
17747- -H "Authoriztion: Bearer $TOKEN" \
17751+ curl -H "Authoriztion: Bearer $TOKEN" \
1774817752 -X DELETE \
1774917753 https://api.linode.com/v4/profile/sshkeys/42
1775017754 - lang: CLI
1775117755 source: >
17752- linode-cli sshkey delete 42
17756+ linode-cli sshkeys delete 42
1775317757 /profile/phone-number:
1775417758 x-linode-cli-command: phone
1775517759 delete:
@@ -17780,8 +17784,7 @@ paths:
1778017784 x-code-samples:
1778117785 - lang: Shell
1778217786 source: >
17783- curl -H "Content-Type: application/json" \
17784- -H "Authorization: Bearer $TOKEN" \
17787+ curl -H "Authorization: Bearer $TOKEN" \
1778517788 -X DELETE \
1778617789 https://api.linode.com/v4/profile/phone-number
1778717790 - lang: CLI
@@ -26765,36 +26768,23 @@ components:
2676526768 ssh_key:
2676626769 type: string
2676726770 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"
2677226781 created:
2677326782 type: string
2677426783 format: date-time
2677526784 description: >
2677626785 The date this key was added.
2677726786 example: "2018-01-01T00:01:01"
2677826787 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.
2679826788 Vlans:
2679926789 type: object
2680026790 description: >
0 commit comments