Listing Rules for a Role

This RESTful web service request can be used to retrieve a list of rules for a specific role.

HTTP Method: POST

REST URL Format:

http://host:port/ibi_apps/rs/ibfs/Role

where:

host

Is the name of the system where WebFOCUS is installed.

port

Is the port number used by WebFOCUS.

Role

Is the specific role (for example, List, Run, and ListAndRun).

Body Format:

IBIRS_action=listRulesForRole

Example:

In the following example, a list rules is returned for the ListAndRun role.

POST Request:

http://localhost:8080/ibi_apps/rs/ibfs/ListAndRun

Body:

IBIRS_action=listRulesForRole

Response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ibfsrpc _jt="IBFSResponseObject" language="EN" name="listRulesForRole" returncode="10000" returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple">
	<ibfsparams size="1">
		<entry key="IBIRS_path" value="/ListAndRun"/>
	</ibfsparams>
	<rootObject _jt="IBFSObject" container="true" description="Rules with PSET:ListAndRun" dummy="false" fullPath="NO PATH/RulesList" name="RulesList" type="IBFSFolder">
		<children _jt="ArrayList" size="2">
			<item _jt="IBFSRuleObject" compLvl="0" dummy="false" index="0" pSetName="ListAndRun" parent="RulesList" resPathName="IBFS:/WFC/Repository/Public" subject="EVERYONE" subjectType="G" type="Rule">
				<verb _jt="IBSSVerb" name="PERMIT"/>
				<applyTo class="com.ibi.ibss.IBSSApplyTo" name="FOLDER_AND_CHILDREN"/>
			</item>
			<item _jt="IBFSRuleObject" compLvl="0" dummy="false" index="1" pSetName="ListAndRun" parent="RulesList" resPathName="IBFS:/WFC/Repository/Financial_Reports/Quarterly" subject="restid" subjectType="U" type="Rule">
				<verb _jt="IBSSVerb" name="PERMIT"/>
				<applyTo class="com.ibi.ibss.IBSSApplyTo" name="FOLDER_AND_CHILDREN"/>
			</item>
		</children>
	</rootObject>
</ibfsrpc>

If the value for the returncode attribute in the XML response is 10000, then the rules were successfully returned.


WebFOCUS