feat & fix: Add batch operator and fix some bugs for instance group

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.
This commit is contained in:
Rain
2019-11-06 13:06:03 +08:00
committed by 郑雨
parent 29502b9e58
commit 8e55bee9b3
27 changed files with 686 additions and 54 deletions
+22
View File
@@ -0,0 +1,22 @@
get:
summary: 获取指定实例组的信息
parameters:
- $ref: "../parameters/instancegroup.yaml#/instancegroupId"
responses:
200:
description: 实例组的信息
schema:
$ref: "../schemas/instancegroup.yaml#/InstanceGroupResponse"
tags:
- instancegroup
delete:
summary: 删除指定的实例组
parameters:
- $ref: '../parameters/instancegroup.yaml#/instancegroupId'
responses:
200:
schema:
$ref: '../schemas/instancegroup.yaml#/InstanceGroupResponse'
tags:
- instancegroup