Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Oct 15, 2026

Event Specification

Overview

The avi:ecosystem.migration:uploaded:event_file_list event is a specialized notification used for the simplified app migration path. It signals that a collection of data files has been successfully exported from the DC instance and is now available for the cloud application to consume.

Subscribe to this event in your manifest.yml file.

Typical Workflow for an App

  1. Receive Webhook: The app receives the avi:ecosystem.migration:uploaded:event_file_list event.
  2. Fetch Listing: The app downloads the JSON file at the provided key.
  3. Iterate Parts: The app parses the JSON to get the list of individual keys for the data parts.
  4. Process Data: The app downloads and processes each part to synchronize the state.
  5. Report Status: The app reports the processing outcome (SUCCESS or FAILED) for the parts back to the migration service (see Report Event File Status).

Initial Webhook event

The event is delivered via this structure:

FieldValue / Description
eventTypeavi:ecosystem.migration:uploaded:event_file_list
keyThe path to the listing file (e.g., listing/uuid-metadata.json).
labelThe type of data being notified (e.g., MAPPINGS, DATABASE, BINARY).
transferIdThe unique ID of the application's transfer.
migrationDetailsContextual info about the overall migration.
movementDetailsContextual info about the data that is moved.
isCompleteWhether this exporter has finished sending data for this label.

Example avi:ecosystem.migration:uploaded:event_file_list event

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "eventType": "avi:ecosystem.migration:uploaded:event_file_list",
  "transferId": "ed66d0a8-6009-484c-aced-298e3c0e9bbf",
  "migrationDetails": {
    "migrationId": "6fff0c25-7192-4ce1-9c79-99296b7a0daa",
    "migrationScopeId": "23b5768f-d45b-4291-8d22-fd0fcd341801",
    "createdAt": 1788331184581,
    "cloudUrl": "https://destination-site.atlassian.net",
    "name": "jira-migration"
  },
  "key": "some-file-key",
  "label": "MAPPINGS",
  "messageId": "49395bf3-ca51-42e9-8ee6-e5a0c5fe9404",
  "movementDetails": {
    "appDataMovementId": "ed66d0a8-6009-484c-aced-298e3c0e9bbf",
    "sourceLocation": {
      "cloudUrl": "https://source-site.atlassian.net",
      "type": "cloud"
    },
    "destinationLocation": {
      "cloudUrl": "https://destination-site.atlassian.net",
      "type": "cloud"
    },
    "createdAt": 1788331184581
  },
  "isComplete":true
}

Multiple Notifications

An app receives exactly one avi:ecosystem.migration:uploaded:event_file_list notification for each enabled exporter in an app data movement. Each notification has a different listing-file key.

File Lists are additive within an app data movement. Each later File List includes all event files listed in earlier File Lists, plus any new files. A File List can also include BINARY or DATABASE files from earlier migrations from the same Data Center instance.

isComplete indicates whether the exporter for this label has finished sending data. When set to true, no further notifications will be sent for this specific label (e.g., MAPPINGS, BINARY, etc.) in this migration. Each exporter completes independently.

Example: If you enable both MAPPINGS and BINARY exporters:

  • You'll receive MAPPINGS notifications until one has isComplete: true (mappings done)
  • You'll receive BINARY notifications until one has isComplete: true (binary done)
  • These complete independently - mappings finishing doesn't mean binary is done

An app using only the MAPPINGS exporter typically receives one mapping notification with isComplete: true.

Listing File Format

The listing file is a JSONL (JSON Lines) file where each line is a valid JSON representing metadata for one Event File.

Example entry (formatted for readability):

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "fileId": "uuid-of-the-file",
  "fullName": "path/to/data-part-1.json",
  "incremental": true,
  "createdAt": "2024-03-26T10:00:00Z",
  "sourceAppARI": "ari:cloud:ecosystem::app/uuid",
  "sourceLocationARI": "ari:cloud:jira::site/uuid",
  "destinationLocationARI": "ari:cloud:jira::site/uuid",
  "exporterARI": "ari:cloud:ecosystem::exporter/uuid",
  "properties": {"migrationId": "uuid"},
  "label": "MAPPINGS"
}

Event File Metadata Fields

