login.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. {
  2. "apiVersion": "1.0",
  3. "apis": [
  4. {
  5. "description": "login",
  6. "operations": [
  7. {
  8. "method": "GET",
  9. "summary": "登录BMC",
  10. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  11. "nickname": "login",
  12. "produces": [
  13. "application/json"
  14. ],
  15. "consumes": [
  16. "application/json"
  17. ],
  18. "parameters": [
  19. {
  20. "allowMultiple": false,
  21. "defaultValue": "",
  22. "description": "用户名",
  23. "name": "username",
  24. "paramType": "query",
  25. "type": "string",
  26. "required": true
  27. },
  28. {
  29. "allowMultiple": false,
  30. "defaultValue": "",
  31. "description": "密码",
  32. "name": "password",
  33. "paramType": "query",
  34. "type": "string",
  35. "required": true
  36. },
  37. {
  38. "allowMultiple": false,
  39. "defaultValue": "RIIL",
  40. "description": "调用接口的客户端,默认为RIIL",
  41. "name": "_openCLIENT",
  42. "paramType": "query",
  43. "type": "string",
  44. "required": true
  45. }
  46. ],
  47. "responseMessages": [
  48. {
  49. "code": 200,
  50. "message": "登录成功",
  51. "responseModel": "sso登录成功返回消息"
  52. },
  53. {
  54. "code": 500,
  55. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  56. },
  57. {
  58. "code": 502,
  59. "message": "缺少ssoToken或ssoToken已过期"
  60. }
  61. ],
  62. "deprecated": "false",
  63. "type": "sso登录成功返回消息"
  64. },
  65. {
  66. "method": "GET",
  67. "summary": "登录BMC",
  68. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  69. "nickname": "login",
  70. "produces": [
  71. "application/json"
  72. ],
  73. "consumes": [
  74. "application/json"
  75. ],
  76. "parameters": [
  77. {
  78. "allowMultiple": false,
  79. "defaultValue": "",
  80. "description": "用户名",
  81. "name": "username",
  82. "paramType": "query",
  83. "type": "string",
  84. "required": true
  85. },
  86. {
  87. "allowMultiple": false,
  88. "defaultValue": "",
  89. "description": "密码",
  90. "name": "password",
  91. "paramType": "query",
  92. "type": "string",
  93. "required": true
  94. },
  95. {
  96. "allowMultiple": false,
  97. "defaultValue": "RIIL",
  98. "description": "调用接口的客户端,默认为RIIL",
  99. "name": "_openCLIENT",
  100. "paramType": "query",
  101. "type": "string",
  102. "required": true
  103. }
  104. ],
  105. "responseMessages": [
  106. {
  107. "code": 200,
  108. "message": "登录成功",
  109. "responseModel": "sso登录成功返回消息"
  110. }
  111. ],
  112. "deprecated": "false",
  113. "type": "sso登录成功返回消息"
  114. },
  115. {
  116. "method": "GET",
  117. "summary": "登录BMC",
  118. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  119. "nickname": "login",
  120. "produces": [
  121. "application/json"
  122. ],
  123. "consumes": [
  124. "application/json"
  125. ],
  126. "parameters": [
  127. {
  128. "allowMultiple": false,
  129. "defaultValue": "",
  130. "description": "用户名",
  131. "name": "username",
  132. "paramType": "query",
  133. "type": "string",
  134. "required": true
  135. },
  136. {
  137. "allowMultiple": false,
  138. "defaultValue": "",
  139. "description": "密码",
  140. "name": "password",
  141. "paramType": "query",
  142. "type": "string",
  143. "required": true
  144. },
  145. {
  146. "allowMultiple": false,
  147. "defaultValue": "RIIL",
  148. "description": "调用接口的客户端,默认为RIIL",
  149. "name": "_openCLIENT",
  150. "paramType": "query",
  151. "type": "string",
  152. "required": true
  153. }
  154. ],
  155. "responseMessages": [
  156. {
  157. "code": 200,
  158. "message": "登录成功",
  159. "responseModel": "sso登录成功返回消息"
  160. },
  161. {
  162. "code": 500,
  163. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  164. },
  165. {
  166. "code": 502,
  167. "message": "缺少ssoToken或ssoToken已过期"
  168. }
  169. ],
  170. "deprecated": "false",
  171. "type": "sso登录成功返回消息"
  172. },
  173. {
  174. "method": "GET",
  175. "summary": "登录BMC",
  176. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  177. "nickname": "login",
  178. "produces": [
  179. "application/json"
  180. ],
  181. "consumes": [
  182. "application/json"
  183. ],
  184. "parameters": [
  185. {
  186. "allowMultiple": false,
  187. "defaultValue": "",
  188. "description": "用户名",
  189. "name": "username",
  190. "paramType": "query",
  191. "type": "string",
  192. "required": true
  193. },
  194. {
  195. "allowMultiple": false,
  196. "defaultValue": "",
  197. "description": "密码",
  198. "name": "password",
  199. "paramType": "query",
  200. "type": "string",
  201. "required": true
  202. },
  203. {
  204. "allowMultiple": false,
  205. "defaultValue": "RIIL",
  206. "description": "调用接口的客户端,默认为RIIL",
  207. "name": "_openCLIENT",
  208. "paramType": "query",
  209. "type": "string",
  210. "required": true
  211. }
  212. ],
  213. "responseMessages": [
  214. {
  215. "code": 200,
  216. "message": "登录成功",
  217. "responseModel": "sso登录成功返回消息"
  218. }
  219. ],
  220. "deprecated": "false",
  221. "type": "sso登录成功返回消息"
  222. },
  223. {
  224. "method": "GET",
  225. "summary": "登录BMC",
  226. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  227. "nickname": "login",
  228. "produces": [
  229. "application/json"
  230. ],
  231. "consumes": [
  232. "application/json"
  233. ],
  234. "parameters": [
  235. {
  236. "allowMultiple": false,
  237. "defaultValue": "",
  238. "description": "用户名",
  239. "name": "username",
  240. "paramType": "query",
  241. "type": "string",
  242. "required": true
  243. },
  244. {
  245. "allowMultiple": false,
  246. "defaultValue": "",
  247. "description": "密码",
  248. "name": "password",
  249. "paramType": "query",
  250. "type": "string",
  251. "required": true
  252. },
  253. {
  254. "allowMultiple": false,
  255. "defaultValue": "RIIL",
  256. "description": "调用接口的客户端,默认为RIIL",
  257. "name": "_openCLIENT",
  258. "paramType": "query",
  259. "type": "string",
  260. "required": true
  261. }
  262. ],
  263. "responseMessages": [
  264. {
  265. "code": 200,
  266. "message": "登录成功",
  267. "responseModel": "sso登录成功返回消息"
  268. }
  269. ],
  270. "deprecated": "false",
  271. "type": "sso登录成功返回消息"
  272. },
  273. {
  274. "method": "GET",
  275. "summary": "登录BMC",
  276. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  277. "nickname": "login",
  278. "produces": [
  279. "application/json"
  280. ],
  281. "consumes": [
  282. "application/json"
  283. ],
  284. "parameters": [
  285. {
  286. "allowMultiple": false,
  287. "defaultValue": "",
  288. "description": "用户名",
  289. "name": "username",
  290. "paramType": "query",
  291. "type": "string",
  292. "required": true
  293. },
  294. {
  295. "allowMultiple": false,
  296. "defaultValue": "",
  297. "description": "密码",
  298. "name": "password",
  299. "paramType": "query",
  300. "type": "string",
  301. "required": true
  302. },
  303. {
  304. "allowMultiple": false,
  305. "defaultValue": "RIIL",
  306. "description": "调用接口的客户端,默认为RIIL",
  307. "name": "_openCLIENT",
  308. "paramType": "query",
  309. "type": "string",
  310. "required": true
  311. }
  312. ],
  313. "responseMessages": [
  314. {
  315. "code": 200,
  316. "message": "登录成功",
  317. "responseModel": "sso登录成功返回消息"
  318. }
  319. ],
  320. "deprecated": "false",
  321. "type": "sso登录成功返回消息"
  322. },
  323. {
  324. "method": "GET",
  325. "summary": "登录BMC",
  326. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  327. "nickname": "login",
  328. "produces": [
  329. "application/json"
  330. ],
  331. "consumes": [
  332. "application/json"
  333. ],
  334. "parameters": [
  335. {
  336. "allowMultiple": false,
  337. "defaultValue": "",
  338. "description": "用户名",
  339. "name": "username",
  340. "paramType": "query",
  341. "type": "string",
  342. "required": true
  343. },
  344. {
  345. "allowMultiple": false,
  346. "defaultValue": "",
  347. "description": "密码",
  348. "name": "password",
  349. "paramType": "query",
  350. "type": "string",
  351. "required": true
  352. },
  353. {
  354. "allowMultiple": false,
  355. "defaultValue": "RIIL",
  356. "description": "调用接口的客户端,默认为RIIL",
  357. "name": "_openCLIENT",
  358. "paramType": "query",
  359. "type": "string",
  360. "required": true
  361. }
  362. ],
  363. "responseMessages": [
  364. {
  365. "code": 200,
  366. "message": "登录成功",
  367. "responseModel": "sso登录成功返回消息"
  368. }
  369. ],
  370. "deprecated": "false",
  371. "type": "sso登录成功返回消息"
  372. },
  373. {
  374. "method": "GET",
  375. "summary": "登录BMC",
  376. "notes": "登录成功,在消息头的Set-Cookie中可以获取SSOToken,请求其他接口时,需在Cookie中携带SSOToken,才可通过系统认证,获取数据。SSOToken的有效时长为30分钟。",
  377. "nickname": "login",
  378. "produces": [
  379. "application/json"
  380. ],
  381. "consumes": [
  382. "application/json"
  383. ],
  384. "parameters": [
  385. {
  386. "allowMultiple": false,
  387. "defaultValue": "",
  388. "description": "用户名",
  389. "name": "username",
  390. "paramType": "query",
  391. "type": "string",
  392. "required": true
  393. },
  394. {
  395. "allowMultiple": false,
  396. "defaultValue": "",
  397. "description": "密码",
  398. "name": "password",
  399. "paramType": "query",
  400. "type": "string",
  401. "required": true
  402. },
  403. {
  404. "allowMultiple": false,
  405. "defaultValue": "RIIL",
  406. "description": "调用接口的客户端,默认为RIIL",
  407. "name": "_openCLIENT",
  408. "paramType": "query",
  409. "type": "string",
  410. "required": true
  411. }
  412. ],
  413. "responseMessages": [
  414. {
  415. "code": 200,
  416. "message": "登录成功",
  417. "responseModel": "sso登录成功返回消息"
  418. }
  419. ],
  420. "deprecated": "false",
  421. "type": "sso登录成功返回消息"
  422. }
  423. ],
  424. "path": "/login"
  425. }
  426. ],
  427. "basePath": "/adapter",
  428. "consumes": [
  429. "application/json"
  430. ],
  431. "models": {
  432. "Void": {
  433. "description": "",
  434. "id": "Void",
  435. "properties": {}
  436. },
  437. "domain": {
  438. "description": "",
  439. "id": "domain",
  440. "properties": {
  441. "domainId": {
  442. "description": "domain",
  443. "required": false,
  444. "type": "string"
  445. },
  446. "domainName": {
  447. "description": "domainName",
  448. "required": false,
  449. "type": "string"
  450. }
  451. }
  452. },
  453. "sso登录成功返回消息": {
  454. "description": "",
  455. "id": "sso登录成功返回消息",
  456. "properties": {
  457. "success": {
  458. "description": "登录结果标志",
  459. "required": false,
  460. "type": "boolean"
  461. },
  462. "domainList": {
  463. "description": "用户信息集合",
  464. "items": {
  465. "type": "domain"
  466. },
  467. "required": false,
  468. "type": "array"
  469. },
  470. "errMsg": {
  471. "description": "登录失败时的错误信息",
  472. "required": false,
  473. "type": "string"
  474. }
  475. }
  476. }
  477. },
  478. "produces": [
  479. "application/json"
  480. ],
  481. "resourcePath": "/login",
  482. "swaggerVersion": "1.2"
  483. }