Creating global logical variables

Use the POST create API command to create global logical variables in InfoSphere® Information Analyzer.

Command

POST create

Parameters

projectContent
A parameter that indicates there is an associated XML document that describes the data to create or update within the project.

Available HTTP methods

Table 1. HTTP methods
HTTP method URI pattern DATA format Success codes Error codes
POST create XML 200 400 (bad request) or 500 (server error)

Example HTTP request

https://ServerName:9443/ibm/iis/ia/api/create

Example XML string

The following example creates the global logical variable var1:
<?xml version="1.0" encoding="UTF-8"?>
<iaapi:GlobalVariables xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi">
  <Variable dataType="any" name="var1">
    <description>desc var1</description>
    <Binding><Column name="SOURCE1.SCHEMA1.TABLE1.COL1"/></Binding>
  </Variable>
</iaapi:GlobalVariables>

Creating a new global logical variable with other project artifacts example

The HTTP request for creating a new global logical variable with other project artifacts is https://<ServerName>:9443/ibm/iis/ia/api/create. The XML string is embedded in the body of the POST request:
<?xml version="1.0" encoding="UTF-8"?>
<iaapi:Project xmlns:iaapi="http://www.ibm.com/investigate/api/iaapi" 
  name="newProject">
  <GlobalVariables>
    <Variable dataType="any" name="var1">
      <description>desc var1</description>
      <Binding><Column name="SOURCE1.SCHEMA1.TABLE1.COL1"/></Binding>
    </Variable>
  </GlobalVariables>
</iaapi:Project>