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:
- Access to up and running Tenant with Risk Modeler license
- API Key (Refer: Obtain API keys )
- Local copy of EDM file in *.mdf or *.bak format
Quick Start:
- Add the following Environment Variables - (Refer: [Defining environment variables]
- API_KEY = {Your API Key}
- FILE_NAME = {EDM file name without extension}
- FILE_EXT = {File extension of your EDM file}
- RMSAPIHOST = {Your RMS API host} (Refer: Quick Start)
- FILENAMEUUID = {Add a unique UUID for your file}
We have created a sample environment variable templateSample Environment - RiskModeler_July_2022: Import EDM from MDF file
for your convenience. (Refer: [selecting an active environment] )
- Open Request body of PUT
Uploading to S3
and select your file from your local machine
Notes:
- Test as many times you want but make sure to delete / rename the file in your tenant, if you want try the same file
- 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)
-
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}}
-
Create Multpart Upload to S3 - AWS Service POST https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?uploads
-
Uploading to S3 - AWS Service PUT https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?partNumber=1&uploadId={{s3_uploadId}}
-
Complete Multpart Upload to S3 - AWS Service POST https://{{s3_host}}.amazonaws.com/{{s3_path}}/{{s3_filename}}?uploadId={{s3_uploadId}}
-
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}}