Page History
...
The following table describes the parameters used in the request:
Parameter | In | Required or optional | Description | Options |
---|---|---|---|---|
project | path | required | The Teamwork Cloud project name or ID. | NA |
version | path | optional | The Teamwork Cloud project version. | NA |
branch | path | optional | The project branch name or ID. If the branch is omitted, the trunk is used instead. | NA |
element | path | optional | The qualified name or server ID of the element to be executed. | NA |
config | path | optional | The Simulation Configuration name or server ID. | NA |
started_from | path | optional | Allows specifying the starting location of the simulation. The value of the started_from parameter is provided in the status endpoint response. | NA |
commit_results | path | optional | Commits a new project version with the simulation results. Available values are True or False (default). | NA |
verification | path | optional | Returns the selected verification results. Available values are:
| NA |
data | path | optional | A set of output parameters, which will be obtained after the simulation is complete. | NA |
simconfig | body | optional | The set of simulation configuration properties along with their corresponding values. The simulation configuration options you specify will take precedence over the initial configuration option from a model. |
|
Code Block | ||
---|---|---|
| ||
# SpaceCraftMassRollup sample parameters = { "inputs": { "telecom.antenna.me":10, "telecom.amplifier.me":20 }, "outputs": [ "me", "propulsion.me", "propulsion.tank.me", "propulsion.thruster.me", "telecom.me", "telecom.antenna.me", "telecom.amplifier.me" ] } client.run('SpacecraftMassRollup_SimWeb', config='spacecraft mass analysis', commit_results=False, data=json.dumps(parameters)) |
...
The following table describes the parameters used in the request:
Parameter | In | Required or optional | Description | Options |
---|---|---|---|---|
project | path | required | The Teamwork Cloud project name or ID. | NA |
version | path | optional | The Teamwork Cloud project version. | NA |
branch | path | optional | The project branch name or ID. If the branch is omitted, the trunk is used instead. | NA |
element | path | optional | The qualified name or server ID of the element to be executed. | NA |
config | path | optional | The Simulation Configuration name or server ID. | NA |
commit_results | path | optional | A new project version is committed with the simulation results. Available values are True or False (default). | NA |
verification | path | optional | Returns the selected verification results. Available values are:
If the verification value is not specified, only the verification results with the fail status are returned when the get_results endpoint is called. | NA |
data | path | optional | A set of output parameters, which will be obtained after the simulation is complete. | NA |
simconfig | body | optional | The set of simulation configuration properties along with their corresponding values. The simulation configuration options you specify will take precedence over the initial configuration option from a model. |
|
Code Block | ||
---|---|---|
| ||
# SpaceCraftMassRollup sample parameters = { "inputs": { "telecom.antenna.me":10, "telecom.amplifier.me":20 }, "outputs": [ "me", "propulsion.me", "propulsion.tank.me", "propulsion.thruster.me", "telecom.me", "telecom.antenna.me", "telecom.amplifier.me" ] } client.simulate('SpacecraftMassRollup_SimWeb', config='spacecraft mass analysis', commit_results=False, data=json.dumps(parameters)) |
...