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.
-
A successful request triggers a
linode_config_updateevent. -
Only one interface can be set as
primary. Settingprimarytotruefor an interface sets all other interfaces tofalse.
Permissions and scopes
To call this operation, you need the following:
-
Identity and access permissions. Your user needs a role with these permissions assigned. Learn more.
- Permissions:
create_linode_config_profile_interface
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
linodes:read_write
- Scopes:
CLI
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"