post https://api.linode.com//linode/instances//configs//interfaces
Creates and appends a single interface to the end of the interfaces
array for an existing configuration profile. After you add the interface, you need to reboot the target Linode.
-
To access this operation, your user needs the
read_write
grant for the Linode. -
A successful request triggers a
linode_config_update
event. -
Only one interface can be set as
primary
. Settingprimary
totrue
for an interface sets all other interfaces tofalse
.
linode-cli linodes config-interface-add $linodeId $configId \
--purpose vpc \
--primary false \
--subnet_id 101 \
--ipv4.vpc "10.0.1.2" \
--ipv4.nat_1_1 "203.0.113.2"
<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
linodes:read_write
<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>