The following table describes the parameters used in the REST API request:
|
GET /webapp/api/simulation/results/<simulation_id> |
This REST API returns the results of the specified simulation. Note that simulation results are returned only if you specify CSVExport for the Simulation Configuration and use the ?resultAsJson=true key when starting the simulation.
The following table describes the parameters used in the REST API request:
| Parameter | In | Required or optional | Description |
|---|---|---|---|
| simulation_id | path | required | The ID of the running simulation. |
/webapp/api/simulation/results/ce8c8215-0515-43fd-9d34-92d1d7a95d87
{
"result": "time(s),ma,margin,me,mr\n0.0000,130.0000,35.0000,95.0000,15.0000\n1.0000,130.0000,35.0000,95.0000,15.0000\n2.0000,130.0000,35.0000,95.0000,15.0000\n3.0000,130.0000,35.0000,95.0000,15.0000\n4.0000,130.0000,35.0000,95.0000,15.0000\n5.0000,130.0000,35.0000,95.0000,15.0000\n"
} |
GET /webapp/api/simulation/running |
This REST API request gets the list of all currently running simulations that you have started.
/webapp/api/simulation/running ["9bc18e3e-b544-4652-9bdb-6da1d75f7ea1"] |
GET /webapp/api/simulation/terminate/<simulation_id> |
This REST API request terminates the specified simulation.
The following table describes the parameters used in the REST API request:
| Parameter | In | Required or optional | Description |
|---|---|---|---|
| simulation_id | path | required | The ID of a specific simulation. |
/webapp/api/simulation/terminate/4e35bc60-2c66-48e8-96e2-80f5270c08cf
/webapp/api/simulation/status/4e35bc60-2c66-48e8-96e2-80f5270c08cf
{
"state": "TERMINATED",
"userId": "Administrator",
"elapsedTime": 11702
} |
GET /webapp/api/simulation/hasConfigs/project/<project>/branch/<branch> |
This REST API checks if the project has any Simulation Configurations.
The following table describes the parameters used in the REST API request:
| Parameter | In | Required or optional | Description |
|---|---|---|---|
| project | path | required | The Teamwork Cloud project name or ID. |
| branch | path | optional | The project branch name or ID. If the branch is omitted, the trunk is used instead. |
/webapp/api/simulation/hasConfigs/project/SpacecraftMassRollup
{
"hasConfigs": true
} |
GET /webapp/api/simulation/configs/project/<project>/branch/<branch>/element/<element_id> |
This REST API request retrieves element IDs, names, and descriptions of the Simulation Configurations available for the given executable element.
If the executable element is an Instance Specification, the method returns the Simulation Configurations:
The following table describes the parameters used in the REST API request:
| Parameter | In | Required or optional | Description |
|---|---|---|---|
| project | path | required | The Teamwork Cloud project name or ID. |
| branch | path | optional | The project branch name or ID. If the branch is omitted, the trunk is used instead. |
| element_id | path | optional | The server ID of the Instance Specification to be executed. |
/webapp/api/simulation/configs/project/SpacecraftMassRollup
{
"configId": "7915fcfa-fd88-4910-8560-13f4439cec3d",
"configName": "spacecraft mass analysis",
"documentation": ""
} |