You must shut down an instance before updating the network information. The changes are applied after restarting the instance.
Use the following command to update the network configuration of an instance. The networking
option of the command uses the same syntax of the networking
object type of the orchestration JSON file.
oracle-compute update instance name [--shape] [--networking] [--nis] [--tag] [--delete_tag]
For more information, see CLI Reference for Oracle Compute Cloud Service.
To update the network configuration of an instance using the API, use the PUT https://api.oc.example.com/instance/name
method.
For more information, see REST API Reference for Oracle Compute Cloud Service.