<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/clusters/{clusterId}/params" path="/clusters/{clusterId}/params" id="3e6e9e67-8d74-4f50-85a3-9f63e6d00385" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="3e6e9e67-8d74-4f50-85a3-9f63e6d00385fileName">%2Fclusters%2F%7BclusterId%7D%2Fparams</con:setting>
  </con:settings>
  <con:parameters>
    <con:parameter required="true">
      <con:name>clusterId</con:name>
      <con:value/>
      <con:style>TEMPLATE</con:style>
      <con:default/>
      <con:description>clusterId</con:description>
    </con:parameter>
  </con:parameters>
  <con:method name="GET" id="b3a173c6-7184-4f48-a972-7b218635b2ce" method="GET">
    <con:description>query parameters of a cluster
query parameters of a cluster</con:description>
    <con:settings/>
    <con:parameters>
      <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>instanceType</con:name>
        <con:value/>
        <con:style>QUERY</con:style>
        <con:default/>
      </con:parameter>
      <con:parameter>
        <con:name>paramName</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" : {
    "paramGroupId" : "string",
    "params" : [ {
      "category" : "basic",
      "createTime" : 1636698675,
      "defaultValue" : "1",
      "description" : "binlog cache size",
      "hasApply" : 1,
      "hasReboot" : 0,
      "instanceType" : "tidb",
      "name" : "binlog_size",
      "note" : "binlog cache size",
      "paramId" : "1",
      "range" : [ "1", " 1000" ],
      "realValue" : {
        "clusterValue" : "string",
        "instanceValue" : [ {
          "instanceId" : "string",
          "value" : "string"
        } ]
      },
      "systemVariable" : "log.log_level",
      "type" : 0,
      "unit" : "mb",
      "updateSource" : 0,
      "updateTime" : 1636698675
    } ]
  }
}</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="32283eec-fbf1-413b-9dc2-99cd2dc30fe0" 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="instanceType" value=""/>
        <con:entry key="pageSize" value=""/>
        <con:entry key="clusterId" value=""/>
        <con:entry key="page" value=""/>
        <con:entry key="paramName" value=""/>
      </con:parameters>
      <con:parameterOrder>
        <con:entry>clusterId</con:entry>
        <con:entry>page</con:entry>
        <con:entry>pageSize</con:entry>
        <con:entry>instanceType</con:entry>
        <con:entry>paramName</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="PUT" id="7a8320d0-a48d-4fc7-abd3-7b1c847e7e8b" method="PUT">
    <con:description>submit parameters
submit parameters</con:description>
    <con:settings/>
    <con:parameters/>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
      <con:sampleContent>{
  "params" : [ {
    "hasApply" : 1,
    "instanceType" : "TiDB",
    "name" : "log_level",
    "paramId" : "1",
    "realValue" : {
      "clusterValue" : "string",
      "instanceValue" : [ {
        "instanceId" : "string",
        "value" : "string"
      } ]
    },
    "systemVariable" : "log.binlog_cache",
    "type" : 0,
    "updateSource" : 0
  } ],
  "reboot" : true
}</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" : {
    "clusterId" : "1",
    "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="94016300-539a-4256-bc5c-74f0592ab34c" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4116</con:endpoint>
      <con:request>{
  "params" : [ {
    "hasApply" : 1,
    "instanceType" : "TiDB",
    "name" : "log_level",
    "paramId" : "1",
    "realValue" : {
      "clusterValue" : "string",
      "instanceValue" : [ {
        "instanceId" : "string",
        "value" : "string"
      } ]
    },
    "systemVariable" : "log.binlog_cache",
    "type" : 0,
    "updateSource" : 0
  } ],
  "reboot" : true
}</con:request>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:parameters>
        <con:entry key="clusterId" value=""/>
      </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>