FieldTypeDescription
fileIdstring (UUID)Unique identifier for the specific data part.
fullNamestringOriginal filename or identifier from the DC instance.
labelstringThe type of data being notified (e.g., MAPPINGS, DATABASE, BINARY).
incrementalbooleanWhether the event file contains data that was captured during a full initial snapshot of a datacenter instance, or data that is captured as an incremental change to the initial snapshot.
createdAtstring (ISO 8601)When the part was generated on the DC instance.
sourceAppARIstring (ARI)The ARI of the source application.
sourceLocationARIstring (ARI)The ARI of the source location (e.g. Jira site).
destinationLocationARIstring (ARI)The ARI of the destination location (e.g. the target cloud Jira site).
exporterARIstring (ARI)The ARI of the component that performed the export.
propertiesobject (JSON)Metadata properties based on the label (e.g., migration scope). This can be represented as an ObjectNode.

API Retrieval

Apps cannot download data parts directly using the fileId. How an app retrieves them depends on where it runs:

  • Connect and Forge Remote apps request a short-lived presigned URL from the migration service, then download the file from that URL.
  • Forge Native apps cannot reach external URLs, such as presigned URLs, without explicit customer approval. Instead, they request the file content directly from the migration service, which returns the bytes of the file.

Get File Listing

Retrieve a presigned URL to download a File Listing.

Endpoint: POST /app/migration/forge/v1/file-listing/download-url

Request body:

1
2
3
4
{
  "fileKey": "key-from-webhook"
}

Response body:

1
2
3
4
{
  "url": "https://presigned.url/..."
}

The response URL is presigned (contain credentials in the parameters that allow you to download for a short period after it has been generated).

Get Event Files

Retrieve a presigned URL to download an Event File.

Endpoint: POST /app/migration/forge/v1/event-file/urls

Request body:

1
2
3
4
{
  "eventFileIds": ["uuid-1", "uuid-2"]
}

Response body:

1
2
3
4
5
6
7
8
9
{
  "eventFiles": [
    {
      "fileId": "uuid-1",
      "presignedUrl": "https://host.domain/..."
    }
  ]
}

Downloading in byte ranges

This section applies to the Forge Native payload endpoints.

These endpoints will be replaced by convenience methods in the @forge/migrations package in a future release.

Files can be large, so request them in chunks with a Range header to limit the memory your Forge function uses. Each request supports a single byte range, for example bytes=0-1048575, bytes=1048576-, or bytes=-1024. Requests with multiple ranges are rejected. A Range header that cannot be parsed is ignored, and the whole file is returned.

Example request:

1
2
3
4
5
6
POST /app/migration/forge/v1/event-file/payload
Content-Type: application/json
Range: bytes=0-1048575

{"eventFileId": "uuid-1"}

Example response:

1
2
3
4
5
6
HTTP/1.1 206 Partial Content
Accept-Ranges: bytes
Content-Range: bytes 0-1048575/5242880
Content-Length: 1048576
Content-Type: application/x-ndjson

The total file size is the value after the / in the Content-Range header. To download the whole file in chunks, keep requesting the next range until you have received that many bytes.

StatusDescription
200 OKNo Range header was sent, or it could not be parsed. The response body is the whole file.
206 Partial ContentThe response body is the requested range. The Content-Range header describes which bytes were returned.
400 Bad RequestThe request body is missing, or its fileKey, eventFileId or fileId field is missing or blank.
403 ForbiddenThe file does not exist, or your app does not have access to it.
404 Not FoundThe file content is not available.
416 Range Not SatisfiableThe Range header contains more than one range, or starts beyond the end of the file. If the file size is known, it is returned in the Content-Range header, for example bytes */5242880.

Report Event File Status

After processing the downloaded data parts, the app must report the outcome for those files back to the migration service so the platform can track progress and completion.

Endpoint: POST /app/migration/forge/v1/event-files/status

Request body:

1
2
3
4
5
6
{
  "appDataMovementId": "app-data-movement-id-from-webhook",
  "eventFileIds": ["uuid-1", "uuid-2"],
  "status": "SUCCESS"
}
FieldTypeDescription
appDataMovementIdstringThe identifier of the transfer. This is available in the field named appDataMovementId under movementDetails from the initial event.
eventFileIdsarray of stringThe fileId values of the parts whose status is being reported.
statusstring (enum)The processing outcome. Use SUCCESS when the files were processed successfully, or FAILED when processing failed.

Marking an eventFileId as FAILED will fail the migration immediately.

The Forge migration platform treats updates to event files the same as updates to the existing APP_DATA upload process. As a result, any eventFile that is marked as SUCCESS will trigger the sliding window logic and reset the 15-minute timeout window.


Rate this page: