Renaming an Instance
You can rename an instance without changing its Oracle Cloud Identifier (OCID).
For permissions, see Required IAM Policy for Working with Instances.
- Navigate to the Compute Instances list page. If you need help finding the list page, see Listing Instances.
- Select an instance.
- Select the option you see:
- Select Actions then More actions then Edit.
- Select More actions then Edit.
- Enter a new name. Avoid entering confidential information.
- Select Save changes.
Use the instance update command and required parameters to update an instance:
oci compute instance update --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 rename an instance: