RiskModeler: Import EDM from MDF file

Number of APIs: 5

This is a self sufficient end-to-end Qodex collection to import any local EDM file in MDF or BAK format into Risk Modeler using RiskModeler (RM) APIs

Developer Guide: https://developer.rms.com/rms-developers/docs/import-edms
Quick Start: https://developer.rms.com/rms-developers/docs/quick-start

Pre-Requisites:

  1. Access to up and running Tenant with Risk Modeler license
  2. API Key (Refer: Obtain API keys )
  3. Local copy of EDM file in *.mdf or *.bak format

Quick Start:

  1. Add the following Environment Variables - (Refer: [Defining environment variables]
    1. API_KEY = {Your API Key}
    2. FILE_NAME = {EDM file name without extension}
    3. FILE_EXT = {File extension of your EDM file}
    4. RMSAPIHOST = {Your RMS API host} (Refer: Quick Start)
    5. FILENAMEUUID = {Add a unique UUID for your file}
      We have created a sample environment variable template Sample Environment - RiskModeler_July_2022: Import EDM from MDF file for your convenience. (Refer: [selecting an active environment] )
  2. Open Request body of PUT Uploading to S3 and select your file from your local machine

Notes:

  1. Test as many times you want but make sure to delete / rename the file in your tenant, if you want try the same file
  2. To avoid longer upload times, file can be split in to multiple parts (Uploading to S3 request must be equal to the number of parts you split)
  1. Get S3 Upload Details - GET /riskmodeler/v1/uploads GET https://{{RMS_API_HOST}}/riskmodeler/v1/uploads?fileextension={{FILE_EXT}}&dbtype=EDM&filename={{FILE_NAME_UUID}}.{{FILE_EXT}}

  2. Create Multpart Upload to S3 - AWS Service POST https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?uploads

  3. Uploading to S3 - AWS Service PUT https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?partNumber=1&uploadId={{s3_uploadId}}

  4. Complete Multpart Upload to S3 - AWS Service POST https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?uploadId={{s3_uploadId}}

  5. Submit EDM Job - POST /riskmodeler/v1/uploads/ POST https://api-euw1.rms-ppe.com/riskmodeler/v1/uploads/{{rms_uploadId}}/edm?datasource={{FILE_NAME}}&uploadId={{rms_uploadId}}