Skip to content

[Update] GET /linode/instances/{linodeId}/configs, PUT instances/{lino… #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
70 changes: 68 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4070,6 +4070,14 @@ paths:
"memory_limit": 2048,
"run_level": "default",
"virt_mode": "paravirt",
"interfaces": {
"eth0" {
"id": 678
},
"eth1" {
"id": 679
}
},
"helpers": {
"updatedb_disabled": true,
"distro": true,
Expand All @@ -4095,7 +4103,9 @@ paths:
linode-cli linodes config-create 7590910 \
--label "My Config" \
--devices.sda.disk_id 123456 \
--devices.sdb.disk_id 123457
--devices.sdb.disk_id 123457 \
--interfaces.eth5.id 1 \
--interfaces.eth6.id 2
/linode/instances/{linodeId}/configs/{configId}:
parameters:
- name: linodeId
Expand Down Expand Up @@ -4180,6 +4190,8 @@ paths:
$ref: '#/components/schemas/LinodeConfig/properties/helpers'
label:
$ref: '#/components/schemas/LinodeConfig/properties/label'
interfaces:
$ref: '#/components/schemas/LinodeConfigInterfaces'
devices:
type: object
description: >
Expand Down Expand Up @@ -4232,6 +4244,14 @@ paths:
"memory_limit": 2048,
"run_level": "default",
"virt_mode": "paravirt",
"interfaces": {
"eth0" {
"id": 678
},
"eth1" {
"id": 679
}
},
"helpers": {
"updatedb_disabled": true,
"distro": true,
Expand Down Expand Up @@ -4267,7 +4287,9 @@ paths:
--helpers.devtmpfs_automount false \
--label "My Config" \
--devices.sda.disk_id 123456 \
--devices.sdb.disk_id 123457
--devices.sdb.disk_id 123457 \
--interfaces.eth5.id 1 \
--interfaces.eth6.id 2
responses:
'200':
description: Configuration profile successfully updated.
Expand Down Expand Up @@ -14681,6 +14703,48 @@ components:
x-linode-cli-color:
None: black
default_: white
LinodeConfigInterface:
type: object
description: >
The Network Interface to apply to this Linode's configuration profile.
properties:
id:
type: integer
description: >
The ID of the Interface to add to this Linode's configuraiton profile.
Use the List Interface endpoint to retrieve the Interface ID(s) assigned to this Linode.
example: 678
LinodeConfigInterfaces:
type: object
description: >
A dictionary of Network Interfaces to add to this Linode's
configuration profile.


**Note:** You must create an Interface prior to updating your configuration profile
with a Network Interface. If you assigned Network Interfaces when you initially created
your Linode, the Interface(s) is automatically added to your Linode's configuration profile.
properties:
eth0:
$ref: '#/components/schemas/LinodeConfigInterface'
eth1:
$ref: '#/components/schemas/LinodeConfigInterface'
eth2:
$ref: '#/components/schemas/LinodeConfigInterface'
eth3:
$ref: '#/components/schemas/LinodeConfigInterface'
eth4:
$ref: '#/components/schemas/LinodeConfigInterface'
eth5:
$ref: '#/components/schemas/LinodeConfigInterface'
eth6:
$ref: '#/components/schemas/LinodeConfigInterface'
eth7:
$ref: '#/components/schemas/LinodeConfigInterface'
eth8:
$ref: '#/components/schemas/LinodeConfigInterface'
eth9:
$ref: '#/components/schemas/LinodeConfigInterface'
Invoice:
type: object
description: Account Invoice object
Expand Down Expand Up @@ -15560,6 +15624,8 @@ components:
- paravirt
- fullvirt
example: paravirt
interfaces:
$ref: '#/components/schemas/LinodeConfigInterfaces'
helpers:
type: object
description: Helpers enabled when booting to this Linode Config.
Expand Down