You can change the shape of an instance to change the vCPU and memory configuration of an instance. You must shut down the instance, change the shape, and then restart the instance.
Use the following command to change the shape of an instance:
oracle-compute update instance name [--shape]
For more information, see CLI Reference for Oracle Compute Cloud Service.
To change the shape 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.