put
https://api.linode.com//linode/instances//interfaces/
Update the configuration of a Linode interface.
Permissions and scopes
To call this operation, you need permissions, based on the model you're using:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
linodes:read_write
- Scopes:
CLI
Public interface
linode-cli linodes interface-update $linodeId $interfaceId \
--default_route.ipv4 true \
--default_route.ipv6 false \
--public.ipv4.addresses '[{"address": "192.0.2.141", "primary": true}, {"address": "auto", "primary": false}]' \
--public.ipv6.ranges '[{"range": "2001:0db8"::1/64"}, {"range": "/64"}]'VLAN interface
linode-cli linodes interface-update $linodeId $interfaceId \
--vlan.vlan_label my-vlan \
--vlan.ipam_address 192.168.2.2/24VPC interface
linode-cli linodes interface-update $linodeId $interfaceId \
--default_route.ipv4 true \
--vpc.subnet_id 321 \
--vpc.ipv4.addresses '[{"address": "10.0.0.1", "primary": true, "nat_1_1_address": "auto"}, {"address": "auto", "primary": false, "nat_1_1_address": null}]' \
--vpc.ipv4.ranges '[{"range": "/28"}, {"range": "10.11.12.0/24"}]'