Skip to content

Commit 8dc1b0c

Browse files
DorthuGitHub Enterprise
authored andcommitted
Merge pull request #72 from jsager/add-cli-examples-4
Hopefully the last of the CLI additions
2 parents 9fc28c1 + 50a05a1 commit 8dc1b0c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

openapi.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3566,6 +3566,9 @@ paths:
35663566
}
35673567
}' \
35683568
https://api.linode.com/v4/linode/instances/123/configs/23456
3569+
- lang: CLI
3570+
source: >
3571+
linode-cli linodes config-update 123 23456 --kernel "linode/latest-64bit" --comments "This is my main Config" --memory_limit 2048 --run_level default --virt_mode paravirt --helpers.updatedb_disabled true --helpers.distro true --helpers.modules_dep true --helpers.network true --helpers.devtmpfs_automount false --label "My Config" --devices.sda.disk_id 123456 --devices.sdb.disk_id 123457
35693572
responses:
35703573
'200':
35713574
description: Configuration profile successfully updated.
@@ -3700,12 +3703,20 @@ paths:
37003703
-X POST -d '{
37013704
"label": "Debian 9 Disk",
37023705
"image": "linode/debian9",
3706+
"size": 1300,
37033707
"authorized_keys": [
37043708
"ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
37053709
],
37063710
"root_pass": "aComplexP@ssword",
3711+
"stackscript_id": 10079,
3712+
"stackscript_data": {
3713+
"gh_username": "linode"
3714+
}
37073715
}' \
37083716
https://api.linode.com/v4/linode/instances/123/disks
3717+
- lang: CLI
3718+
source: >
3719+
linode-cli linodes disk-create 123 --size 1300 --authorized_keys "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer" --root_pass aComplex@Password --image "linode/debian9" --stackscript_id 10079 --stackscript_data '{"gh_username": "linode"}'
37093720
/linode/instances/{linodeId}/disks/{diskId}:
37103721
parameters:
37113722
- name: linodeId
@@ -4475,9 +4486,16 @@ paths:
44754486
"authorized_keys": [
44764487
"ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
44774488
],
4478-
"booted": true
4489+
"booted": true,
4490+
"stackscript_id": 10079,
4491+
"stackscript_data": {
4492+
"gh_username": "linode"
4493+
}
44794494
}' \
44804495
https://api.linode.com/v4/linode/instances/123/rebuild
4496+
- lang: CLI
4497+
source: >
4498+
linode-cli linodes rebuild 123 --image "linode/debian9" --root_pass aComplex@Password --authorized_keys "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer" --booted true --stackscript_id 10079 --stackscript_data '{"gh_username": "linode"}'
44814499
/linode/instances/{linodeId}/rescue:
44824500
parameters:
44834501
- name: linodeId
@@ -4544,6 +4562,9 @@ paths:
45444562
}
45454563
}' \
45464564
https://api.linode.com/v4/linode/instances/123/rescue
4565+
- lang: CLI
4566+
source: >
4567+
linode-cli linodes rescue 123 --devices.sda.disk_id 124458
45474568
/linode/instances/{linodeId}/resize:
45484569
parameters:
45494570
- name: linodeId

0 commit comments

Comments
 (0)