MEF.postman_collection.json
{ "info": { "_postman_id": "c41bc34c-dec8-4270-b3a4-e9a53b36c705", "name": "MEF", "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" }, "item": [ { "name": "节点管理", "item": [ { "name": "version", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": { "token": "" } }, "method": "GET", "header": [ { "key": "Cookie", "value": "__Host-SessionID=8paDP6XDsanuLfe6U09lfbTn4OKP5AuR2dClMp6XshY.1; Path=/; Domain=51.38.66.37; Secure; HttpOnly; Expires=Mon, 30 Jan 2023 03:15:17 GMT;", "type": "text" }, { "key": "X-CSRF-Token", "value": "_K38de9Qja4e_JPnXjGInYkCn7Prv8GsfpEXdcTd5o4", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": "https://51.38.66.37:30000/edgemanager/v1/version" }, "response": [] }, { "name": "创建节点", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"nodeName\":\"test7\",\r\n \"uniqueName\":\"test7\",\r\n \"description\":\"\"\r\n}\r\n" }, "url": "http://51.38.66.37:30009/edgemanager/v1/node/" }, "response": [] }, { "name": "获取节点状态统计", "request": { "method": "GET", "header": [], "url": "https://51.38.66.37:30000/edgemanager/v1/node/stats" }, "response": [] }, { "name": "节点详情", "request": { "method": "GET", "header": [], "url": { "raw": "https://51.38.66.37:30000/edgemanager/v1/node?id=1", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "node" ], "query": [ { "key": "id", "value": "1" } ] } }, "response": [] }, { "name": "version Copy", "request": { "method": "GET", "header": [], "url": "https://51.38.66.67:30045/edgemanager/v1/version" }, "response": [] }, { "name": "列表-已纳管", "request": { "method": "GET", "header": [], "url": { "raw": "https://51.38.66.37:30000/edgemanager/v1/node/list/managed?pageNum=1&pageSize=10&name", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "node", "list", "managed" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "10" }, { "key": "name", "value": null } ] } }, "response": [] }, { "name": "列表-未纳管", "request": { "method": "GET", "header": [], "url": { "raw": "https://51.38.66.37:30000/edgemanager/v1/node/list/unmanaged?pageNum=1&pageSize=10&name", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "node", "list", "unmanaged" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "10" }, { "key": "name", "value": null } ] } }, "response": [] }, { "name": "删除节点", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"nodeIDs\":[3]\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/node/batch-delete" }, "response": [] }, { "name": "修改节点", "request": { "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"nodeID\":1,\r\n \"nodeName\":\"node-221\",\r\n \"description\":\"xxx\"\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/node" }, "response": [] }, { "name": "纳管节点", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{ \r\n \"nodeID\":3,\r\n \"name\":\"test1\",\r\n \"groupIDs\":[1]\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/node/add" }, "response": [] }, { "name": "创建节点组", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"nodeGroupNamE\":\"group3\",\r\n \"description\":\"description_group\"\r\n}\r\n" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup" }, "response": [] }, { "name": "添加节点到组", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"nodeIDs\":[3],\r\n \"groupID\":1\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup/node" }, "response": [] }, { "name": "驱逐节点", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[{\r\n \"groupID\":2,\r\n \"nodeID\":2\r\n},{\r\n \"groupID\":2,\r\n \"nodeID\":1\r\n}]\r\n" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup/node/batch-delete" }, "response": [] }, { "name": "节点组详情", "request": { "method": "GET", "header": [], "url": { "raw": "https://51.38.66.37:30000/edgemanager/v1/nodegroup?id=1", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "nodegroup" ], "query": [ { "key": "id", "value": "1" } ] } }, "response": [] }, { "name": "修改节点组", "request": { "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"groupID\":2,\r\n \"nodeGroupNamE\":\"group11\",\r\n \"description\":\"description_group\"\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup" }, "response": [] }, { "name": "删除节点组", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"groupIDs\":[1115,4,2]\r\n}" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup/batch-delete" }, "response": [] }, { "name": "节点组列表", "request": { "method": "GET", "header": [], "url": { "raw": "https://51.38.66.37:30000/edgemanager/v1/nodegroup/list?pageNum=1&pageSize=2&name", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "nodegroup", "list" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "2" }, { "key": "name", "value": null } ] } }, "response": [] }, { "name": "节点组数量", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": "https://51.38.66.37:30000/edgemanager/v1/nodegroup/stats" }, "response": [] } ] }, { "name": "apigw", "item": [ { "name": "外部测试登录", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"username\":\"hello\",\r\n \"password\":[72, 117, 97, 119, 101, 105,49, 50, 35, 51]\r\n}" }, "url": "http://51.38.66.37:30048/usermanager/v1/login" }, "response": [] }, { "name": "login", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"username\":\"admin\",\r\n \"password\":[72,117, 97, 119, 101, 105, 49,50, 35, 52]\r\n}" }, "url": "http://51.38.66.37:30045/api/v1/login" }, "response": [] }, { "name": "chpwd", "request": { "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"username\":\"admin\",\r\n \"oldPassword\"::[72, 117, 97, 119, 101, 105, 49, 50, 35, 51],\r\n \"password\":[72, 117, 97, 119, 101, 105,49, 50, 35, 52],\r\n \"rePassword\":[72, 117, 97, 119, 101, 105,49, 50, 35, 52],\r\n}" }, "url": "http://51.38.66.37:30036/api/v1/changepwd" }, "response": [] }, { "name": "chpwd", "request": { "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"username\":\"admin\",\r\n \"oldPassword\"::[72, 117, 97, 119, 101, 105, 49, 50, 35, 51],\r\n \"password\":[72, 117, 97, 119, 101, 105,49, 50, 35, 52],\r\n \"rePassword\":[72, 117, 97, 119, 101, 105,49, 50, 35, 52],\r\n}" }, "url": "http://51.38.66.37:30048/usermanager/v1/changepwd" }, "response": [] }, { "name": "firstlogin", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "logout", "request": { "method": "GET", "header": [], "url": "" }, "response": [] } ] }, { "name": "应用管理", "item": [ { "name": "创建应用", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"appName\": \"mfltest0115\",\r\n \"containers\": [\r\n {\r\n \"name\": \"c1\",\r\n \"cpuRequest\": 1,\r\n \"cpuLimit\": 1,\r\n \"memRequest\": 200,\r\n \"memLimit\": 200,\r\n \"image\": \"ubuntu\",\r\n \"imageVersion\": \"18.04\",\r\n \"env\": [\r\n {\r\n \"name\": \"lib\",\r\n \"value\": \"/test\"\r\n }\r\n ],\r\n \"userId\": 1001,\r\n \"groupId\": 1001,\r\n \"command\": [\r\n ]\r\n }\r\n ],\r\n \"description\": \"itisatestin0115\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": "https://51.38.66.37:30020/edgemanager/v1/app" }, "response": [] }, { "name": "查询应用实例", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "appId", "value": "\"1\"", "type": "text", "disabled": true } ] }, "url": { "raw": "https://51.38.66.37:30020/edgemanager/v1/app/deployment/list?appId=1", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30020", "path": [ "edgemanager", "v1", "app", "deployment", "list" ], "query": [ { "key": "appId", "value": "1" } ] } }, "response": [] }, { "name": "节点应用实例列表", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://51.38.66.37:30020/edgemanager/v1/app/node?nodeID=1", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30020", "path": [ "edgemanager", "v1", "app", "node" ], "query": [ { "key": "nodeID", "value": "1" } ] } }, "response": [] }, { "name": "部署应用", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"appID\": 1,\r\n \"nodeGroupIds\": [\r\n 1\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": "https://51.38.66.37:30020/edgemanager/v1/app/deployment" }, "response": [] }, { "name": "查询应用", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://51.38.66.67:30020/edgemanager/v1/app/?appID=1", "protocol": "https", "host": [ "51", "38", "66", "67" ], "port": "30020", "path": [ "edgemanager", "v1", "app", "" ], "query": [ { "key": "appID", "value": "1" } ] } }, "response": [] }, { "name": "修改应用", "request": { "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"appName\": \"mfltest1222\",\r\n \"containers\": [\r\n {\r\n \"name\": \"c1\",\r\n \"cpuRequest\": \"1\",\r\n \"cpuLimit\": \"1\",\r\n \"memRequest\": \"200M\",\r\n \"memLimit\": \"200M\",\r\n \"image\": \"euler_image\",\r\n \"imageVersion\": \"1.0\",\r\n \"npu\": \"\",\r\n \"env\": [\r\n {\r\n \"name\": \"lib\",\r\n \"value\": \"/test\"\r\n }\r\n ],\r\n \"userId\": 1001,\r\n \"groupId\": 1001,\r\n \"command\": [\r\n \"/bin/bash\",\r\n \"-c\",\r\n \"sleep 30000\"\r\n ]\r\n }\r\n ],\r\n \"description\": \"itisatestin1222\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": "http://51.38.66.37:30020/edgemanager/v1/app/" }, "response": [] }, { "name": "获取应用列表", "request": { "method": "GET", "header": [], "url": { "raw": "http://51.38.66.37:30020/edgemanager/v1/app/list?pageNum=1&pageSize=10", "protocol": "http", "host": [ "51", "38", "66", "37" ], "port": "30020", "path": [ "edgemanager", "v1", "app", "list" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "10" } ] } }, "response": [] }, { "name": "删除应用", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"appId\": [\r\n 1\r\n ]\r\n}" }, "url": "http://51.38.66.37:30021/edgemanager/v1/app/batch-delete" }, "response": [] }, { "name": "应用卸载", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\"appId\":1,\"nodeGroupIds\":[1]}", "options": { "raw": { "language": "json" } } }, "url": "http://51.38.66.37:30020/edgemanager/v1/app/deployment/batch-delete" }, "response": [] }, { "name": "批量查询应用实例", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://51.38.66.37:30035/edgemanager/v1/app/deployment/list?pageNum=1&pageSize=10&name=", "protocol": "https", "host": [ "51", "38", "66", "37" ], "port": "30035", "path": [ "edgemanager", "v1", "app", "deployment", "list" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "10" }, { "key": "name", "value": "" } ] } }, "response": [] }, { "name": "创建configmap", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "单个应用删除", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "更新", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "镜像配置", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "导出证书", "request": { "method": "GET", "header": [], "url": "" }, "response": [] } ] }, { "name": "配置", "item": [ { "name": "导入根证书", "request": { "method": "POST", "header": [ { "key": "X-CSRF-Token", "value": "HiyKMWxwJ-BSaRuHkhP72IvQ-Huk3t_V8Xgic97YJWs", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"certName\":\"hub_client\",\r\n \"cert\":\"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwVENDQXcyZ0F3SUJBZ0lVYkVhemI3V1VLSHVXYXg4Z3AxNEt3dE05djlzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1dqRVNNQkFHQTFVRUF3d0pUVVZHUTJWdWRHVnlNUXN3Q1FZRFZRUUdFd0pEVGpFbU1DUUdBMVVFQ2d3ZApTSFZoZDJWcElGUmxZMmh1YjJ4dloybGxjeUJEYnk0c0lFeDBaQzR4RHpBTkJnTlZCQXNNQmtGelkyVnVaREFlCkZ3MHlNakF6TURjd056VXhNREZhRncwek1qQXpNRGN3TnpVeE1ERmFNRm94RWpBUUJnTlZCQU1NQ1UxRlJrTmwKYm5SbGNqRUxNQWtHQTFVRUJoTUNRMDR4SmpBa0JnTlZCQW9NSFVoMVlYZGxhU0JVWldOb2JtOXNiMmRwWlhNZwpRMjh1TENCTWRHUXVNUTh3RFFZRFZRUUxEQVpCYzJObGJtUXdnZ0dpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCmp3QXdnZ0dLQW9JQmdRQzFrL0pja3c3S0g2RzJ4ZGlKMWV0Tkh5b0dQK0xlTnBvNmg5UkVyTWQ3UjNlSWx5R1MKNTRDdURGTUI3OGlkSXVuREp3Y2FBNU1YdGJPWjJ2TVlkOVM0Vm1PbEF4bmluZVkve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ck1TTwoya0p2SEtkb0o3WnAyakdYL2JDVEJsVFQzRVpPM3ZadHdCY3RVODBkclBPMlhMemRJcWw1dHBXV1p3azBXTWpQCnZxWWtXVktiKzJ5REh6ckFUcko5cTVIVDZBOUFyMURFV2xsRVFnNC90a3p5TEFPWHFaQUcvbnJ6aEFicUxUNm4KdGNvTTVHL3VIWWVscVVjQ2w0TkpkVG5JSjNWdjRONSs3NXJoNWNwMVpWZ29HdUR2OVV4aXp4UmlreVVnMHdFZgozUC9QV1NoOFdvVzR5U0RUTUlCL3NlT09zdmxFRzVKa0FVcjM3NmxHN254WGlLUTVQd3FMdnlqOWk0c0xFNFZLCm56SU9TREtrYzFXQS9uZUdIQ2NIQTJUaDRCMFN3dFdYVERQV2k4Q1dOd2RCNjliamZtNk10VFE9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0=\"\r\n}" }, "url": "https://51.38.66.39:30035/certmanager/v1/certificates/import" }, "response": [] }, { "name": "查询根证书", "request": { "method": "GET", "header": [], "url": "https://51.38.66.39:30035/certmanager/v1/certificates/import" }, "response": [] } ] }, { "name": "模板列表", "request": { "method": "GET", "header": [], "url": { "raw": "http://51.38.66.37:30000/edgemanager/v1/apptemplate/list?pageNum=1&pageSize=10", "protocol": "http", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "apptemplate", "list" ], "query": [ { "key": "pageNum", "value": "1" }, { "key": "pageSize", "value": "10" } ] } }, "response": [] }, { "name": "模板详情", "request": { "auth": { "type": "bearer", "bearer": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJHcm91cElEIjoyNiwiU2Vzc2lvbklEIjoicHRWTThjb2JwUjJRX19tUmZLa3pJUSIsIlJvbGVDb2RlIjoibm9ybWFsLXVzZXIiLCJSZW1vdGVBZGRyIjoiNTAuNjQuMTczLjI0MyIsIlJvbGVJRCI6NCwiVXNlcklEIjozNywiTG9naW5UaW1lIjoxNjU1MzgzMzYxLjQ0Mn0.qSmtuuo4OFjKzCJMMFg-BFk7prP_waIpSaKAtq4f0ZA" } }, "method": "GET", "header": [], "url": { "raw": "http://51.38.66.37:30000/edgemanager/v1/apptemplate/?id=2", "protocol": "http", "host": [ "51", "38", "66", "37" ], "port": "30000", "path": [ "edgemanager", "v1", "apptemplate", "" ], "query": [ { "key": "id", "value": "2" } ] } }, "response": [] }, { "name": "token", "request": { "method": "GET", "header": [], "url": "" }, "response": [] }, { "name": "testtoken", "request": { "method": "GET", "header": [], "url": "" }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "token", "value": "" } ] }
本文来自博客园,作者:易先讯,转载请注明原文链接:https://www.cnblogs.com/gongxianjin/p/17482484.html