123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611 |
- {
- "apiVersion": "1.0",
- "apis": [
- {
- "description": "getInstances",
- "operations": [
- {
- "method": "GET",
- "summary": "根据资源树节点ID和资源类型ID获取主资源列表",
- "notes": "获取主资源列表",
- "nickname": "getInstances",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源树节点ID,可通过/res/client/getResTypes4Json接口获得",
- "name": "treeNodeId",
- "paramType": "path",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源类型ID,可通过/res/client/getResTypes4Json接口获得",
- "name": "resTypeId",
- "paramType": "path",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "主资源列表."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "主资源列表."
- }
- ],
- "path": "/res/client/getInstances/{treeNodeId}/{resTypeId}"
- },
- {
- "description": "getMetrics",
- "operations": [
- {
- "method": "GET",
- "summary": "根据资源类型ID获取该资源类型下的所有性能指标定义",
- "notes": "根据资源类型ID获取该资源类型下的所有性能指标定义",
- "nickname": "getMetrics",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源类型ID,可通过/res/client/getResTypes4Json接口获得",
- "name": "resTypeId",
- "paramType": "path",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "指标列表."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "指标列表."
- }
- ],
- "path": "/res/client/getMetrics/{resTypeId}"
- },
- {
- "description": "getResProtocols",
- "operations": [
- {
- "method": "POST",
- "summary": "获取资源的链接信息",
- "notes": "根据资源ID列表,获取链接信息",
- "nickname": "getResProtocols",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源ID,多个ID用逗号隔开",
- "name": "resIds",
- "paramType": "query",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "资源连接信息结果对象"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "资源连接信息结果对象"
- }
- ],
- "path": "/res/client/getResProtocols"
- },
- {
- "description": "getResTypes4Json",
- "operations": [
- {
- "method": "POST",
- "summary": "获取资源类型列表",
- "notes": "获取资源类型列表",
- "nickname": "getResTypes4Json",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "资源模板列表."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "资源模板列表."
- }
- ],
- "path": "/res/client/getResTypes4Json"
- },
- {
- "description": "getSubResInstances4Json",
- "operations": [
- {
- "method": "GET",
- "summary": "根据资源数ID和子资源类型ID获取子资源列表",
- "notes": "根据资源数ID和子资源类型ID获取子资源列表",
- "nickname": "getSubResInstances4Json",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "主资源树节点Id,可通过/res/client/getSubResTypes/{resTypeId}接口获得",
- "name": "treeNodeId",
- "paramType": "path",
- "type": "string",
- "required": true
- },
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "子资源类型ID,可通过/res/client/getSubResTypes/{resTypeId}接口获得",
- "name": "subResTypeId",
- "paramType": "path",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "子资源列表."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "子资源列表."
- }
- ],
- "path": "/res/client/getSubResInstances4Json/{treeNodeId}/{subResTypeId}"
- },
- {
- "description": "getSubResTypes",
- "operations": [
- {
- "method": "GET",
- "summary": "根据资源类型ID获取子资源类型定义",
- "notes": "根据资源类型的ID获取子资源类型定义",
- "nickname": "getSubResTypes",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源类型ID,可通过/res/client/getResTypes4Json接口获得",
- "name": "resTypeId",
- "paramType": "path",
- "type": "string",
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "子模板列表."
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "子模板列表."
- }
- ],
- "path": "/res/client/getSubResTypes/{resTypeId}"
- },
- {
- "description": "resTypeNumber",
- "operations": [
- {
- "method": "GET",
- "summary": "通过主资源类型ID获取资源数量",
- "notes": "通过主资源类型ID获取资源数量",
- "nickname": "resTypeNumber",
- "produces": [
- "application/json"
- ],
- "consumes": [
- "application/json"
- ],
- "parameters": [
- {
- "allowMultiple": false,
- "defaultValue": "",
- "description": "资源类型ID,可通过/res/client/getResTypes4Json接口获得,填写“ALL”获取所以资源数量总和",
- "name": "resTypeIds",
- "paramType": "query",
- "items": {
- "type": "string"
- },
- "type": "array",
- "uniqueItems": false,
- "required": true
- }
- ],
- "responseMessages": [
- {
- "code": 200,
- "message": null,
- "responseModel": "资源数量"
- },
- {
- "code": 500,
- "message": "请求出错,返回JSON: {message:\"错误信息\"}"
- },
- {
- "code": 502,
- "message": "缺少ssoToken或ssoToken已过期"
- }
- ],
- "deprecated": "false",
- "type": "资源数量"
- }
- ],
- "path": "/res/client/resTypeNumber"
- }
- ],
- "basePath": "/adapter",
- "consumes": [
- "application/json"
- ],
- "models": {
- "主资源列表.": {
- "description": "",
- "id": "主资源列表.",
- "properties": {
- "resInstances": {
- "description": "ResTypeVO对象集合",
- "items": {
- "type": "ResTypeVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "ResTypeVO": {
- "description": "",
- "id": "ResTypeVO",
- "properties": {
- "name": {
- "description": "资源类型名称",
- "required": false,
- "type": "string"
- },
- "id": {
- "description": "资源类型ID",
- "required": false,
- "type": "string"
- },
- "resInstList": {
- "description": "主资源List(其中对象为ResInstanceVO)",
- "items": {
- "type": "ResInstanceVO"
- },
- "required": false,
- "type": "array"
- },
- "treeNodeId": {
- "description": "Tree Node Id 可通过/res/client/getResTypes4Json接口获得",
- "required": false,
- "type": "string"
- },
- "parentId": {
- "description": "主资源类型ID",
- "required": false,
- "type": "string"
- },
- "subResTypeList": {
- "description": "子资源类型List(其中对象为ResTypeVO)",
- "items": {
- "type": "ResTypeVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "ResInstanceVO": {
- "description": "",
- "id": "ResInstanceVO",
- "properties": {
- "name": {
- "description": "资源名称",
- "required": false,
- "type": "string"
- },
- "main": {
- "description": "是否主资源.",
- "required": false,
- "type": "boolean"
- },
- "ip": {
- "description": "资源IP.",
- "required": false,
- "type": "string"
- },
- "instId": {
- "description": "主资源ID",
- "required": false,
- "type": "string"
- },
- "subInstId": {
- "description": "子资源ID",
- "required": false,
- "type": "string"
- },
- "resTypeId": {
- "description": "资源类型ID.",
- "required": false,
- "type": "string"
- },
- "subResInstVOList": {
- "description": "子资源List.",
- "items": {
- "type": "ResInstanceVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "指标列表.": {
- "description": "",
- "id": "指标列表.",
- "properties": {
- "metricList": {
- "description": "MetricVO对象集合",
- "items": {
- "type": "MetricVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "MetricVO": {
- "description": "",
- "id": "MetricVO",
- "properties": {
- "metricId": {
- "description": "指标ID",
- "required": false,
- "type": "string"
- },
- "metricName": {
- "description": "指标名称",
- "required": false,
- "type": "string"
- },
- "metricUnit": {
- "description": "指标单位",
- "required": false,
- "type": "string"
- },
- "metricType": {
- "description": "指标类型",
- "required": false,
- "type": "string"
- }
- }
- },
- "资源连接信息": {
- "description": "",
- "id": "资源连接信息",
- "properties": {
- "connectInfo": {
- "description": "链接信息集合",
- "items": {
- "type": "链接信息"
- },
- "required": false,
- "type": "array"
- },
- "resId": {
- "required": false,
- "type": "string"
- }
- }
- },
- "资源连接信息结果对象": {
- "description": "",
- "id": "资源连接信息结果对象",
- "properties": {
- "resConnections": {
- "description": "资源链接信息集合",
- "items": {
- "type": "资源连接信息"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "链接信息": {
- "description": "",
- "id": "链接信息",
- "properties": {
- "propId": {
- "required": false,
- "type": "string"
- },
- "propValue": {
- "required": false,
- "type": "string"
- }
- }
- },
- "资源模板列表.": {
- "description": "",
- "id": "资源模板列表.",
- "properties": {
- "resTypes": {
- "description": "ResTypeVO对象集合",
- "items": {
- "type": "ResTypeVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "子模板列表.": {
- "description": "",
- "id": "子模板列表.",
- "properties": {
- "subResTypes": {
- "description": "ResTypeVO对象集合",
- "items": {
- "type": "ResTypeVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "子资源列表.": {
- "description": "",
- "id": "子资源列表.",
- "properties": {
- "subResInstances": {
- "description": "ResInstanceVO对象集合",
- "items": {
- "type": "ResInstanceVO"
- },
- "required": false,
- "type": "array"
- }
- }
- },
- "ResNumPojo": {
- "description": "",
- "id": "ResNumPojo",
- "properties": {
- "resTypeId": {
- "required": false,
- "type": "string"
- },
- "resTypeName": {
- "required": false,
- "type": "string"
- },
- "num": {
- "required": false,
- "format": "int32",
- "type": "integer"
- }
- }
- },
- "资源数量": {
- "description": "",
- "id": "资源数量",
- "properties": {
- "resNumPojo": {
- "description": "resNumPojo对象集合",
- "items": {
- "type": "ResNumPojo"
- },
- "required": false,
- "type": "array"
- }
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "resourcePath": "/res/client",
- "swaggerVersion": "1.2"
- }
|