{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-create-migration-details-schema.json",
  "title": "CreateMigrationDetails",
  "description": "Common Migration details.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasemigration-api-openapi.yml#/components/schemas/CreateMigrationDetails",
  "properties": {
    "assessmentId": {
      "description": "The OCID of the resource being referenced.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "compartmentId": {
      "description": "The OCID of the resource being referenced.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "databaseCombination": {
      "description": "The combination of source and target databases participating in a migration.\nExample: ORACLE means the migration is meant for migrating Oracle source and target databases.\n",
      "enum": [
        "MYSQL",
        "ORACLE"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseCombination"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "A user-friendly description. Does not have to be unique, and it's changeable. \nAvoid entering confidential information.\n",
      "maxLength": 400,
      "minLength": 0,
      "type": "string",
      "x-default-description": "null"
    },
    "displayName": {
      "description": "A user-friendly name. Does not have to be unique, and it's changeable. \nAvoid entering confidential information.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. \nFor more information, see Resource Tags. Example: {\"Department\": \"Finance\"}\n",
      "type": "object"
    },
    "sourceDatabaseConnectionId": {
      "description": "The OCID of the resource being referenced.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "targetDatabaseConnectionId": {
      "description": "The OCID of the resource being referenced.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "type": {
      "description": "The type of the migration to be performed.\nExample: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication.\n",
      "enum": [
        "ONLINE",
        "OFFLINE"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/MigrationTypes"
    }
  },
  "required": [
    "compartmentId",
    "databaseCombination",
    "type"
  ],
  "type": "object",
  "x-example": "Example of a Create Migration request body for an ONLINE migration type:\n{\n  \"compartmentId\": \"ocid1.compartment.oc1..exampleunique_ID\",\n  \"type\": \"ONLINE\",\n  \"sourceDatabaseConnectionId\": \"ocid1.odms-connection.oc1..exampleunique_ID\",\n  \"targetDatabaseConnectionId\": \"ocid1.odms-connection.oc1..exampleunique_ID\",\n  \"freeformTags\": {\n    \"Department\": \"Finance\"\n  },\n  \"definedTags\": {\n    \"MyFirstNamespace\": {\n      \"CostCenter\": \"SmartAlec\",\n      \"Project\": \"42\",\n      \"CreatedBy\": \"SmartAlec\",\n      \"CreatedDate\": \"9/21/2017T14:00\"\n    }\n  }\n}\n"
}