Migration

class oci.application_migration.models.Migration(**kwargs)

Bases: object

The properties that define a migration. A migration represents the end-to-end workflow of moving an application from a source environment to Oracle Cloud Infrastructure. Each migration moves a single application to Oracle Cloud Infrastructure. For more information, see Manage Migrations.

To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.

Attributes

APPLICATION_TYPE_ICS A constant which can be used with the application_type property of a Migration.
APPLICATION_TYPE_JCS A constant which can be used with the application_type property of a Migration.
APPLICATION_TYPE_OAC A constant which can be used with the application_type property of a Migration.
APPLICATION_TYPE_OIC A constant which can be used with the application_type property of a Migration.
APPLICATION_TYPE_PCS A constant which can be used with the application_type property of a Migration.
APPLICATION_TYPE_SOACS A constant which can be used with the application_type property of a Migration.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_SUCCEEDED A constant which can be used with the lifecycle_state property of a Migration.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Migration.
MIGRATION_STATE_DISCOVERING_APPLICATION A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_DISCOVERY_FAILED A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_MIGRATING A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_MIGRATION_FAILED A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_MIGRATION_SUCCEEDED A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_MISSING_CONFIG_VALUES A constant which can be used with the migration_state property of a Migration.
MIGRATION_STATE_READY A constant which can be used with the migration_state property of a Migration.
PRE_CREATED_TARGET_DATABASE_TYPE_DATABASE_SYSTEM A constant which can be used with the pre_created_target_database_type property of a Migration.
PRE_CREATED_TARGET_DATABASE_TYPE_NOT_SET A constant which can be used with the pre_created_target_database_type property of a Migration.
application_config Gets the application_config of this Migration.
application_name Gets the application_name of this Migration.
application_type Gets the application_type of this Migration.
compartment_id Gets the compartment_id of this Migration.
defined_tags Gets the defined_tags of this Migration.
description Gets the description of this Migration.
display_name Gets the display_name of this Migration.
freeform_tags Gets the freeform_tags of this Migration.
id Gets the id of this Migration.
is_selective_migration Gets the is_selective_migration of this Migration.
lifecycle_details Gets the lifecycle_details of this Migration.
lifecycle_state Gets the lifecycle_state of this Migration.
migration_state Gets the migration_state of this Migration.
pre_created_target_database_type Gets the pre_created_target_database_type of this Migration.
service_config Gets the service_config of this Migration.
source_id Gets the source_id of this Migration.
time_created Gets the time_created of this Migration.

Methods

__init__(**kwargs) Initializes a new Migration object with values from keyword arguments.
APPLICATION_TYPE_ICS = 'ICS'

A constant which can be used with the application_type property of a Migration. This constant has a value of “ICS”

APPLICATION_TYPE_JCS = 'JCS'

A constant which can be used with the application_type property of a Migration. This constant has a value of “JCS”

APPLICATION_TYPE_OAC = 'OAC'

A constant which can be used with the application_type property of a Migration. This constant has a value of “OAC”

APPLICATION_TYPE_OIC = 'OIC'

A constant which can be used with the application_type property of a Migration. This constant has a value of “OIC”

APPLICATION_TYPE_PCS = 'PCS'

A constant which can be used with the application_type property of a Migration. This constant has a value of “PCS”

APPLICATION_TYPE_SOACS = 'SOACS'

A constant which can be used with the application_type property of a Migration. This constant has a value of “SOACS”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “DELETING”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “INACTIVE”

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “SUCCEEDED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a Migration. This constant has a value of “UPDATING”

MIGRATION_STATE_DISCOVERING_APPLICATION = 'DISCOVERING_APPLICATION'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “DISCOVERING_APPLICATION”

MIGRATION_STATE_DISCOVERY_FAILED = 'DISCOVERY_FAILED'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “DISCOVERY_FAILED”

MIGRATION_STATE_MIGRATING = 'MIGRATING'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “MIGRATING”

MIGRATION_STATE_MIGRATION_FAILED = 'MIGRATION_FAILED'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “MIGRATION_FAILED”

MIGRATION_STATE_MIGRATION_SUCCEEDED = 'MIGRATION_SUCCEEDED'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “MIGRATION_SUCCEEDED”

MIGRATION_STATE_MISSING_CONFIG_VALUES = 'MISSING_CONFIG_VALUES'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “MISSING_CONFIG_VALUES”

MIGRATION_STATE_READY = 'READY'

A constant which can be used with the migration_state property of a Migration. This constant has a value of “READY”

PRE_CREATED_TARGET_DATABASE_TYPE_DATABASE_SYSTEM = 'DATABASE_SYSTEM'

A constant which can be used with the pre_created_target_database_type property of a Migration. This constant has a value of “DATABASE_SYSTEM”

PRE_CREATED_TARGET_DATABASE_TYPE_NOT_SET = 'NOT_SET'

A constant which can be used with the pre_created_target_database_type property of a Migration. This constant has a value of “NOT_SET”

