@@ -752,6 +752,9 @@ paths:
752
752
source : >
753
753
curl -H "Authorization: Bearer $TOKEN" \
754
754
https://api.linode.com/v4/account/notifications
755
+ - lang : CLI
756
+ source : >
757
+ linode-cli account notifications-list
755
758
/account/oauth-clients :
756
759
x-linode-cli-command : account
757
760
get :
@@ -1316,6 +1319,9 @@ paths:
1316
1319
"payer_id": "ABCDEFGHIJKLM"
1317
1320
}' \
1318
1321
https://api.linode.com/v4/account/payments/paypal
1322
+ - lang : CLI
1323
+ source : >
1324
+ linode-cli account paypal-execute
1319
1325
/account/settings :
1320
1326
x-linode-cli-command : account
1321
1327
get :
@@ -1614,10 +1620,13 @@ paths:
1614
1620
curl -H "Content-Type: application/json" \
1615
1621
-H "Authorization: Bearer $TOKEN" \
1616
1622
-X PUT -d '{
1617
-
1623
+ "username ": example_user
1618
1624
"restricted": true
1619
1625
}' \
1620
1626
https://api.linode.com/v4/account/users/example_user
1627
+ - lang : CLI
1628
+ source : >
1629
+ linode-cli users update example_user --username example_user --restricted true
1621
1630
delete :
1622
1631
x-linode-grant : unrestricted only
1623
1632
tags :
@@ -2865,6 +2874,9 @@ paths:
2865
2874
source : >
2866
2875
curl -H "Authorization: Bearer $TOKEN" \
2867
2876
https://api.linode.com/v4/linode/instances/123/backups
2877
+ - lang : CLI
2878
+ source : >
2879
+ linode-cli linodes backups-list 123
2868
2880
post :
2869
2881
x-linode-grant : read_write
2870
2882
summary : Create Snapshot
@@ -3556,6 +3568,9 @@ paths:
3556
3568
curl -H "Authorization: Bearer $TOKEN" \
3557
3569
-X DELETE \
3558
3570
https://api.linode.com/v4/linode/instances/123/configs/23456
3571
+ - lang : CLI
3572
+ source : >
3573
+ linode-cli linodes config-delete 123 23456
3559
3574
/linode/instances/{linodeId}/disks :
3560
3575
parameters :
3561
3576
- name : linodeId
@@ -3921,6 +3936,9 @@ paths:
3921
3936
"size": 2048
3922
3937
}' \
3923
3938
https://api.linode.com/v4/linode/instances/123/disks/25674/resize
3939
+ - lang : CLI
3940
+ source : >
3941
+ linode-cli linodes disk-resize 123 25674 --size 2048
3924
3942
/linode/instances/{linodeId}/ips :
3925
3943
parameters :
3926
3944
- name : linodeId
@@ -4847,6 +4865,9 @@ paths:
4847
4865
"script": "#!/bin/bash"
4848
4866
}' \
4849
4867
https://api.linode.com/v4/linode/stackscripts
4868
+ - lang : CLI
4869
+ source : >
4870
+ linode-cli stackscripts create --label a-stackscript --description "This StackScript install and configures MySQL" --images "linode/debian9" --images "linode/debian8" --is_public true --rev_note "Set up MySQL" --script '#!/bin/bash'
4850
4871
/linode/stackscripts/{stackscriptId} :
4851
4872
parameters :
4852
4873
- name : stackscriptId
@@ -4933,6 +4954,9 @@ paths:
4933
4954
"script": "#!/bin/bash"
4934
4955
}' \
4935
4956
https://api.linode.com/v4/linode/stackscripts/1337
4957
+ - lang : CLI
4958
+ source : >
4959
+ linode-cli stackscripts update 1337 --label a-stackscript --description "This StackScript install and configures MySQL" --images "linode/debian9" --images "linode/debian8" --is_public true --rev_note "Set up MySQL" --script '#!/bin/bash'
4936
4960
delete :
4937
4961
x-linode-grant : read_write
4938
4962
tags :
@@ -5972,7 +5996,7 @@ paths:
5972
5996
"ssh": {
5973
5997
"access": true,
5974
5998
"user": "linode",
5975
- "ip": "12.34.56.789 ",
5999
+ "ip": "12.34.56.78 ",
5976
6000
"port": 22
5977
6001
}
5978
6002
}' \
@@ -6072,6 +6096,9 @@ paths:
6072
6096
]
6073
6097
}' \
6074
6098
https://api.linode.com/v4/managed/services
6099
+ - lang : CLI
6100
+ source : >
6101
+ linode-cli managed service-create --service_type url --label prod-1 --address "https://example.org" --timeout 30 --body "it worked" --consultation_group on-call --notes "The service name is my-cool-application" --credentials 9991
6075
6102
/managed/services/{serviceId} :
6076
6103
parameters :
6077
6104
- name : serviceId
@@ -6158,6 +6185,9 @@ paths:
6158
6185
]
6159
6186
}' \
6160
6187
https://api.linode.com/v4/managed/services/9994
6188
+ - lang : CLI
6189
+ source : >
6190
+ linode-cli managed service-update 9994 --service_type url --label prod-1 --address "https://example.org" --timeout 30 --body "it worked" --consultation_group on-call --notes "The service name is my-cool-application" --credentials 9991
6161
6191
delete :
6162
6192
x-linode-grant : unrestricted only
6163
6193
tags :
@@ -6315,6 +6345,9 @@ paths:
6315
6345
source : >
6316
6346
curl -H "Authorization: Bearer $TOKEN" \
6317
6347
https://api.linode.com/v4/networking/ips
6348
+ - lang : CLI
6349
+ source : >
6350
+ linode-cli networking ips-list
6318
6351
post :
6319
6352
x-linode-grant : read_write
6320
6353
tags :
@@ -6381,6 +6414,9 @@ paths:
6381
6414
"linode_id": 123
6382
6415
}' \
6383
6416
https://api.linode.com/v4/networking/ips
6417
+ - lang : CLI
6418
+ source : >
6419
+ linode-cli networking ip-add --type ipv4 --public true --linode_id 123
6384
6420
/networking/ips/{address} :
6385
6421
parameters :
6386
6422
- name : address
@@ -6418,6 +6454,9 @@ paths:
6418
6454
source : >
6419
6455
curl -H "Authorization: Bearer $TOKEN" \
6420
6456
https://api.linode.com/v4/networking/ips/97.107.143.141
6457
+ - lang : CLI
6458
+ source : >
6459
+ linode-cli networking ip-view 97.107.143.141
6421
6460
put :
6422
6461
x-linode-grant : read_write
6423
6462
tags :
@@ -6459,6 +6498,9 @@ paths:
6459
6498
"rdns": "test.example.org"
6460
6499
}' \
6461
6500
https://api.linode.com/v4/networking/ips/97.107.143.141
6501
+ - lang : CLI
6502
+ source : >
6503
+ linode-cli networking ip-update 97.107.143.141 --rdns "test.example.org"
6462
6504
/networking/ipv4/assign :
6463
6505
description : >
6464
6506
Allows redistribution of v4 IP Addresses within a region. Any number
@@ -6516,7 +6558,7 @@ paths:
6516
6558
Ths IP Address for this assignment. Must be a v4
6517
6559
address you can access in the region specified. May
6518
6560
be a public or private address.
6519
- example : 12.34.56.789
6561
+ example : 12.34.56.78
6520
6562
linode_id :
6521
6563
type : integer
6522
6564
description : >
@@ -6595,7 +6637,7 @@ paths:
6595
6637
items :
6596
6638
type : string
6597
6639
format : ip
6598
- example : 12.34.56.789
6640
+ example : 12.34.56.78
6599
6641
description : >
6600
6642
A list of IPs that will be shared with this Linode. When
6601
6643
this is finished, the given Linode will be able to bring up
@@ -6620,10 +6662,13 @@ paths:
6620
6662
-X POST -d '{
6621
6663
"linode_id": 123,
6622
6664
"ips": [
6623
- "12.34.56.789 "
6665
+ "12.34.56.78 "
6624
6666
]
6625
6667
}' \
6626
6668
https://api.linode.com/v4/networking/ipv4/share
6669
+ - lang : CLI
6670
+ source : >
6671
+ linode-cli networking ip-share --linode_id 123 --ips 12.34.56.78
6627
6672
/networking/ipv6/pools :
6628
6673
x-linode-cli-command : networking
6629
6674
get :
@@ -6666,6 +6711,9 @@ paths:
6666
6711
source : >
6667
6712
curl -H "Authorization: Bearer $TOKEN" \
6668
6713
https://api.linode.com/v4/networking/ipv6/pools
6714
+ - lang : CLI
6715
+ source : >
6716
+ linode-cli networking v6-pools
6669
6717
/networking/ipv6/ranges :
6670
6718
x-linode-cli-command : networking
6671
6719
get :
@@ -6708,6 +6756,9 @@ paths:
6708
6756
source : >
6709
6757
curl -H "Authorization: Bearer $TOKEN" \
6710
6758
https://api.linode.com/v4/networking/ipv6/ranges
6759
+ - lang : CLI
6760
+ source : >
6761
+ linode-cli networking v6-ranges
6711
6762
/nodebalancers :
6712
6763
x-linode-cli-command : nodebalancers
6713
6764
get :
@@ -7791,6 +7842,9 @@ paths:
7791
7842
"tfa_code": "213456"
7792
7843
}' \
7793
7844
https://api.linode.com/v4/profile/tfa-enable-confirm
7845
+ - lang : CLI
7846
+ source : >
7847
+ linode-cli profile tfa-confirm --tfa_code 213456
7794
7848
/profile/tokens :
7795
7849
x-linode-cli-command : profile
7796
7850
description : >
@@ -8182,6 +8236,9 @@ paths:
8182
8236
"summary": "Having trouble resetting root password on my Linode"
8183
8237
}' \
8184
8238
https://api.linode.com/v4/support/tickets
8239
+ - lang : CLI
8240
+ source : >
8241
+ linode-cli tickets create --description "I'm having trouble setting the root password on my Linode. I tried following the instructions but something is not working and I'm not sure what I'm doing wrong. Can you please help me figure out how I can reset it?" --linode_id 123 --summary "Having trouble resetting root password on my Linode"
8185
8242
/support/tickets/{ticketId} :
8186
8243
parameters :
8187
8244
- name : ticketId
@@ -8491,6 +8548,9 @@ paths:
8491
8548
"linode_id": 12346
8492
8549
}' \
8493
8550
https://api.linode.com/v4/volumes
8551
+ - lang : CLI
8552
+ source : >
8553
+ linode-cli volumes create --label my-volume --size 20 --region us-east --linode_id 12346
8494
8554
/volumes/{volumeId} :
8495
8555
parameters :
8496
8556
- name : volumeId
@@ -8632,6 +8692,9 @@ paths:
8632
8692
-H "Authorization: Bearer $TOKEN" \
8633
8693
-X DELETE \
8634
8694
https://api.linode.com/v4/volumes/12345
8695
+ - lang : CLI
8696
+ source : >
8697
+ linode-cli volumes delete 12345
8635
8698
/volumes/{volumeId}/attach :
8636
8699
parameters :
8637
8700
- name : volumeId
@@ -8692,6 +8755,9 @@ paths:
8692
8755
"linode_id": 12346
8693
8756
}' \
8694
8757
https://api.linode.com/v4/volumes/12345/attach
8758
+ - lang : CLI
8759
+ source : >
8760
+ linode-cli volumes attach 12345 --linode_id 12346
8695
8761
/volumes/{volumeId}/clone :
8696
8762
parameters :
8697
8763
- name : volumeId
@@ -11663,7 +11729,7 @@ components:
11663
11729
description : >
11664
11730
The IP Linode special forces should use to access this Linode
11665
11731
when responding to an issue.
11666
- example : 12.34.56.789
11732
+ example : 12.34.56.78
11667
11733
port :
11668
11734
type : integer
11669
11735
minimum : 1
0 commit comments