Listing Instances
Get a list of the Compute instances in an Oracle Cloud Infrastructure compartment.
- Open the navigation menu and select Compute. Under Compute, select Instances. - The Instances list page opens. All existing instances in the selected compartment are displayed in a list table. 
- To view the resources in a different compartment, use the Compartment filter to switch compartments. Note
 You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
 - Optionally, you can do the following with an instance from the list. - Select an instance to view the details page.
- Select the instance check-box. From the Actions menu, reboot, stop, start, or terminate the instance. The operations can be applied to multiple instances.
 - List the Instance Console History Logs- To list the console history logs do the following: - Navigate based on the option you see: - From the OS Management tab, scroll down to Console history.
- Under Resources, select Console history.
 
- If logs have been created, they are listed in the dialog.
 
- Use the instance list command and required parameters to list instances: - oci compute instance list --from-json <file://path/to/file.json>- <file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options. - For a complete list of flags and variable options for the Compute service CLI commands, see the command line reference for Compute. - To list captured console history logs use the compute console-history list command: - oci compute console-history list --compartment-id <COMPARTMENT_OCID>
- 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 this API operation to list instances: - Use this API operation to list console history capture logs: