File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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::
You can’t perform that action at this time.
0 commit comments