mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-08 06:31:00 +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.
32 lines
818 B
YAML
32 lines
818 B
YAML
get:
|
|
summary: 按指定条件列出主机组
|
|
parameters:
|
|
- $ref: "../parameters/common.yaml#/offset"
|
|
- $ref: "../parameters/common.yaml#/limit"
|
|
- $ref: "../parameters/instancegroup.yaml#/granularity"
|
|
- $ref: "../parameters/instancegroup.yaml#/guest"
|
|
|
|
responses:
|
|
200:
|
|
description: 实例组列表信息
|
|
schema:
|
|
$ref: "../schemas/instancegroup.yaml#/InstanceGroupListResponse"
|
|
tags:
|
|
- instancegroup
|
|
|
|
post:
|
|
summary: 创建主机组
|
|
parameters:
|
|
- in: body
|
|
name: instancegroup
|
|
required: true
|
|
schema:
|
|
$ref: '../schemas/instancegroup.yaml#/InstanceGroupCreate'
|
|
responses:
|
|
200:
|
|
description: 新建主机组的信息
|
|
schema:
|
|
$ref: '../schemas/instancegroup.yaml#/InstanceGroupResponse'
|
|
tags:
|
|
- instancegroup
|