Retrieve a software or configuration package

post

http://<SDWAN_TENANT_IP>/restapi/change_management/get_package_file

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
A JSON object containing the details of the file to be fetched. The file details can be obtained using the endpoint restapi/change_management/get_status
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Result OK
Body ()
Root Schema : schema
Type: string(binary)

400 Response

Malformed JSON string in POST data
Body ()
Root Schema : 400MalformedPOST
Type: object
Show Source

401 Response

Not Logged into the SDWAN-Edge device
Body ()
Root Schema : 401NotLoggedin
Type: object
Show Source

403 Response

Invalid POST request

405 Response

Invalid request method
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to retrieve a software or configuration package by submitting a POST request on the REST resource using cURL. If the request requires a timestamp, use the timestamp from the response of the /login API. For more information about cURL, see Use cURL.

curl -X POST \
    -b cookies.txt \
    -d@request.json \
    --header "Content-Type: application/json" \
    -o package.zip \
    "https://$IPADDR/restapi/change_management/get_package_file"

The following shows an example of the contents of the request.json file sent as the request body.

{
  "site_name":"NCN0",
  "appliance_id":"0",
  "staging_or_active":"active",
  "timestamp":<timestamp>
}

Example of the Response Body

The response body is saved to the file specified by the -o option.

Back to Top