KB Article #182431

Export an existing CPA file using REST APIs

Problem

--There is no mechanism that can be supportable in Swagger UI for this operation. The export of the CPA file can be mastered by using 2 methods:

  • Using an auxiliary application like POSTMAN or another REST API client
  • Under the CLI by interpreting the CURL command.

Resolution

*First of all, please consult the API documentation by accessing the below link

*“https://<hostname>:6443/apidocs/resource_CpaResource.html#resource_CpaResource_exportCpa_GET”

1. Using the curl command and executing the following URL:

  • curl -k -u user -X GET "https://<hostname>:6443/api/v1/cpa/exportCpa/{CPAId}" -H "accept: application/octet-stream"

2. From POSTMAN App or other REST API client

  • Enable basic auth
  • Change the content-type header to application/octet-stream
  • Claim the CPA resource from <hostname>:6443/api/v1/cpa/exportCpa/{CPAId}