Listing Rules for a Resource

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

HTTP Method: POST

REST URL Format:

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

where:

host

Is the name of the system where WebFOCUS is installed.

port

Is the port number used by WebFOCUS.

Resource

Is the path to a particular resource. For example:

/WFC/Repository/ParentFolder/FolderName

Body Format:

IBIRS_action=listRulesForResource

Example:

In the following example, a list rules is returned for the Quarterly folder within the Financial_Reports folder.

POST Request:

http://localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/Financial_Reports/Quarterly

Body:

IBIRS_action=listRulesForResource

Response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ibfsrpc _jt="IBFSResponseObject" language="EN" name="listRulesForResource" returncode="10000" returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple">
	<ibfsparams size="1">
		<entry key="IBIRS_path" value="/WFC/Repository/Financial_Reports/Quarterly"/>
	</ibfsparams>
	<rootObject _jt="IBFSObject" container="true" description="RulesList" dummy="false" fullPath="NO PATH/RulesList" name="RulesList" type="IBFSFolder">
		<children _jt="ArrayList" size="1">
			<item _jt="IBFSRuleObject" compLvl="0" dummy="false" index="0" 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.


Information Builders