Calculate Initial Plan

Calculate initial plan.

Resource Name: /change-requests/traffic/{changeRequestId}/initial-plan/calculate

Request Method: POST

Header requirements:

Key Value
Cookie FireFlow_Session=[sessionId]. The sessionId is retrieved from the authentication request.
Request URL Parameters:

Element

Type

Description

changeRequestId Mandatory

Integer

The ID of the parent change request.

deviceGroup

optional

String Specify a specific device group, otherwise, following calculation, the default will be chosen.

Response parameters

Element

Type

Description

status String

Status of the API request. One of these:

  • Success
  • Failure
messages List of message object type Populated when status is failure.
code string Headline of error.
message string Details of error.
data string

Populated when status is success. One of the following:

  • Triggering of initial plan recalculation of change request {changeRequestId} has finished successfully.
  • Initial plan recalculation operation has finished with status failure.

Response:

Status codes:

Code

Description

200

Success

400

Input validation failure

403

Authentication failure

500

Failed to complete operation.

 

Request cURL examples

curl -k -X POST "https://<machine_IP>/FireFlow/api//change-requests/traffic/<changeRequestId>/initial-plan/calculate" -H "Cookie:RT_SID_FireFlow.443=<Cookie_value>"

Response example for 200

{
  "status": "Success",
  "messages": [],
  "data": "Trigger Initial Plan recalculation for change request 6354 has finished successfully"

}

Response example for 400

				{
  "status": "Failure",
  "messages": [
    {
      "code": "CHANGE_REQUEST_NOT_FOUND",
      "message": "Change request 6354 not found"
    }
  ],
  "data": null
}