获取CMDB实例详情
<h5>简要描述</h5>
<ul>
<li>获取CMDB实例详情</li>
<li>GfzqGetCmdbInstanceInfo
<h5>请求URL</h5></li>
<li><code>http://192.168.2.107:8080/ops/script/cmdb/getInfo</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">outsideId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>实例ID</td>
</tr>
</tbody>
</table>
<h5>调用示例</h5>
<p>outsideId是取列表中返回数据中的instanceId</p>
<pre><code>{"outsideId":""}</code></pre>
<h5>返回示例</h5>
<pre><code>{
"result": {
"is_outer": true,
"object_id": "APP",
"outside_id": "xxxxx",
"properties": {
"APP_INSTANCE": [],
"APP_INSTANCE_LATEST_OPERATION": [],
"BASE_SERVICE": [],
"DB_CLUSTER": [],
"DEPLOY_NOTIFY": [],
"ELASTICSEARCH_SERVICE": [],
"F5_VS": [],
"HOST": [],
"KAFKA_SERVICE": [],
"MONGODB_SERVICE": [],
"MYSQL": [],
"MYSQL_SERVICE": [],
"MYSQL_SERVICE_APP": [],
"NGINX_SERVICE": [],
"ORACLE_SERVICE": [],
"ORACLE_SERVICE_APP": [],
"RABBITMQ_SERVICE": [],
"REDIS_SERVICE": [],
"REDIS_SERVICE_APP": [],
"SQLPKG": [],
"TOMCAT_SERVICE": [],
"WEBLOGIC_SERVICE": [],
"ZOOPKEEPER_SERVICE": [],
"_ARTIFACT": [],
"_PIPELINE_PROJECT": [],
"_RESOURCE_GROUP": [],
"_SERVICENODE": [
{
"_object_id": "_SERVICENODE",
"_object_version": 54,
"_pre_ts": 1651022030,
"_ts": 1651040629,
"_version": 56,
"agentIp": "10.2.148.182",
"backend": [],
"backends": [],
"configInfo": [],
"creator": "defaultUser",
"ctime": "2022-04-20 09:03:50",
"deleteAuthorizers": [],
"frontend": [],
"frontends": [],
"hosts": [],
"instanceId": "5dd0b90ffb96a",
"ip": "[::]",
"modifier": "defaultUser",
"mtime": "2022-04-27 14:23:49",
"name": "[::]|8102|c1e09058-e031-4687-b225-eeca3143cd95",
"org": 3051,
"port": 8102,
"provider": [
{
"cmd": "./bin/agent_admin",
"cwd": "/usr/local/easyops/agent_admin",
"detailId": "service_process:3051@c1e09058-e031-4687-b225-eeca3143cd95_6ba3e1c8d77dc38bdd2d0d5944861443",
"listenAddr": [
"[::]:8102"
],
"pname": "agent_admin"
}
],
"readAuthorizers": [],
"status": "alive",
"type": "agent_admin",
"updateAuthorizers": [],
"uuid": "c1e09058-e031-4687-b225-eeca3143cd95"
},
{
"_object_id": "_SERVICENODE",
"_object_version": 54,
"_pre_ts": 1651025231,
"_ts": 1651026130,
"_version": 10,
"agentIp": "10.2.148.181",
"backend": [],
"backends": [],
"configInfo": [],
"creator": "defaultUser",
"ctime": "2022-04-21 07:31:44",
"deleteAuthorizers": [],
"frontend": [],
"frontends": [],
"hosts": [],
"instanceId": "5dd1e656f967e",
"ip": "[::]",
"modifier": "defaultUser",
"mtime": "2022-04-27 10:22:10",
"name": "[::]|8102|7ce2267c-f3a5-48c0-914f-2d0afc5aabf2",
"org": 3051,
"port": 8102,
"provider": [
{
"cmd": "./bin/agent_admin",
"cwd": "/usr/local/easyops/agent_admin",
"detailId": "service_process:3051@7ce2267c-f3a5-48c0-914f-2d0afc5aabf2_6ba3e1c8d77dc38bdd2d0d5944861443",
"listenAddr": [
"[::]:8102"
],
"pname": "agent_admin"
}
],
"readAuthorizers": [],
"status": "alive",
"type": "agent_admin",
"updateAuthorizers": [],
"uuid": "7ce2267c-f3a5-48c0-914f-2d0afc5aabf2"
},
{
"_object_id": "_SERVICENODE",
"_object_version": 54,
"_pre_ts": 1650811236,
"_ts": 1650903829,
"_version": 6,
"agentIp": "10.2.148.180",
"backend": [],
"backends": [],
"configInfo": [],
"creator": "defaultUser",
"ctime": "2022-04-21 22:25:35",
"deleteAuthorizers": [],
"frontend": [],
"frontends": [],
"hosts": [],
"instanceId": "5dd2ae21bc178",
"ip": "[::]",
"modifier": "defaultUser",
"mtime": "2022-04-26 00:23:49",
"name": "[::]|8102|00831d60-2042-4e99-9fdf-8046c844cfa4",
"org": 3051,
"port": 8102,
"provider": [
{
"cmd": "./bin/agent_admin",
"cwd": "/usr/local/easyops/agent_admin",
"detailId": "service_process:3051@00831d60-2042-4e99-9fdf-8046c844cfa4_6ba3e1c8d77dc38bdd2d0d5944861443",
"listenAddr": [
"[::]:8102"
],
"pname": "agent_admin"
}
],
"readAuthorizers": [],
"status": "alive",
"type": "agent_admin",
"updateAuthorizers": [],
"uuid": "00831d60-2042-4e99-9fdf-8046c844cfa4"
}
],
"__access_app_APP": [],
"_access_app": [],
"_object_id": "APP",
"_object_version": 120,
"_pre_ts": 1639014388,
"_ts": 1640064962,
"_version": 4,
"accssodeHost": [],
"appId": "5d054ed11d657",
"app_port": [
"8102"
],
"businesses": [
{
"_object_id": "BUSINESS",
"_object_version": 348,
"_pre_ts": 1632812939,
"_ts": 1639560019,
"_version": 3,
"appname": "XX7",
"businessId": "5ccb99ea48c3d",
"class": "系统",
"creator": "easyops",
"ctime": "2021-09-24 16:34:46",
"flag": "实体系统",
"former_name": [],
"importance": "T1",
"important_tag": [
"无"
],
"instanceId": "5ccb99ea48c3d",
"modifier": "easyops",
"mtime": "2021-12-15 17:20:19",
"name": "基础中台",
"org": 3051,
"rank": "一级系统",
"sn": "12345.12311",
"status": "已上线",
"trade_calendar": {
"flag": "不涉及",
"type": "手工设置(前台)"
}
}
],
"clusters": [
{
"_deployType": "default",
"_object_id": "CLUSTER",
"_object_version": 28,
"_ts": 1632709387,
"_version": 1,
"clusterId": "5ccf0c70aee68",
"creator": "easyops",
"ctime": "2021-09-27 10:23:07",
"instanceId": "5ccf0c70aee68",
"name": "agent-admin",
"org": 3051,
"type": "0"
}
],
"configRelease": [],
"configure_file": [],
"creator": "easyops",
"ctime": "2021-11-09 14:07:36",
"deploy_authorizers": [],
"developer": [],
"featureEnabled": "true",
"featurePriority": 500,
"featureRule": [
{
"key": "port",
"label": "监听端口",
"method": "eq",
"value": "8102"
}
],
"hasConfigNamespace": [],
"host": [],
"host2": [],
"instanceId": "5d054ed11d657",
"modifier": "easyops",
"mtime": "2021-12-21 13:36:02",
"name": "cmdb_agent-admin",
"org": 3051,
"owner": [],
"relatedConfigNamespace": [],
"services": [],
"tester": []
},
"state": 0
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">errorCode</td>
<td style="text-align: left;">int</td>
<td>状态码</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>