1 Reply Latest reply on Jun 9, 2014 4:06 AM by jmedd

    Issue listing IPsets Created on a Scope via REST API

    jmedd Enthusiast
    vExpert

      I'm able to create an IPset on a datacenter scope like the following:

       

      POST https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

       

      <ipset>

        <objectId />

        <type>

        <typeName />

        </type>

        <description>New Description</description>

        <name>TestIPSet2</name>

        <revision>0</revision>

        <objectTypeName />

        <value>10.112.201.8-10.112.201.14</value>

      </ipset>

       

      which gives me back an id of:

       

      ipset-205

       

      I can successfully query that IPset directly with:

       

      GET https://192.168.x.x/api/2.0/services/ipset/ipset-205

       

      <ipsetipset>

        <objectId>ipset-205</objectId>

        <type>

        <typeName>IPSet</typeName>

        </type>

        <name>TestIPSet2</name>

        <description>New Description</description>

        <revision>1</revision>

        <objectTypeName>IPSet</objectTypeName>

        <scope>

        <id>datacenter-xx</id>

        <objectTypeName>Datacenter</objectTypeName>

        <name>xxxxx</name>

        </scope>

        <extendedAttributes />

        <inheritanceAllowed>false</inheritanceAllowed>

        <value>10.112.201.8-10.112.201.14</value>

      </ipset>

       

       

      However, if I attempt to list all IPsets on the datacenter-xx scope I get an error:

       

      GET https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

       

       

      https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

       

       

       

       

      https://192.168.x.x/api/2.0/services/ipset/ipset-205

       

       

      <error>

      <details>The requested object : datacenter-xx could not be found. Object identifiers are case sensitive.</details>

      <errorCode>202</errorCode>

      <moduleName>core-services</moduleName>

      </error>

       

      Any ideas? Surely datacenter-xx must exist because I have successfully create an IPSet on it?