<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/clusters/takeover" path="/clusters/takeover" id="1f094a82-24c3-4880-97df-de32c4c5e842" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="1f094a82-24c3-4880-97df-de32c4c5e842fileName">%2Fclusters%2Ftakeover</con:setting>
  </con:settings>
  <con:parameters/>
  <con:method name="POST" id="b9f8ae08-5bf1-4ac0-9e93-89bbfa8469e9" method="POST">
    <con:description>takeover a cluster
takeover a cluster</con:description>
    <con:settings/>
    <con:parameters/>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
      <con:sampleContent>{
  "TiUPIp" : "172.16.4.147",
  "TiUPPath" : ".tiup/",
  "TiUPPort" : 22,
  "TiUPUserName" : "root",
  "TiUPUserPassword" : "password",
  "clusterNames" : [ "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" : {
    "clusters" : [ {
      "alertUrl" : "http://127.0.0.1:9093",
      "backupFileUsage" : {
        "total" : 1.5,
        "usageRate" : 1.5,
        "used" : 1.5
      },
      "clusterId" : "string",
      "clusterName" : "string",
      "clusterType" : "string",
      "clusterVersion" : "string",
      "copies" : 0,
      "cpuArchitecture" : "string",
      "cpuUsage" : {
        "total" : 1.5,
        "usageRate" : 1.5,
        "used" : 1.5
      },
      "createTime" : "string",
      "dbUser" : "string",
      "deleteTime" : "string",
      "exclusive" : true,
      "extranetConnectAddresses" : [ "string" ],
      "grafanaUrl" : "http://127.0.0.1:3000",
      "intranetConnectAddresses" : [ "string" ],
      "maintainStatus" : "string",
      "maintainWindow" : "string",
      "memoryUsage" : {
        "total" : 1.5,
        "usageRate" : 1.5,
        "used" : 1.5
      },
      "role" : "string",
      "status" : "string",
      "storageUsage" : {
        "total" : 1.5,
        "usageRate" : 1.5,
        "used" : 1.5
      },
      "tags" : [ "string" ],
      "tls" : true,
      "updateTime" : "string",
      "userId" : "string",
      "whitelist" : [ "string" ]
    } ],
    "workFlowId" : "string"
  }
}</con:sampleContent>
    </con:representation>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>401</con:status>
      <con:params/>
      <con:sampleContent>{
  "code" : 0,
  "data" : { },
  "message" : "string"
}</con:sampleContent>
    </con:representation>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>403</con:status>
      <con:params/>
      <con:sampleContent>{
  "code" : 0,
  "data" : { },
  "message" : "string"
}</con:sampleContent>
    </con:representation>
    <con:representation type="RESPONSE">
      <con:mediaType>application/json</con:mediaType>
      <con:status>500</con:status>
      <con:params/>
      <con:sampleContent>{
  "code" : 0,
  "data" : { },
  "message" : "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="f8e8f56b-657c-4071-8b67-e3000d414739" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</con:endpoint>
      <con:request>{
  "TiUPIp" : "172.16.4.147",
  "TiUPPath" : ".tiup/",
  "TiUPPort" : 22,
  "TiUPUserName" : "root",
  "TiUPUserPassword" : "password",
  "clusterNames" : [ "string" ]
}</con:request>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <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>
