Stopping an Instance
Shutting Down or Restarting an Instance Using the Instance's OS
You can shut down and restart instances using the commands available in the OS when you're signed in to the instance. Shutting down an instance using the instance's OS doesn't stop billing for that instance. If you shut down an instance this way, be sure to also stop it from the Console or API.
- On the Instances list page, find the instance that you want to work with. If you need help finding the list page or the instance, see Listing Instances.
- From available actions for the instance, select Stop.
-
By default, the Console gracefully stops the instance by sending a shutdown command to the operating system. After waiting 15 minutes for the OS to shut down, the instance is powered off.
Note
If the applications that run on the instance take more than 15 minutes to shut down, they could be improperly stopped, resulting in data corruption. To avoid this, shut down the instance using the commands available in the OS before you stop the instance using the Console.To stop the instance immediately, without waiting for the OS to respond, select the Force stop the instance by immediately powering off checkbox.
- Select Stop instance.
Use the instance action command and required parameters to stop an instance:
oci compute instance action --instance-id <instance_OCID> --action SOFTSTOP
To power off the instance immediately, use the
STOP
action.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
Use the InstanceAction operation to stop an instance, passing the value
SOFTSTOP
as the action to perform.To power off the instance immediately, use the
STOP
action.