File tree Expand file tree Collapse file tree 2 files changed +98
-0
lines changed Expand file tree Collapse file tree 2 files changed +98
-0
lines changed Original file line number Diff line number Diff line change @@ -332,3 +332,50 @@ endpoints:
332
332
curl -H "Content-Type: application/json" \
333
333
-H "Authorization: Bearer $TOKEN" \
334
334
https://$api_root/$version/managed/credentials/$credential_id/revoke
335
+ /managed/linode_settings :
336
+ group : Linode Settings
337
+ type : resource
338
+ authenticated : true
339
+ description : >
340
+ Manage your Linodes' SSH settings.
341
+ methods :
342
+ GET :
343
+ response : ManagedLinodeSetting
344
+ description : >
345
+ Returns your Linodes' SSH settings.
346
+ examples :
347
+ curl : |
348
+ curl -H "Authorization: Bearer $TOKEN" \
349
+ https://$api_root/$version/managed/linode_settings
350
+ /managed/linode_settings/$id :
351
+ group : Linode Settings
352
+ type : resource
353
+ authenticated : true
354
+ description : >
355
+ Manage your Linodes' SSH settings.
356
+ methods :
357
+ GET :
358
+ response : ManagedLinodeSetting
359
+ description : >
360
+ Returns this Linode's SSH settings.
361
+ examples :
362
+ curl : |
363
+ curl -H "Authorization: Bearer $TOKEN" \
364
+ https://$api_root/$version/managed/linode_settings/$linode_settings_id
365
+ PUT :
366
+ response : ManagedLinodeSetting
367
+ description : >
368
+ Update this Linode's SSH settings.
369
+ examples :
370
+ curl : |
371
+ curl -H "Content-Type: application/json" \
372
+ -H "Authorization: Bearer $TOKEN" \
373
+ -X PUT -d '{
374
+ "ssh": {
375
+ "user": "root",
376
+ "port": 8080,
377
+ "ip": "any",
378
+ "access": true
379
+ }
380
+ }' \
381
+ https://$api_root/$version/managed/linode_settings/$linode_settings_id
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments