public static enum CreateInstanceConfigurationBase.Source extends Enum<CreateInstanceConfigurationBase.Source>
The source of the instance configuration. An instance configuration defines the settings to use when creating Compute instances, including details such as the base image, shape, and metadata. You can also specify the associated resources for the instance, such as block volume attachments and network configuration.
When you create an instance configuration using an existing instance as a template, the instance configuration does not include any information from the source instance's boot volume, such as installed applications, binaries, and files on the instance. It also does not include the contents of any block volumes that are attached to the instance.
To create an instance configuration that includes the custom setup from an instance's boot volume, you
must first create a custom image from the instance (see
Then, use the custom image to launch a new instance
launchInstance). Finally, create the instance
configuration based on the instance that you created from the custom image.
To include block volume contents with an instance configuration, first create a backup of the attached block volumes
createVolumeBackup). Then, create the instance
configuration by specifying the list of settings, using
to include the block volume backups in the list of settings.
The following values are supported:
`NONE`: Creates an instance configuration using the list of settings that you specify.
`INSTANCE`: Creates an instance configuration using an existing instance as a template.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final CreateInstanceConfigurationBase.Source None
public static final CreateInstanceConfigurationBase.Source Instance
public static CreateInstanceConfigurationBase.Source values()
for (CreateInstanceConfigurationBase.Source c : CreateInstanceConfigurationBase.Source.values()) System.out.println(c);
public static CreateInstanceConfigurationBase.Source valueOf(String name)
public String getValue()
Copyright © 2016–2021. All rights reserved.