Skip to content

Commit f9c5d0c

Browse files
author
Josh Sager
committed
Adds object and endpoints for GET and PUT /managed/linode_settings
1 parent 8e60dc8 commit f9c5d0c

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

src/data/endpoints/managed.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,50 @@ endpoints:
310310
curl -H "Content-Type: application/json" \
311311
-H "Authorization: Bearer $TOKEN" \
312312
https://$api_root/$version/managed/credentials/$credential_id/revoke
313+
/managed/linode_settings:
314+
group: Linode Settings
315+
type: resource
316+
authenticated: true
317+
description: >
318+
Manage your Linodes' SSH settings.
319+
methods:
320+
GET:
321+
response: ManagedLinodeSetting
322+
description: >
323+
Returns your Linodes' SSH settings.
324+
examples:
325+
curl: |
326+
curl -H "Authorization: Bearer $TOKEN" \
327+
https://$api_root/$version/managed/linode_settings
328+
/managed/linode_settings/$id:
329+
group: Linode Settings
330+
type: resource
331+
authenticated: true
332+
description: >
333+
Manage your Linodes' SSH settings.
334+
methods:
335+
GET:
336+
response: ManagedLinodeSetting
337+
description: >
338+
Returns this Linode's SSH settings.
339+
examples:
340+
curl: |
341+
curl -H "Authorization: Bearer $TOKEN" \
342+
https://$api_root/$version/managed/linode_settings/$linode_settings_id
343+
PUT:
344+
response: ManagedLinodeSetting
345+
description: >
346+
Update this Linode's SSH settings.
347+
examples:
348+
curl: |
349+
curl -H "Content-Type: application/json" \
350+
-H "Authorization: Bearer $TOKEN" \
351+
-X PUT -d '{
352+
"ssh": {
353+
"user": "root",
354+
"port": 8080,
355+
"ip": "any",
356+
"access": true
357+
}
358+
}' \
359+
https://$api_root/$version/managed/linode_settings/$linode_settings_id
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# vim: set et ts=2 sw=2 tw=80 :
2+
name: ManagedLinodeSetting
3+
prefix: managed/linode_settings
4+
description: >
5+
Managed Linode Setting objects describe SSH information for your managed Linodes.
6+
schema:
7+
id:
8+
type: Integer
9+
value: 123
10+
description: The ID of the Linode's settings.
11+
label:
12+
type: String
13+
editable: false
14+
value: LinodeSettingsLabel
15+
description: >
16+
Unique label of your Linode.
17+
group:
18+
type: String
19+
editable: false
20+
value: ManagedLinodeGroup
21+
description: >
22+
This Linode's display group.
23+
ssh:
24+
type: Object
25+
description: >
26+
The SSH settings for your Linode.
27+
user:
28+
type: String
29+
editable: true
30+
value: root
31+
description: >
32+
The SSH username used to log into your Linode.
33+
ip:
34+
type: String
35+
editable: true
36+
value: 204.23.61.122
37+
description: >
38+
Either "any" or an IP address associated with this Linode. Both IPv4 and IPv6 are supported.
39+
access:
40+
type: Boolean
41+
editable: true
42+
value: true
43+
description: >
44+
Whether or not SSH is enabled on the Linode.
45+
port:
46+
type: Integer
47+
editable: true
48+
value: 22
49+
description: >
50+
The SSH port used to access the Linode.
51+

0 commit comments

Comments
 (0)