IBM InfoSphere Information Analyzer, Version 11.3.1
Use the POST create command to create data rule definitions and data rules and to add new executable rules to existing rule definitions in InfoSphere® Information Analyzer.
POST create
| HTTP method | URI pattern | Data format | Success codes | Error codes |
|---|---|---|---|---|
| POST | create | XML | 200 | 400 (bad request) or 500 (server error) |
https://ServerName:9443/ibm/iis/ia/api/create
You can assign rule definitions, rule sets, and executable rules to a folder or to multiple folders. The value of the folder attribute can be a comma-separated list of folder names. Also, a folder name can be a folder path in the format <folder1>/<folder2>/ ... /<folderN>, where each folder is nested in the preceding one.
In the following example, the new rule newrule11 is created in the folder myFolder3. If folder="All", the rule is created under the ALL category. If folder="myFolder3/mySubFolder3", the rule is created under mySubFolder3.
<?xml version="1.0" encoding="UTF-8"?>
<iaapi:Project xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi" name="myProject">
<DataRuleDefinitions>
<DataRuleDefinition name="newRule11" folder=”myFolder3”>
<description>Description of newRule</description>
<expression>col exists</expression>
</DataRuleDefinition>
</DataRuleDefinitions>
</iaapi:Project>
<?xml version="1.0" encoding="UTF-8"?>
<iaapi:Project xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi" name="projectName">
<DataRuleDefinitions>
<DataRuleDefinition name="Rule1Def">
<ExecutableRules>
<ExecutableRule name="Rule1">
<description>Description of Rule1</description>
<OutputDefinition type="FailingRecords">
<OutputColumn name="col1" type="variable" value="col1"/>
<OutputColumn name="col2" type="variable" value="col2"/>
</OutputDefinition>
<Bindings>
<Binding var="col1"><Column name="SOURCE1.SCHEMA1.TABLE1.COL1"/></Binding>
<Binding var="col2"><Column name="SOURCE1.SCHEMA1.TABLE1.COL2"/></Binding>
<Binding var="refcol"><Column name="SOURCE1.SCHEMA1.REFTABLE1.COLA"/></Binding>
</Bindings>
</ExecutableRule>
</ExecutableRules>
</DataRuleDefinition>
</DataRuleDefinitions>
</iaapi:Project>