public static enum CreateInstanceConfigurationBase.Source extends Enum<CreateInstanceConfigurationBase.Source> implements BmcEnum
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 createImage
). Then, use the custom image to launch a new
instance (see 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 (see createVolumeBackup
). Then, create the instance configuration by specifying the list of
settings, using instanceConfigurationVolumeSourceFromVolumeBackupDetails
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 |
---|---|
static CreateInstanceConfigurationBase.Source |
create(String key) |
String |
getValue() |
static CreateInstanceConfigurationBase.Source |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateInstanceConfigurationBase.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CreateInstanceConfigurationBase.Source create(String key)
Copyright © 2016–2024. All rights reserved.