PUT Update Policy

Changes a policy definition on the Secure Proxy Configuration Manager.

With the updatePolicy/{policyName} method, you can update the existing policy defined within 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. Update Policy request details

Update Policy request details.

Method Resource URI Description

PUT

policy

/sspcmrest/sspcm/rest/policy/updatePolicy/{policyName}

Updates the existing policy with the XML provided.

Table 2. Update Policy URI input parameters

Update Policy URI input parameters

Parameter Required or Optional Description Validation Valid values

policyName

Required

Updates the existing policy with the new XML.

Must be a non-empty string

a-zA-Z0-9_.

HTTP Policy request

The following example shows the HTTP request:

PUT https://localhost:8443/sspcmrest/sspcm/rest/policy/updatePolicy/CD_Policy
“X-Authentication”: “61504f4a524b48532b776a3467643733374b526368513d3d”
“Content-Type”: “application/xml”
XML corresponding to updating the policy

XML Policy 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>
    <message>Policy definition CD_Policy updated successfully</message>
    <messageLevel>INFO</messageLevel>
    <results/>
    </XmlResponse>