Get package file

post

/restapi/change_management/get_package_file

This API retrieves a specified software configuration package.

Request

There are no request parameters for this operation.

Back to Top

Response

200 Response

OK

400 Response

The request is malformed in some way or is missing required information and therefore cannot be processed.

405 Response

Invalid request method
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to retrieve a specified software/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 Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Date: Thu, 10 Dec 2020 10:59:52 GMT
Server: Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.40
Content-Disposition: attachment;filename=file_not_found
X-UA-Compatible: IE=Edge,chrome=1
Transfer-Encoding: chunked
Content-Type: application/x-download

Example of the Response Body

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

Back to Top