<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/resources/stocks" path="/resources/stocks" id="f8544fba-0677-44c5-b0c5-7f4f159956f3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="f8544fba-0677-44c5-b0c5-7f4f159956f3fileName">%2Fresources%2Fstocks</con:setting>
  </con:settings>
  <con:parameters/>
  <con:method name="GET" id="7735f38c-1606-44d1-99af-59b045e7ae2e" method="GET">
    <con:description>get resource stocks in specified conditions
Show the resources stocks</con:description>
    <con:settings/>
    <con:parameters>
      <con:parameter>
        <con:name>arch</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>capacity</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>diskStatus</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>diskType</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>hostId</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>hostIp</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>loadStat</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>purpose</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>rack</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>region</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>status</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
      <con:parameter>
        <con:name>zone</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description xsi:nil="true"/>
      </con:parameter>
    </con:parameters>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>200</con:status>
      <con:params/>
      <con:sampleContent>{
  "controller.CommonResult" : {
    "code" : 0,
    "data" : { },
    "message" : "string"
  },
  "data" : {
    "stocks" : {
      "additionalProp1" : {
        "freeCpuCores" : 0,
        "freeDiskCapacity" : 0,
        "freeDiskCount" : 0,
        "freeHostCount" : 0,
        "freeMemory" : 0,
        "zone" : "string"
      },
      "additionalProp2" : {
        "freeCpuCores" : 0,
        "freeDiskCapacity" : 0,
        "freeDiskCount" : 0,
        "freeHostCount" : 0,
        "freeMemory" : 0,
        "zone" : "string"
      },
      "additionalProp3" : {
        "freeCpuCores" : 0,
        "freeDiskCapacity" : 0,
        "freeDiskCount" : 0,
        "freeHostCount" : 0,
        "freeMemory" : 0,
        "zone" : "string"
      }
    }
  }
}</con:sampleContent>
    </con:representation>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
    </con:representation>
    <con:request name="Request 1" id="90811f0b-da10-4f4e-b734-9defb857fe8b" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4100</con:endpoint>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:parameters>
        <con:entry key="rack" value=""/>
        <con:entry key="hostIp" value=""/>
        <con:entry key="purpose" value=""/>
        <con:entry key="zone" value=""/>
        <con:entry key="diskStatus" value=""/>
        <con:entry key="hostId" value=""/>
        <con:entry key="arch" value=""/>
        <con:entry key="diskType" value=""/>
        <con:entry key="loadStat" value=""/>
        <con:entry key="region" value=""/>
        <con:entry key="capacity" value=""/>
        <con:entry key="status" value=""/>
      </con:parameters>
    </con:request>
  </con:method>
</con:resource>
