View execution inputs
In some cases it might be useful to check what inputs have been used for the engine execution.
GET/api/compute/execution/{id}/input
endpoint allows you to get detailed information about inputs and parameters used in a specific engine execution. Simple execution as below:
{
"inputs": [
{
"uri": "https://coreenginedev0inputs.blob.core.windows.net/data/lake-seq/lake2.m21fm",
"localPath": "lake2.m21fm",
"engine": "FemEngineHD",
"version": "2024.1"
},
{
"uri": "https://coreenginedev0inputs.blob.core.windows.net/data/lake-seq/lake.mesh",
"localPath": "lake.mesh"
}
],
"options": {
"poolType": "VM-S-5",
"nodeCount": 1
}
}
Will generate a response holding the whole inputs definition for the engine execution as follows:
{
"platformInputs": null,
"inputs": {
"inputs": [
{
"uri": "https://coreenginedev0inputs.blob.core.windows.net/data/lake-seq/lake2.m21fm",
"localPath": "lake2.m21fm",
"engine": "FemEngineHD",
"version": "2024.1",
"runParameters": null
},
{
"uri": "https://coreenginedev0inputs.blob.core.windows.net/data/lake-seq/lake.mesh",
"localPath": "lake.mesh",
"engine": null,
"version": null,
"runParameters": null
}
],
"output": null,
"platformOutput": null,
"options": {
"poolType": "VM-S-5",
"nodeCount": 1
}
},
"isPlatformData": false
}
Click to show example shell script to get the engine input
projectId="<replacewithprojectid>" openapikey="<replacewithopenapikey>" executionId="<replacewithexecutionid>" # get execution input curl -L -X GET "https://api.mike-cloud-test.com/api/compute/execution/$executionId/input" \ -H 'api-version: 2' \ -H 'dhi-service-id: engine' \ -H "dhi-project-id: $projectId" \ -H "dhi-open-api-key: $openapikey"
The parameter isPlatformData
indicates if engine execution was started using data from MIKE Cloud Platform or not. When execution is started with data from MIKE Cloud Platform, inputs response will hold both the definition of platformInputs
as provided at the engine execution call and inputs
which is a list of datasets used and their respective uris generated by MIKE Cloud Platform. Example:
{
"models": [
{
"modelFileName": "lake.m21fm",
"engine": "FemEngineHD",
"version": "2024.1",
"resultsRelativePath" : "Execution Results"
}
],
"options": {
"poolType": "VM-S-5",
"nodeCount": 1
}
}
Will respectively generate something like this:
{
"platformInputs": {
"models": [
{
"subprojectId": null,
"modelFileName": "lake.m21fm",
"engine": "FemEngineHD",
"version": "2024.1",
"resultsRelativePath": "Execution Results",
"runParameters": null
}
],
"output": null,
"options": {
"poolType": "VM-S-5",
"nodeCount": 1
}
},
"inputs": {
"inputs": [
{
"uri": "https://corerawstordev0.blob.core.windows.net:443/980552ba-58a1-4742-9248-cbcf3b3a4ece/landingzone/projects/8f0bc75e-b4e3-4073-a829-b1d070430232/41b9c0b0-63cc-42c3-ad6f-9069ce0aae50_lake.m21fm?sv=2019-07-07&spr=https,http&se=2020-10-01T04%3A48%3A08Z&sr=b&sp=r&sig=b%2BNo3DEmnwq22p4y%2FdlZN%2FPonjYFtOwFWDigSsOSW%2Bw%3D",
"localPath": "lake.m21fm",
"engine": "FemEngineHD",
"version": "2024.1",
"runParameters": null
},
{
"uri": "https://corerawstordev0.blob.core.windows.net:443/980552ba-58a1-4742-9248-cbcf3b3a4ece/landingzone/projects/8f0bc75e-b4e3-4073-a829-b1d070430232/d7a29e39-b470-4036-9098-d1b76b6ff1f4_lake.mesh?sv=2019-07-07&spr=https,http&se=2020-10-01T04%3A48%3A07Z&sr=b&sp=r&sig=ItDNyJBjYiAGYKOfXkztcekMl6M8BWcycZT90FlQ830%3D",
"localPath": "lake.mesh",
"engine": null,
"version": null,
"runParameters": null
}
],
"output": null,
"platformOutput": [
{
"modelFileName": "lake.m21fm",
"resultsRelativePath": "Execution Results"
}
],
"options": {
"poolType": "VM-S-5",
"nodeCount": 1
}
},
"isPlatformData": true
}