Skip to content

Commit 543145a

Browse files
Docs fixes
1 parent d5d7c35 commit 543145a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

linode_api4/groups/linode.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,30 @@ def instance_create(
240240
"us-east",
241241
backup=snapshot)
242242
243+
**Create an Instance with explicit interfaces:**
244+
245+
To create a new Instance with explicit interfaces, provide list of
246+
LinodeInterfaceOptions objects or dicts to the "interfaces" field::
247+
248+
linode, password = client.linode.instance_create(
249+
"g6-standard-1",
250+
"us-mia",
251+
image="linode/ubuntu24.04",
252+
253+
# This can be configured as an account-wide default
254+
interface_generation=InterfaceGeneration.LINODE,
255+
256+
interfaces=[
257+
LinodeInterfaceOptions(
258+
default_route=LinodeInterfaceDefaultRouteOptions(
259+
ipv4=True,
260+
ipv6=True
261+
),
262+
public=LinodeInterfacePublicOptions
263+
)
264+
]
265+
)
266+
243267
**Create an empty Instance**
244268
245269
If you want to create an empty Instance that you will configure manually,

linode_api4/objects/linode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,8 @@ def interface_create(
19041904
"""
19051905
Creates a new interface under this Linode.
19061906
1907+
NOTE: Linode Interfaces are not interchangeable with Interfaces/Network Interfaces.
1908+
19071909
API Documentation: https://techdocs.akamai.com/linode-api/reference/post-linode-interface
19081910
19091911
Example: Creating a simple public interface for this Linode::

0 commit comments

Comments
 (0)