Generate From Behavioural Model
generate_from_behavioural_modelGenerate the threat model of a model awaiting its first generation, from its behavioural model. Mutating; saves the model's next version.
Instructions
Generate the threat model of a model awaiting its first generation, from its behavioural model. Mutating; saves the model's next version.
A generation where the platform models what the system does saves the
model first (generate_threat_model answers extracting or
needs_answers). Once get_behavioural_model reports
generation_ready: true, call this with its model_id: the
inventory steps run from the stored description and the answers to its
questions. It takes no description. Progress is reported automatically;
it takes minutes.
Answer: as generate_threat_model's, controls_status and the
proposed control build included; needs_answers with the
questions when it stopped on questions.
Refusals come back as data, {generated: false, http_status: 409, code, message}: not_awaiting_generation (the model has been generated,
or its behavioural model still asks questions or is being extracted:
read get_behavioural_model, and refine a generated model with
refine_threat_model), generation_in_progress (another generation
of the model is running: do not start another; poll
get_behavioural_model, whose generation_ready turns false and
whose version moves when it saves). A model that is not there is a 404
error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | The model, as ``generate_threat_model`` returned it. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||