Get Scenario by ID

get

/runtime/scenario/{id}

Retrieves scenario based on ID.

Request

Path Parameters
Back to Top

Response

200 Response

The scenario was retrieved successfully.
Back to Top

Examples

The following example shows how to retrieve details of a scenario by ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

curl -X GET "hostname:port/runtime/scenario/1" -H "accept: */*"

Example of Response Body

If successful, the response code 200 is returned with a response body. For example:

{
  "id": "1",
  "_id": 80,
  "mode": null,
  "name": "Subscriber Creation and Purchase Event",
  "tags": null,
  "type": null,
  "cases": [
    525
  ],
  "priority": "0",
  "namespace": null,
  "description": "Subscriber Creation and Purchase Event",
  "loadedFromConfig": "false",
  "testScenarioResult": null
}

If the request fails, the response includes the appropriate HTTP code. For a 4xx/5xx code, the message body also contains a ProblemDetails structure with the cause attribute set to the appropriate application error.

Back to Top