123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719 |
- {
- "apiVersion": "1.0",
- "apis": [
- {
- "description": "getResInstanceById",
- "operations": [
- {
- "method": "POST",
- "summary": "通过主资源ID获取单个主资源以及包含的所有子资源.",
- "notes": "通过主资源ID获取单个主资源以及包含的所有子资源.",
- "nickname": "getResInstanceById",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "主资源ID(可通过/res/getResInstanceList接口获得)",
- "name": "resId",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "ResInstPojo"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "ResInstPojo"
- }
- ],
- "path": "/res/getResInstanceById"
- },
- {
- "description": "getResInstanceList",
- "operations": [
- {
- "method": "POST",
- "summary": "获取所有资源及子资源信息",
- "notes": "获取所有资源及子资源信息",
- "nickname": "getResInstanceList",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "资源类型ID(可通过/res/client/getResTypes4Json接口获得)",
- "name": "resType",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "资源列表数据"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "资源列表数据"
- }
- ],
- "path": "/res/getResInstanceList"
- },
- {
- "description": "getResMetricList",
- "operations": [
- {
- "method": "POST",
- "summary": "获取主资源指标详细信息",
- "notes": "获取主资源指标详细信息",
- "nickname": "getResMetricList",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "主资源ID(可通过/res/getResInstanceList接口获得)",
- "name": "resId",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "description": "指标类型,默认取所有类型(可用性指标:AVAIL 配置指标:CONF 信息指标:INFO 性能指标:PERF)",
- "name": "metricType",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "主资源指标详细信息."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "主资源指标详细信息."
- }
- ],
- "path": "/res/getResMetricList"
- },
- {
- "description": "getSubResMetricList",
- "operations": [
- {
- "method": "POST",
- "summary": "获取子资源指标详细信息",
- "notes": "获取子资源指标详细信息",
- "nickname": "getSubResMetricList",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "子资源ID(可通过/res/getResInstanceList接口获得)",
- "name": "subResId",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "description": "指标类型,默认取所有类型(可用性指标:AVAIL 配置指标:CONF 信息指标:INFO 性能指标:PERF)",
- "name": "metricType",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "主资源指标详细信息."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "主资源指标详细信息."
- }
- ],
- "path": "/res/getSubResMetricList"
- },
- {
- "description": "getResList",
- "operations": [
- {
- "method": "GET",
- "summary": "获取主资源列表",
- "notes": "获取主资源列表",
- "nickname": "getResList",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "description": "资源树节点ID(00:代表所有资源)",
- "name": "treeNodeId",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "description": "域ID,可通过/login接口获得",
- "name": "domainId",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- },
- {
- "allowMultiple": false,
- "description": "可用性状态,默认为全部 1:可用,-1:不可用,-2:未知,all:全部",
- "name": "state",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- },
- {
- "allowMultiple": false,
- "description": "页数",
- "name": "pageIndex",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- },
- {
- "allowMultiple": false,
- "description": "每页条数,默认值为20",
- "name": "pageSize",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- },
- {
- "allowMultiple": false,
- "description": "排序字段,只可按照一个字段排序,sortColumn和sortType同时不为空才生效",
- "name": "sortColumn",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- },
- {
- "allowMultiple": false,
- "description": "排序方式(ASC/DESC),sortColumn和sortType同时不为空才生效",
- "name": "sortType",
- "paramAccess": "",
- "paramType": "query",
- "type": "string",
- "required": false
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "主资源列表数据"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "主资源列表数据"
- }
- ],
- "path": "/res/list"
- }
- ],
- "basePath": "/adapter",
- "consumes": [
- "application/json"
- ],
- "models": {
- "ResVO": {
- "description": "",
- "id": "ResVO",
- "properties": {
- "state": {
- "description": "可用状态",
- "required": false,
- "type": "string"
- },
- "name": {
- "description": "资源名称",
- "required": false,
- "type": "string"
- },
- "location": {
- "description": "物理位置",
- "required": false,
- "type": "string"
- },
- "type": {
- "description": "资源类型",
- "required": false,
- "type": "string"
- },
- "desc": {
- "description": "描述",
- "required": false,
- "type": "string"
- },
- "policyName": {
- "description": "策略名称",
- "required": false,
- "type": "string"
- },
- "usability": {
- "description": "可用率",
- "required": false,
- "type": "string"
- },
- "sysoid": {
- "description": "系统OID",
- "required": false,
- "type": "string"
- },
- "venderName": {
- "description": "厂商名称",
- "required": false,
- "type": "string"
- },
- "nameDisplay": {
- "description": "资源展示名称",
- "required": false,
- "type": "string"
- },
- "contact": {
- "description": "联系人ID",
- "required": false,
- "type": "string"
- },
- "modelNumber": {
- "description": "设备型号",
- "required": false,
- "type": "string"
- },
- "ip": {
- "description": "资源IP",
- "required": false,
- "type": "string"
- },
- "treeNodeId": {
- "description": "tree节点ID",
- "required": false,
- "type": "string"
- },
- "resTypeId": {
- "description": "资源类型ID",
- "required": false,
- "type": "string"
- },
- "resId": {
- "description": "资源ID",
- "required": false,
- "type": "string"
- },
- "series": {
- "description": "系列",
- "required": false,
- "type": "string"
- },
- "mac": {
- "description": "mac地址",
- "required": false,
- "type": "string"
- },
- "locationName": {
- "description": "物理位置",
- "required": false,
- "type": "string"
- },
- "contactName": {
- "description": "联系人名称",
- "required": false,
- "type": "string"
- },
- "memRate": {
- "description": "内存利用率",
- "required": false,
- "type": "string"
- },
- "cpuRate": {
- "description": "CPU利用率",
- "required": false,
- "type": "string"
- },
- "busy": {
- "description": "繁忙度",
- "required": false,
- "type": "string"
- },
- "sysInfo": {
- "description": "系统信息",
- "required": false,
- "type": "string"
- },
- "venderId": {
- "description": "厂商ID",
- "required": false,
- "type": "string"
- }
- }
- },
- "主资源列表数据": {
- "description": "",
- "id": "主资源列表数据",
- "properties": {
- "resList": {
- "description": "ResVO 对象集合",
- "items": {
- "type": "ResVO"
- },
- "required": false,
- "type": "array"
- },
- "totalPage": {
- "description": "总页数(分页显示时使用)",
- "required": false,
- "format": "int32",
- "type": "integer"
- },
- "pageIndex": {
- "description": "当前显示页(分页显示时使用)",
- "required": false,
- "format": "int32",
- "type": "integer"
- }
- }
- },
- "获取资源列表的查询对象": {
- "description": "",
- "id": "获取资源列表的查询对象",
- "properties": {
- "treeNodeId": {
- "description": "资源树节点ID(00:代表所有资源)",
- "required": true,
- "type": "string"
- },
- "domainId": {
- "description": "域ID,可通过/login接口获得",
- "required": false,
- "type": "string"
- },
- "state": {
- "description": "可用性状态,默认为全部 1:可用,-1:不可用,-2:未知,all:全部",
- "required": false,
- "type": "string"
- },
- "pageIndex": {
- "description": "页数",
- "required": false,
- "type": "string"
- },
- "pageSize": {
- "description": "每页条数,默认值为20",
- "required": false,
- "type": "string"
- },
- "sortColumn": {
- "description": "排序字段,只可按照一个字段排序,sortColumn和sortType同时不为空才生效",
- "required": false,
- "type": "string"
- },
- "sortType": {
- "description": "排序方式(ASC/DESC),sortColumn和sortType同时不为空才生效",
- "required": false,
- "type": "string"
- }
- }
- },
- "资源列表数据": {
- "description": "",
- "id": "资源列表数据",
- "properties": {
- "resInstList": {
- "description": "resInstPojo 对象集合",
- "items": {
- "type": "ResInstPojo"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "SubResPojo": {
- "description": "",
- "id": "SubResPojo",
- "properties": {
- "subName": {
- "description": "子资源名称",
- "required": false,
- "type": "string"
- },
- "resId": {
- "description": "主资源ID",
- "required": false,
- "type": "string"
- },
- "subResId": {
- "description": "子资源ID",
- "required": false,
- "type": "string"
- },
- "subResType": {
- "description": "子资源类型",
- "required": false,
- "type": "string"
- },
- "manage": {
- "description": "是否加入了监控(ture/false)",
- "required": false,
- "type": "boolean"
- }
- }
- },
- "通过资源类型获取资源列表的查询对象": {
- "description": "",
- "id": "通过资源类型获取资源列表的查询对象",
- "properties": {
- "resType": {
- "description": "资源类型ID(可通过/res/client/getResTypes4Json接口获得)",
- "required": false,
- "type": "string"
- }
- }
- },
- "ResInstPojo": {
- "description": "",
- "id": "ResInstPojo",
- "properties": {
- "resName": {
- "description": "资源名称",
- "required": false,
- "type": "string"
- },
- "resType": {
- "description": "资源类型",
- "required": false,
- "type": "string"
- },
- "resId": {
- "description": "资源ID",
- "required": false,
- "type": "string"
- },
- "resIp": {
- "description": "资源IP",
- "required": false,
- "type": "string"
- },
- "subResList": {
- "description": "子资源对象集合",
- "items": {
- "type": "SubResPojo"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "通过主资源ID获取单个主资源以及包含的所有子资源的查询对象": {
- "description": "",
- "id": "通过主资源ID获取单个主资源以及包含的所有子资源的查询对象",
- "properties": {
- "resId": {
- "description": "主资源ID(可通过/res/getResInstanceList接口获得)",
- "required": true,
- "type": "string"
- }
- }
- },
- "获取主资源指标详细信息的查询对象": {
- "description": "",
- "id": "获取主资源指标详细信息的查询对象",
- "properties": {
- "resId": {
- "description": "主资源ID(可通过/res/getResInstanceList接口获得)",
- "required": true,
- "type": "string"
- },
- "metricType": {
- "description": "指标类型,默认取所有类型(可用性指标:AVAIL 配置指标:CONF 信息指标:INFO 性能指标:PERF)",
- "required": false,
- "type": "string"
- }
- }
- },
- "ResMetricPojo": {
- "description": "",
- "id": "ResMetricPojo",
- "properties": {
- "metricValue": {
- "description": "值",
- "required": false,
- "type": "string"
- },
- "metricId": {
- "description": "指标Id",
- "required": false,
- "type": "string"
- },
- "metricName": {
- "description": "指标名称",
- "required": false,
- "type": "string"
- },
- "metricUnit": {
- "description": "指标单位",
- "required": false,
- "type": "string"
- },
- "resId": {
- "description": "主资源ID",
- "required": false,
- "type": "string"
- },
- "metricStatus": {
- "description": "指标状态",
- "required": false,
- "type": "string"
- },
- "metricStatus4Display": {
- "description": "指标状态的显示",
- "required": false,
- "type": "string"
- },
- "subResId": {
- "description": "子资源ID",
- "required": false,
- "type": "string"
- },
- "metricType": {
- "description": "指标类型",
- "required": false,
- "type": "string"
- },
- "gatherTime": {
- "required": false,
- "format": "date-time",
- "type": "string"
- }
- }
- },
- "主资源指标详细信息.": {
- "description": "",
- "id": "主资源指标详细信息.",
- "properties": {
- "resMetricList": {
- "description": "ResMetricPojo对象集合",
- "items": {
- "type": "ResMetricPojo"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "GetSubResMetricListPojo": {
- "description": "",
- "id": "GetSubResMetricListPojo",
- "properties": {
- "subResId": {
- "description": "子资源ID(可通过/res/getResInstanceList接口获得)",
- "required": true,
- "type": "string"
- },
- "metricType": {
- "description": "指标类型,默认取所有类型(可用性指标:AVAIL 配置指标:CONF 信息指标:INFO 性能指标:PERF)",
- "required": false,
- "type": "string"
- }
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "resourcePath": "/res",
- "swaggerVersion": "1.2"
- }
|