PUT Import Blocklists

Imports the exported Blocklist profiles to the Secure Proxy Configuration Manager.

With the import method, you can import exported Blocklist profiles 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 Blocklists request details

Import Blocklists request details.

Method Resource URI Description

PUT

blacklists

/sspcmrest/sspcm/rest/blacklist/import

Imports the blocklists with the XML provided.
Table 2. Import Blocklists URI input parameters

Import Blocklists URI input parameters

Parameter Required or Optional Description Validation Valid values

None

Not required

Imports exported blocklists with the new XML.

None

None

HTTP Blacklist request

The following example shows the HTTP request.

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

HTTP Blacklist response

The following example shows the XML response.

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