@@ -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 :
@@ -1309,6 +1312,9 @@ paths:
1309
1312
"payer_id": "ABCDEFGHIJKLM"
1310
1313
}' \
1311
1314
https://api.linode.com/v4/account/payments/paypal
1315
+ - lang : CLI
1316
+ source : >
1317
+ linode-cli account paypal-execute
1312
1318
/account/settings :
1313
1319
x-linode-cli-command : account
1314
1320
get :
@@ -1607,10 +1613,13 @@ paths:
1607
1613
curl -H "Content-Type: application/json" \
1608
1614
-H "Authorization: Bearer $TOKEN" \
1609
1615
-X PUT -d '{
1610
-
1616
+ "username ": example_user
1611
1617
"restricted": true
1612
1618
}' \
1613
1619
https://api.linode.com/v4/account/users/example_user
1620
+ - lang : CLI
1621
+ source : >
1622
+ linode-cli users update example_user --username example_user --restricted true
1614
1623
delete :
1615
1624
x-linode-grant : unrestricted only
1616
1625
tags :
@@ -2858,6 +2867,9 @@ paths:
2858
2867
source : >
2859
2868
curl -H "Authorization: Bearer $TOKEN" \
2860
2869
https://api.linode.com/v4/linode/instances/123/backups
2870
+ - lang : CLI
2871
+ source : >
2872
+ linode-cli linodes backups-list 123
2861
2873
post :
2862
2874
x-linode-grant : read_write
2863
2875
summary : Create Snapshot
@@ -3547,6 +3559,9 @@ paths:
3547
3559
curl -H "Authorization: Bearer $TOKEN" \
3548
3560
-X DELETE \
3549
3561
https://api.linode.com/v4/linode/instances/123/configs/23456
3562
+ - lang : CLI
3563
+ source : >
3564
+ linode-cli linodes config-delete 123 23456
3550
3565
/linode/instances/{linodeId}/disks :
3551
3566
parameters :
3552
3567
- name : linodeId
@@ -3912,6 +3927,9 @@ paths:
3912
3927
"size": 2048
3913
3928
}' \
3914
3929
https://api.linode.com/v4/linode/instances/123/disks/25674/resize
3930
+ - lang : CLI
3931
+ source : >
3932
+ linode-cli linodes disk-resize 123 25674 --size 2048
3915
3933
/linode/instances/{linodeId}/ips :
3916
3934
parameters :
3917
3935
- name : linodeId
@@ -4838,6 +4856,9 @@ paths:
4838
4856
"script": "#!/bin/bash"
4839
4857
}' \
4840
4858
https://api.linode.com/v4/linode/stackscripts
4859
+ - lang : CLI
4860
+ source : >
4861
+ 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'
4841
4862
/linode/stackscripts/{stackscriptId} :
4842
4863
parameters :
4843
4864
- name : stackscriptId
@@ -4924,6 +4945,9 @@ paths:
4924
4945
"script": "#!/bin/bash"
4925
4946
}' \
4926
4947
https://api.linode.com/v4/linode/stackscripts/1337
4948
+ - lang : CLI
4949
+ source : >
4950
+ 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'
4927
4951
delete :
4928
4952
x-linode-grant : read_write
4929
4953
tags :
@@ -5963,7 +5987,7 @@ paths:
5963
5987
"ssh": {
5964
5988
"access": true,
5965
5989
"user": "linode",
5966
- "ip": "12.34.56.789 ",
5990
+ "ip": "12.34.56.78 ",
5967
5991
"port": 22
5968
5992
}
5969
5993
}' \
@@ -6063,6 +6087,9 @@ paths:
6063
6087
]
6064
6088
}' \
6065
6089
https://api.linode.com/v4/managed/services
6090
+ - lang : CLI
6091
+ source : >
6092
+ 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
6066
6093
/managed/services/{serviceId} :
6067
6094
parameters :
6068
6095
- name : serviceId
@@ -6149,6 +6176,9 @@ paths:
6149
6176
]
6150
6177
}' \
6151
6178
https://api.linode.com/v4/managed/services/9994
6179
+ - lang : CLI
6180
+ source : >
6181
+ 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
6152
6182
delete :
6153
6183
x-linode-grant : unrestricted only
6154
6184
tags :
@@ -6306,6 +6336,9 @@ paths:
6306
6336
source : >
6307
6337
curl -H "Authorization: Bearer $TOKEN" \
6308
6338
https://api.linode.com/v4/networking/ips
6339
+ - lang : CLI
6340
+ source : >
6341
+ linode-cli networking ips-list
6309
6342
post :
6310
6343
x-linode-grant : read_write
6311
6344
tags :
@@ -6372,6 +6405,9 @@ paths:
6372
6405
"linode_id": 123
6373
6406
}' \
6374
6407
https://api.linode.com/v4/networking/ips
6408
+ - lang : CLI
6409
+ source : >
6410
+ linode-cli networking ip-add --type ipv4 --public true --linode_id 123
6375
6411
/networking/ips/{address} :
6376
6412
parameters :
6377
6413
- name : address
@@ -6409,6 +6445,9 @@ paths:
6409
6445
source : >
6410
6446
curl -H "Authorization: Bearer $TOKEN" \
6411
6447
https://api.linode.com/v4/networking/ips/97.107.143.141
6448
+ - lang : CLI
6449
+ source : >
6450
+ linode-cli networking ip-view 97.107.143.141
6412
6451
put :
6413
6452
x-linode-grant : read_write
6414
6453
tags :
@@ -6450,6 +6489,9 @@ paths:
6450
6489
"rdns": "test.example.org"
6451
6490
}' \
6452
6491
https://api.linode.com/v4/networking/ips/97.107.143.141
6492
+ - lang : CLI
6493
+ source : >
6494
+ linode-cli networking ip-update 97.107.143.141 --rdns "test.example.org"
6453
6495
/networking/ipv4/assign :
6454
6496
description : >
6455
6497
Allows redistribution of v4 IP Addresses within a region. Any number
@@ -6507,7 +6549,7 @@ paths:
6507
6549
Ths IP Address for this assignment. Must be a v4
6508
6550
address you can access in the region specified. May
6509
6551
be a public or private address.
6510
- example : 12.34.56.789
6552
+ example : 12.34.56.78
6511
6553
linode_id :
6512
6554
type : integer
6513
6555
description : >
@@ -6586,7 +6628,7 @@ paths:
6586
6628
items :
6587
6629
type : string
6588
6630
format : ip
6589
- example : 12.34.56.789
6631
+ example : 12.34.56.78
6590
6632
description : >
6591
6633
A list of IPs that will be shared with this Linode. When
6592
6634
this is finished, the given Linode will be able to bring up
@@ -6611,10 +6653,13 @@ paths:
6611
6653
-X POST -d '{
6612
6654
"linode_id": 123,
6613
6655
"ips": [
6614
- "12.34.56.789 "
6656
+ "12.34.56.78 "
6615
6657
]
6616
6658
}' \
6617
6659
https://api.linode.com/v4/networking/ipv4/share
6660
+ - lang : CLI
6661
+ source : >
6662
+ linode-cli networking ip-share --linode_id 123 --ips 12.34.56.78
6618
6663
/networking/ipv6/pools :
6619
6664
x-linode-cli-command : networking
6620
6665
get :
@@ -6657,6 +6702,9 @@ paths:
6657
6702
source : >
6658
6703
curl -H "Authorization: Bearer $TOKEN" \
6659
6704
https://api.linode.com/v4/networking/ipv6/pools
6705
+ - lang : CLI
6706
+ source : >
6707
+ linode-cli networking v6-pools
6660
6708
/networking/ipv6/ranges :
6661
6709
x-linode-cli-command : networking
6662
6710
get :
@@ -6699,6 +6747,9 @@ paths:
6699
6747
source : >
6700
6748
curl -H "Authorization: Bearer $TOKEN" \
6701
6749
https://api.linode.com/v4/networking/ipv6/ranges
6750
+ - lang : CLI
6751
+ source : >
6752
+ linode-cli networking v6-ranges
6702
6753
/nodebalancers :
6703
6754
x-linode-cli-command : nodebalancers
6704
6755
get :
@@ -7782,6 +7833,9 @@ paths:
7782
7833
"tfa_code": "213456"
7783
7834
}' \
7784
7835
https://api.linode.com/v4/profile/tfa-enable-confirm
7836
+ - lang : CLI
7837
+ source : >
7838
+ linode-cli profile tfa-confirm --tfa_code 213456
7785
7839
/profile/tokens :
7786
7840
x-linode-cli-command : profile
7787
7841
description : >
@@ -8173,6 +8227,9 @@ paths:
8173
8227
"summary": "Having trouble resetting root password on my Linode"
8174
8228
}' \
8175
8229
https://api.linode.com/v4/support/tickets
8230
+ - lang : CLI
8231
+ source : >
8232
+ 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"
8176
8233
/support/tickets/{ticketId} :
8177
8234
parameters :
8178
8235
- name : ticketId
@@ -8482,6 +8539,9 @@ paths:
8482
8539
"linode_id": 12346
8483
8540
}' \
8484
8541
https://api.linode.com/v4/volumes
8542
+ - lang : CLI
8543
+ source : >
8544
+ linode-cli volumes create --label my-volume --size 20 --region us-east --linode_id 12346
8485
8545
/volumes/{volumeId} :
8486
8546
parameters :
8487
8547
- name : volumeId
@@ -8623,6 +8683,9 @@ paths:
8623
8683
-H "Authorization: Bearer $TOKEN" \
8624
8684
-X DELETE \
8625
8685
https://api.linode.com/v4/volumes/12345
8686
+ - lang : CLI
8687
+ source : >
8688
+ linode-cli volumes delete 12345
8626
8689
/volumes/{volumeId}/attach :
8627
8690
parameters :
8628
8691
- name : volumeId
@@ -8683,6 +8746,9 @@ paths:
8683
8746
"linode_id": 12346
8684
8747
}' \
8685
8748
https://api.linode.com/v4/volumes/12345/attach
8749
+ - lang : CLI
8750
+ source : >
8751
+ linode-cli volumes attach 12345 --linode_id 12346
8686
8752
/volumes/{volumeId}/clone :
8687
8753
parameters :
8688
8754
- name : volumeId
@@ -11654,7 +11720,7 @@ components:
11654
11720
description : >
11655
11721
The IP Linode special forces should use to access this Linode
11656
11722
when responding to an issue.
11657
- example : 12.34.56.789
11723
+ example : 12.34.56.78
11658
11724
port :
11659
11725
type : integer
11660
11726
minimum : 1
0 commit comments