mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-07 22:24:32 +08:00
Feature: 1. Add apis: list server by group, list group by server, bind servers, unbind servers, bind groups, unbind groups. 2. Add climc command and docs corresponding to the above newly added apis 3. Add log about binding and unbinding operator. 4. Support enable and disable instance group. Fix: 1. Set capacity zeor if there are not enough resource aboue forced instance group in one host. 2. Change the stage(real delete => pending delete) that guest leave all groups.
swagger.yaml
使用swagger编辑器
docker run -d -p 8081:8080 swaggerapi/swagger-editor
swagger文档,https://swagger.io/docs/specification/2-0/basic-structure/
编辑测试:
-
首先启动swagger-ui
sudo docker pull swaggerapi/swagger-ui sudo docker run -d -p 80:8080 swaggerapi/swagger-ui
-
用python启动本地的http server,这是允许CORS的SimpleHTTPServer,监听在8000端口
python server.py
-
用浏览器打开swagger-ui的URL:http://<swagger_ui_host>?url=http://<simple_http_server_host>:8000/index.yaml