This RESTful web service request can be used to return a Base64- encoded policy string representing the Effective Policy based on an XML document, which lists the privileges that are permitted or denied.
HTTP Method: POST
REST URL Format:
http://host:port/ibi_apps/rs/utils
where:
Is the name of the system where WebFOCUS is installed.
Is the port number used by WebFOCUS.
Body Format:
IBIRS_action=compactPolicy&IBIRS_policy=Policy
where:
Is the XML object defining the Effective Policy.
Example:
In the following example, a Base64-encoded policy string will be created based on the XML document containing the Effective Policy.
POST Request:
http://localhost:8080/ibi_apps/rs/utils
Body:
IBIRS_action=compactPolicy&IBIRS_policy=<rootObject _jt="IBSSPolicy" derivedTime="1368095042526"><policy _jt="EnumMap" _keyJT="IBSSOperation" size="185"><entry><key _jt="IBSSOperation" name="opLibrary"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewPortal"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opList"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewProps"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opDisplayVersionInfo"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opFavorites"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMagnify"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMobileFavorites"/><value _jt="IBSSVerb" . . . name="opCustom01"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom02"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom03"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom04"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom05"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom06"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom07"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom08"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom09"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom10"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom11"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom12"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom13"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom14"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom15"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom16"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom17"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom18"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom19"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom20"/><value _jt="IBSSVerb" name="DENY"/></entry></policy></rootObject>
Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <ibfsrpc _jt="IBFSResponseObject" language="EN" name="compactPolicy" returncode="10000" returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple"> <ibfsparams size="1"> <entry key="IBIRS_policy" value="<rootObject _jt="IBSSPolicy" derivedTime="1368095042526"><policy _jt="EnumMap" _keyJT="IBSSOperation" size="185"><entry><key _jt="IBSSOperation" name="opLibrary"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewPortal"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opList"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewProps"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opDisplayVersionInfo"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opFavorites"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMagnify"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMobileFavorites"/><value _jt="IBSSVerb" . . . _jt="IBSSOperation" name="opCustom01"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom02"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom03"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key
_jt="IBSSOperation" name="opCustom04"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom05"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom06"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom07"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom08"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom09"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom10"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom11"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom12"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom13"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom14"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom15"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom16"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom17"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom18"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom19"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom20"/><value _jt="IBSSVerb" name="DENY"/></entry></policy></rootObject>"/> </ibfsparams> <rootObject _jt="string">////D////fx/////+//////////4AAAA</rootObject> </ibfsrpc>
WebFOCUS |