Creating an Instance Configuration from an Instance
On Compute Cloud@Customer you can create an instance configuration by using the configuration information from an existing compute instance.
- In the Compute Cloud@Customer Console navigation menu, click Compute, then click Instances.
- At the top of the page, select the compartment that contains the instance that you want to use to create the new instance configuration.
-
Click the name of the instance that you want to use to create the new instance configuration.
-
On the instance details page, click Controls (upper right corner), then click Create Instance Configuration.
-
In the Create Instance Configuration dialog box, enter the following information:
-
Name: Enter a name for the instance configuration.
-
Compartment: Select the compartment where this instance configuration will be created.
-
Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.
-
-
Click Create Instance Configuration.
Use the oci compute-management instance-configuration create-from-instance command and required parameters to create an instance configuration by using the configuration information from an existing compute instance.
oci compute-management instance-configuration create-from-instance --compartment-id <compartment_OCID> --instance-id <instance_OCID> --display-name <IC_name>
The specified compartment is where this instance configuration is created.
The specified display name is the name of the instance configuration. If you don't provide a value for the
--display-name
option, the default name of the instance configuration isinstanceconfigurationYYYYMMDDhhmmss
, whereYYYYMMDDhhmmss
is the creation date and time.The output of this command is the same as the output of the
instance-configuration get
command.For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateInstanceConfiguration operation to create an instance configuration using an instance.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.