For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export

The export API packages all of the files necessary to create a service into a ZIP file. The ZIP file can then be used by the import API to deploy the Spark services to another tenant and/or environment.

Prerequisites to export Spark services

  • Only one job can be run at a time per tenant.

  • All the referenced objects need to exist and be accessible with the provided authorization.

  • Any referenced folders must contain a service.

  • All referenced services must have a compiled Neuron WebAssembly module.

  • The requested package size must not exceed the configured limit (default 200 MB).

Authorization

These APIs support authorization via:

POST export job

Path parameters

Key
Value

tenant *

Tenant is part of your sign-in URL and also available in the User menu.

Request body

Content-Type: application/json

Spark includes the union of the inputs service identifiers in the exported package.

Key
Value

inputs.folders

Array of folder names.

inputs.services

Array of CS.SPARK_XCALL() format of {folder}/{service} or {folder}/{service}[{version}] or service_id.

If a version is specified, follow the version convention to take the latest version with a starts with match. e.g. 3.2 will grab the latest semantic version that starts with 3.2. Example 1: myfolder/myservice Example 2: myfolder/myservice[1.4.3] Example 3: 5edf95a1-96f3-4a53-b9a4-9ff382bd9936 Example 4: ["myfolder/myservice1", "yourfolder/service2"]

inputs.version_ids

Array of version_ids.

file_filter

Filter the requested files.

  • The default value is migrate which will export all of the files relevant to the service.

  • onpremises includes only the files that are needed for the Hybrid runner.

source_system

Tag API Call.

Example: mycicd

correlation_id

Tag API Call.

Example: 456

version_filter

Filter service versions.

  • The default value is all which will export all of the service versions for the identified folders and services.

  • latest will only provide the latest service version for each service. If latest is used and there are references to a specific service version, the export will generate an error.

file_name

Name of the downloaded file. If not provided, Spark will use an appropriate name.

Sample request and response

Returns the response from Export.

HTTP 200 OK Content-Type: application/json

Path parameters

Key
Value

tenant *

Tenant is part of your sign-in URL and also available in the User menu.

jobId *

Response

Content-Type: application/json

Key
Value

object

export

id

id for the job.

response_timestamp

Response timestamp.

status

  • created Job registered on Spark.

  • in_progress Job in progress.

  • closed Job completed successfully.

  • closed_by_timeout Job was unable to complete within 15 min.

  • failed Job was not able to complete.

status_url

Link to the GET status API.

process_time

Time taken for the job.

outputs.files

Array of the output files:

  • file Link to the package. Filename of the exported object is package.zip. This can be overridden with the file_name parameter.

  • file_hash SHA-256 of the packaged file.

outputs.services

Array of the exported services sorted by folder, service:

  • service_uri_source in CS.SPARK_XCALL() format of {folder}/{service}

  • folder_source

  • service_source

  • service_id_source

outputs.service_versions

Array of the exported service versions sorted by folder_source, service_source, version_source:

  • service_uri_source in CS.SPARK_XCALL() format of {folder}/{service}[{version}]

  • folder_source

  • service_source

  • version_source (semantic version)

  • service_id_source

  • version_id_source

source_system

Value from POST export job.

correlation_id

Value from POST export job.

Sample request and response

HTTP 200 OK Content-Type: application/json

PATCH export status to cancel job

Path parameters

Key
Value

tenant *

Tenant is part of your sign-in URL and also available in the User menu.

jobId *

Request body

Content-Type: application/json

Request body
Description

Include this line in the JSON body to cancel the export at any time.

Sample request and response

HTTP 200 OK Content-Type: application/json

GET export jobs across the tenant

  • If you are a supervisor:pf user, you will be able to see all exports run by users within your tenant.

  • Otherwise, you will only see information about the batches that you initiated.

Path parameters

Key
Value

tenant *

Tenant is part of your sign-in URL and also available in the User menu.

Sample request and response

HTTP 200 OK Content-Type: application/json

Last updated