<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/resources/hosts" path="/resources/hosts" id="bea53233-d666-4540-86b7-3d082afbe58a" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="bea53233-d666-4540-86b7-3d082afbe58afileName">%2Fresources%2Fhosts</con:setting>
  </con:settings>
  <con:parameters/>
  <con:method name="GET" id="f8c0d0e7-4e9c-491d-8a6b-2774a02b6e5a" method="GET">
    <con:description>get hosts list
Show all hosts list in TiEM</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>hostId</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>page</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description>Current page location</con:description>
      </con:parameter>
      <con:parameter>
        <con:name>pageSize</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:dataType>integer</con:dataType>
        <con:default/>
        <con:description>Number of this request</con:description>
      </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>status</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:parameter>
      <con:parameter>
        <con:name>rack</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
      </con:parameter>
      <con:parameter>
        <con:name>region</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
      </con:parameter>
      <con:parameter>
        <con:name>zone</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
      </con:parameter>
    </con:parameters>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>200</con:status>
      <con:params/>
      <con:sampleContent>{
  "controller.ResultWithPage" : {
    "code" : 0,
    "data" : { },
    "message" : "string",
    "page" : {
      "page" : 0,
      "pageSize" : 0,
      "total" : 0
    }
  },
  "data" : {
    "hosts" : [ {
      "arch" : "string",
      "az" : "string",
      "clusterType" : "string",
      "cpuCores" : 0,
      "createTime" : 0,
      "diskType" : "string",
      "disks" : [ {
        "capacity" : 0,
        "diskId" : "string",
        "hostId" : "string",
        "name" : "string",
        "path" : "string",
        "status" : "string",
        "type" : "string"
      } ],
      "freeCpuCores" : 0,
      "freeMemory" : 0,
      "hostId" : "string",
      "hostName" : "string",
      "ip" : "string",
      "kernel" : "string",
      "loadStat" : "string",
      "memory" : 0,
      "nic" : "string",
      "os" : "string",
      "passwd" : "string",
      "purpose" : "string",
      "rack" : "string",
      "region" : "string",
      "reserved" : true,
      "spec" : "string",
      "status" : "string",
      "sysLabels" : [ "string" ],
      "traits" : 0,
      "updateTime" : 0,
      "userName" : "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="e4fa04bd-b5e9-45ab-8870-b86c8f424185" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</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="hostId" value=""/>
        <con:entry key="pageSize" value=""/>
        <con:entry key="arch" value=""/>
        <con:entry key="loadStat" value=""/>
        <con:entry key="page" value=""/>
        <con:entry key="region" value=""/>
        <con:entry key="status" value=""/>
      </con:parameters>
      <con:parameterOrder>
        <con:entry>arch</con:entry>
        <con:entry>hostId</con:entry>
        <con:entry>loadStat</con:entry>
        <con:entry>page</con:entry>
        <con:entry>pageSize</con:entry>
        <con:entry>purpose</con:entry>
        <con:entry>status</con:entry>
        <con:entry>hostIp</con:entry>
        <con:entry>rack</con:entry>
        <con:entry>region</con:entry>
        <con:entry>zone</con:entry>
      </con:parameterOrder>
      <con:environmentSpec>
        <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
        <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
      </con:environmentSpec>
    </con:request>
    <con:environmentSpec>
      <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
      <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
    </con:environmentSpec>
  </con:method>
  <con:method name="POST" id="cbeb5507-8b4c-4a25-878b-90e82102b149" method="POST">
    <con:description>import hosts by xlsx file
Import a batch of hosts to TiEM</con:description>
    <con:settings/>
    <con:parameters>
      <con:parameter>
        <con:name>hostReserved</con:name>
        <con:value>false</con:value>
        <con:style>QUERY</con:style>
        <con:default>false</con:default>
        <con:description>whether hosts are reserved(won't be allocated) after import</con:description>
      </con:parameter>
      <con:parameter required="true">
        <con:name>file</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
        <con:description>hosts information in a xlsx file</con:description>
      </con:parameter>
      <con:parameter>
        <con:name>skipHostInit</con:name>
        <con:value>false</con:value>
        <con:style>QUERY</con:style>
        <con:default>false</con:default>
      </con:parameter>
      <con:parameter>
        <con:name>ignorewarns</con:name>
        <con:value>false</con:value>
        <con:style>QUERY</con:style>
        <con:default>false</con:default>
      </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" : {
    "hostIds" : [ "string" ]
  }
}</con:sampleContent>
    </con:representation>
    <con:representation type="REQUEST">
      <con:mediaType>multipart/form-data</con:mediaType>
      <con:params/>
    </con:representation>
    <con:request name="Request 1" id="9e0bf0e9-8bee-4c60-9dca-f7242a1a3833" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</con:endpoint>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:parameters>
        <con:entry key="file" value=""/>
        <con:entry key="ignorewarns" value="false"/>
        <con:entry key="skipHostInit" value="false"/>
        <con:entry key="hostReserved" value="false"/>
      </con:parameters>
      <con:parameterOrder>
        <con:entry>hostReserved</con:entry>
        <con:entry>file</con:entry>
        <con:entry>skipHostInit</con:entry>
        <con:entry>ignorewarns</con:entry>
      </con:parameterOrder>
      <con:environmentSpec>
        <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
        <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
      </con:environmentSpec>
    </con:request>
    <con:environmentSpec>
      <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
      <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
    </con:environmentSpec>
  </con:method>
  <con:method name="DELETE" id="48da59bc-343f-4648-b6a1-c8a2de92282d" method="DELETE">
    <con:description>remove hosts by a list
Remove a batch of hosts</con:description>
    <con:settings/>
    <con:parameters/>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
      <con:sampleContent>{
  "hostIds" : [ "string" ]
}</con:sampleContent>
    </con:representation>
    <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" : { }
}</con:sampleContent>
    </con:representation>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
    </con:representation>
    <con:request name="Request 1" id="7cddcbe2-6050-45fd-ba2d-208b27ba0f4b" mediaType="application/json" postQueryString="false">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</con:endpoint>
      <con:request>{
  "hostIds" : [ "string" ]
}</con:request>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
      <con:parameters/>
      <con:environmentSpec>
        <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
        <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
          <con:authProfile>Inherit From Parent</con:authProfile>
        </con:entry>
      </con:environmentSpec>
    </con:request>
    <con:environmentSpec>
      <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
      <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
        <con:authProfile>Inherit From Parent</con:authProfile>
      </con:entry>
    </con:environmentSpec>
  </con:method>
  <con:environmentSpec>
    <con:entry environmentId="145614f2-3764-4b2c-aea1-428a3da9b4e7">
      <con:authProfile>Inherit From Parent</con:authProfile>
    </con:entry>
    <con:entry environmentId="0348fa2a-7106-45b2-8fa8-793ec5904838">
      <con:authProfile>Inherit From Parent</con:authProfile>
    </con:entry>
  </con:environmentSpec>
</con:resource>
