PUT Import Policies

Imports the exported Policies to the Secure Proxy Configuration Manager.

With the import method, you can import exported Policies to the Secure Proxy Configuration Manager.

This API method requires authentication. The authentication token that is generated at login must be passed in through the "X-Authentication" header.

Table 1. Import Policies request details

Import Policies request details.

Method Resource URI Description

PUT

policy

/sspcmrest/sspcm/rest/policy/import

Imports the Policies with the XML provided.

Table 2. Import Policy URI input parameters

Import Policies URI input parameters

Parameter Required or Optional Description Validation Valid values

None

Not required

Imports exported Policies with the new XML.

None

None

HTTP Policy request

The following example shows the HTTP request.

PUT https://localhost:8443/sspcmrest/sspcm/rest/policy/import
“X-Authentication”: “61504f4a524b48532b776a3467643733374b526368513d3d”
“Content-Type”: “application/xml”
XML corresponding to the Policies to be imported

HTTP Policies response

The following example shows the XML response.


 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<XmlResponse>\n<httpCode>200</httpCode>\n<httpStatus>OK</httpStatus>\n<action>None</action>\n<message>Import successful</message>\n<messageLevel>INFO</messageLevel>\n<results/>\n</XmlResponse>