mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -0,0 +1,16 @@
|
||||
post:
|
||||
summary: 批量绑定主机组
|
||||
parameters:
|
||||
- $ref: '../parameters/instance.yaml#/instanceId'
|
||||
- in: body
|
||||
name: groups
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/instance.yaml#/InstanceBindGroups'
|
||||
responses:
|
||||
200:
|
||||
description: 实例信息
|
||||
schema:
|
||||
$ref: '../schemas/instance.yaml#/InstanceResponse'
|
||||
tags:
|
||||
- instance
|
||||
Reference in New Issue
Block a user