Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9786

API reference guide entry for associateIpAddress needs a fix

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      Going through the code & implementation, it seems like either of the parameters are not required while accessing the API : associateIpAddress.

      There are 3 cases for which this api works. 1) networkId 2) vpcId 3) zoneId. Either of these can be provided to achieve the same functionality. If neither of them is provided, there is an error text shown.

      E.g.

      [root@CCP ~]# curl -s 'http://10.66.43.37:8096/client/api?command=associateIpAddress&listall=true' | xmllint --format - -o
      <?xml version="1.0" encoding="UTF-8"?>
      <associateipaddressresponse cloud-stack-version="4.5.1.0">
      <errorcode>431</errorcode>
      <cserrorcode>4350</cserrorcode>
      <errortext>Unable to figure out zone to assign ip to. Please specify either zoneId, or networkId, or vpcId in the call</errortext>
      </associateipaddressresponse>

      Modify the API reference guide entry with this detail in the "description"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ashadeepad Ashadeepa Debnath
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: