Editing Custom Instance Display and Instance Host Names
Change custom instance display name and host name for instances you create in an instance pool.
- Navigate to the Instance pools list page.If you need help finding the list page, see Listing Instance Pools.
- Select the name of the instance pool that you want to edit to display the details page.
- Select Edit.
- In the Instance display name formatter field, enter a new text string that includes lowercase alphanumeric characters, symbols, and dashes. The name must include the
${launchCount}
token. For example:my-string-${launchCount}
. - In the Instance host name formatter field, enter a new text string that includes lowercase alphanumeric characters, symbols, and dashes. The name must include the
${launchCount}
token. For example:my-string-${launchCount}
.
- In the Instance display name formatter field, enter a new text string that includes lowercase alphanumeric characters, symbols, and dashes. The name must include the
- Select Save.
Use the instance-pool update command to change the custom display name for instances you create in an instance pool.
oci compute-management instance-pool update --instance-pool-id <INSTANCE_POOL_OCID> --display-name <INSTANCE_POOL_NAME>
oci compute-management instance-pool 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 the UpdateInstancePool operation to change the custom display name for instances you create in an instance pool.