Skip to content

Commit 27cce9e

Browse files
nmelehanGitHub Enterprise
authored andcommitted
ARB-1390: Add GET /managed/credentials/sshkey endpoint (#333)
* Add GET /managed/credentials/sshkey endpoint * Update example SSH key * Update adding SSH key link
1 parent e80d667 commit 27cce9e

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

openapi.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6637,6 +6637,52 @@ paths:
66376637
- lang: CLI
66386638
source: >
66396639
linode-cli managed credential-revoke 9991
6640+
/managed/credentials/sshkey:
6641+
x-linode-cli-command: managed
6642+
get:
6643+
x-linode-grant: unrestricted only
6644+
tags:
6645+
- Managed
6646+
summary: View Managed SSH Key
6647+
description: >
6648+
Returns the unique SSH public key assigned to your Linode account's
6649+
Managed service. If you [add this public key](https://linode.com/docs/platform/linode-managed/#adding-the-public-key) to a Linode on your account,
6650+
Linode special forces will be able to log in to the Linode with this key
6651+
when attempting to resolve issues.
6652+
operationId: viewManagedSSHKey
6653+
x-linode-cli-action: credential-sshkey-view
6654+
security:
6655+
- personalAccessToken: []
6656+
- oauth:
6657+
- account:read_only
6658+
responses:
6659+
'200':
6660+
description: The requested Managed SSH public key.
6661+
content:
6662+
application/json:
6663+
schema:
6664+
type: object
6665+
description: >
6666+
A unique SSH public key that allows Linode's special forces
6667+
to access a Managed server to respond to Issues.
6668+
properties:
6669+
ssh_key:
6670+
type: string
6671+
description: >
6672+
The unique SSH public key assigned to your Linode account's Managed service.
6673+
example: ssh-rsa AAAAB...oD2ZQ== managedservices@linode
6674+
readOnly: true
6675+
x-linode-cli-display: 1
6676+
default:
6677+
$ref: '#/components/responses/ErrorResponse'
6678+
x-code-samples:
6679+
- lang: Shell
6680+
source: >
6681+
curl -H "Authorization: Bearer $TOKEN" \
6682+
https://api.linode.com/v4/managed/credentials/sshkey
6683+
- lang: CLI
6684+
source: >
6685+
linode-cli managed credential-sshkey-view
66406686
/managed/issues:
66416687
x-linode-cli-command: managed
66426688
get:

0 commit comments

Comments
 (0)