__init__(**kwargs)

Initializes a new Migration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this Migration.
  • compartment_id (str) – The value to assign to the compartment_id property of this Migration.
  • display_name (str) – The value to assign to the display_name property of this Migration.
  • description (str) – The value to assign to the description property of this Migration.
  • time_created (datetime) – The value to assign to the time_created property of this Migration.
  • source_id (str) – The value to assign to the source_id property of this Migration.
  • application_name (str) – The value to assign to the application_name property of this Migration.
  • application_type (str) – The value to assign to the application_type property of this Migration. Allowed values for this property are: “JCS”, “SOACS”, “OIC”, “OAC”, “ICS”, “PCS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • pre_created_target_database_type (str) – The value to assign to the pre_created_target_database_type property of this Migration. Allowed values for this property are: “DATABASE_SYSTEM”, “NOT_SET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_selective_migration (bool) – The value to assign to the is_selective_migration property of this Migration.
  • service_config (dict(str, ConfigurationField)) – The value to assign to the service_config property of this Migration.
  • application_config (dict(str, ConfigurationField)) – The value to assign to the application_config property of this Migration.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Migration. Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “UPDATING”, “SUCCEEDED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this Migration.
  • migration_state (str) – The value to assign to the migration_state property of this Migration. Allowed values for this property are: “DISCOVERING_APPLICATION”, “DISCOVERY_FAILED”, “MISSING_CONFIG_VALUES”, “READY”, “MIGRATING”, “MIGRATION_FAILED”, “MIGRATION_SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Migration.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Migration.
application_config

Gets the application_config of this Migration. Configuration required to migrate the application. In addition to the key and value, additional fields are provided to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the CreateMigration operation.

Returns:The application_config of this Migration.
Return type:dict(str, ConfigurationField)
application_name

Gets the application_name of this Migration. Name of the application which is being migrated. This is the name of the application in the source environment.

Returns:The application_name of this Migration.
Return type:str
application_type

Gets the application_type of this Migration. The type of application being migrated.

Allowed values for this property are: “JCS”, “SOACS”, “OIC”, “OAC”, “ICS”, “PCS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The application_type of this Migration.
Return type:str
compartment_id

Gets the compartment_id of this Migration. The OCID of the compartment that contains the migration.

Returns:The compartment_id of this Migration.
Return type:str
defined_tags

Gets the defined_tags of this Migration. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this Migration.
Return type:dict(str, dict(str, object))
description

Gets the description of this Migration. Description of the migration.

Returns:The description of this Migration.
Return type:str
display_name

Gets the display_name of this Migration. User-friendly name of the migration.

Returns:The display_name of this Migration.
Return type:str
freeform_tags

Gets the freeform_tags of this Migration. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this Migration.
Return type:dict(str, str)
id

Gets the id of this Migration. The OCID of the migration.

Returns:The id of this Migration.
Return type:str
is_selective_migration

Gets the is_selective_migration of this Migration. If set to true, Application Migration migrates only the application resources that you specify. If set to false, Application Migration migrates the entire application. When you migrate the entire application, all the application resources are migrated to the target environment. You can selectively migrate resources only for the Oracle Integration Cloud and Oracle Integration Cloud Service applications.

Returns:The is_selective_migration of this Migration.
Return type:bool
lifecycle_details

Gets the lifecycle_details of this Migration. Details about the current lifecycle state of the migration.

Returns:The lifecycle_details of this Migration.
Return type:str
lifecycle_state

Gets the lifecycle_state of this Migration. The current state of the migration.

Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “UPDATING”, “SUCCEEDED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this Migration.
Return type:str
migration_state

Gets the migration_state of this Migration. The current state of the overall migration process.

Allowed values for this property are: “DISCOVERING_APPLICATION”, “DISCOVERY_FAILED”, “MISSING_CONFIG_VALUES”, “READY”, “MIGRATING”, “MIGRATION_FAILED”, “MIGRATION_SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The migration_state of this Migration.
Return type:str
pre_created_target_database_type

Gets the pre_created_target_database_type of this Migration. The pre-existing database type to be used in this migration. Currently, Application migration only supports Oracle Cloud Infrastructure databases and this option is currently available only for JAVA_CLOUD_SERVICE and WEBLOGIC_CLOUD_SERVICE target instance types.

Allowed values for this property are: “DATABASE_SYSTEM”, “NOT_SET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The pre_created_target_database_type of this Migration.
Return type:str
service_config

Gets the service_config of this Migration. Configuration required to migrate the application. In addition to the key and value, additional fields are provided to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the CreateMigration operation.

Returns:The service_config of this Migration.
Return type:dict(str, ConfigurationField)
source_id

Gets the source_id of this Migration. The OCID of the source with which this migration is associated.

Returns:The source_id of this Migration.
Return type:str
time_created

Gets the time_created of this Migration. The date and time at which the migration was created, in the format defined by RFC3339.

Returns:The time_created of this Migration.
Return type:datetime