Getting an Instance
Get the details for a Compute instance in an Oracle Cloud Infrastructure compartment.
On the Compute Instances list page, select the instance that you want to view. If you need help finding the list page, see Listing Instances.
The details page opens and provides information about the instance. Example data includes:
- OCID
- Image
- Shape
- Security settings
- Networking settings
- Work requests related to this instance
- Tags assigned to this instance
The preceding list isn't comprehensive, additional information about the instance is also available on the page.
Use the instance get command and required parameters to get instance details:
oci compute instance get --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.
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 get an instance: