<?xml version="1.0" encoding="UTF-8"?>
<con:resource name="/param-groups/{paramGroupId}" path="/param-groups/{paramGroupId}" id="c970cf30-b9c6-4c25-9656-54ba3c6d5c8c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://eviware.com/soapui/config">
  <con:settings>
    <con:setting id="c970cf30-b9c6-4c25-9656-54ba3c6d5c8cfileName">%2Fparam-groups%2F%7BparamGroupId%7D</con:setting>
  </con:settings>
  <con:parameters>
    <con:parameter required="true">
      <con:name>paramGroupId</con:name>
      <con:style>TEMPLATE</con:style>
      <con:description>parameter group id</con:description>
    </con:parameter>
  </con:parameters>
  <con:method name="GET" id="a05527bc-eb62-4af2-8b41-17ec3f9c3013" method="GET">
    <con:description>show details of a parameter group
show details of a parameter group</con:description>
    <con:settings/>
    <con:parameters>
      <con:parameter>
        <con:name>paramName</con:name>
        <con:style>QUERY</con:style>
        <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" : {
    "clusterSpec" : "8C16G",
    "clusterVersion" : "v5.0",
    "createTime" : 1636698675,
    "dbType" : 1,
    "groupType" : 0,
    "hasDefault" : 1,
    "name" : "default",
    "note" : "default param group",
    "paramGroupId" : "1",
    "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" ],
      "readOnly" : 0,
      "systemVariable" : "log.log_level",
      "type" : 0,
      "unit" : "mb",
      "updateSource" : 0,
      "updateTime" : 1636698675
    } ],
    "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="7453fa8d-d300-4000-b0e9-746618188b15" 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:request>
  </con:method>
  <con:method name="PUT" id="9aef434d-9eca-4c35-b91b-98a91d2c1dc3" method="PUT">
    <con:description>update a parameter group
update a parameter group</con:description>
    <con:settings/>
    <con:parameters/>
    <con:representation type="REQUEST">
      <con:mediaType>application/json</con:mediaType>
      <con:params/>
      <con:sampleContent>{
  "addParams" : [ {
    "category" : "log",
    "defaultValue" : "1024",
    "description" : "binlog size",
    "hasApply" : 1,
    "hasReboot" : 0,
    "instanceType" : "TiDB",
    "name" : "binlog_size",
    "note" : "string",
    "range" : [ "string" ],
    "readOnly" : 0,
    "systemVariable" : "log.binlog_size",
    "type" : 0,
    "unit" : "mb",
    "updateSource" : 0
  } ],
  "clusterSpec" : "8C16G",
  "clusterVersion" : "v5.0",
  "delParams" : [ "1" ],
  "name" : "8C16GV4_default",
  "note" : "default param group",
  "params" : [ {
    "defaultValue" : "1",
    "note" : "binlog cache size",
    "paramId" : "123"
  } ]
}</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" : {
    "paramGroupId" : "1"
  }
}</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="733c3aab-076a-4847-9cfa-1c50d30b9c79" mediaType="application/json">
      <con:settings/>
      <con:endpoint>http://172.16.4.134:4100</con:endpoint>
      <con:request>{
  "addParams" : [ {
    "category" : "log",
    "defaultValue" : "1024",
    "description" : "binlog size",
    "hasApply" : 1,
    "hasReboot" : 0,
    "instanceType" : "TiDB",
    "name" : "binlog_size",
    "note" : "string",
    "range" : [ "string" ],
    "readOnly" : 0,
    "systemVariable" : "log.binlog_size",
    "type" : 0,
    "unit" : "mb",
    "updateSource" : 0
  } ],
  "clusterSpec" : "8C16G",
  "clusterVersion" : "v5.0",
  "delParams" : [ "1" ],
  "name" : "8C16GV4_default",
  "note" : "default param group",
  "params" : [ {
    "defaultValue" : "1",
    "note" : "binlog cache size",
    "paramId" : "123"
  } ]
}</con:request>
      <con:credentials>
        <con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
        <con:authType>No Authorization</con:authType>
      </con:credentials>
      <con:parameters/>
    </con:request>
  </con:method>
  <con:method name="DELETE" id="efdabb5e-a7cf-4fbf-9dff-85bce414a244" method="DELETE">
    <con:description>delete a parameter group
delete a parameter group</con:description>
    <con:settings/>
    <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" : {
    "paramGroupId" : "1"
  }
}</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="b0892907-bf5e-470e-a8d8-7c0a321f3117" 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:request>
  </con:method>
</con:resource>
