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.
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
instanceId:
|
|
name: instanceId
|
|
required: true
|
|
in: path
|
|
type: string
|
|
description: 实例名称或ID,建议使用ID
|
|
baremetal:
|
|
name: baremetal
|
|
in: query
|
|
type: boolean
|
|
description: 过滤裸金属类型实例
|
|
hypervisor:
|
|
name: hypervisor
|
|
in: query
|
|
type: string
|
|
enum: [kvm,esxi,container,baremetal,aliyun,azure,aws,huawei,ucloud,qcloud,openstack,zstack]
|
|
description: 过滤虚拟化平台底下的实例
|
|
host:
|
|
name: host
|
|
in: query
|
|
type: string
|
|
description: 过滤宿主机上的实例
|
|
secgroup:
|
|
name: secgroup
|
|
in: query
|
|
type: string
|
|
description: 过滤关联了此安全组的实例
|
|
disk:
|
|
name: disk
|
|
in: query
|
|
type: string
|
|
description: 过滤挂载此硬盘的实例
|
|
with_eip:
|
|
name: with_eip
|
|
in: query
|
|
type: boolean
|
|
enum: [true]
|
|
description: 过滤关联的eip的实例
|
|
without_eip:
|
|
name: without_eip
|
|
in: query
|
|
type: boolean
|
|
enum: [true]
|
|
description: 过滤未关联eip的实例
|
|
gpu:
|
|
name: gpu
|
|
in: query
|
|
type: boolean
|
|
enum: [true, false]
|
|
description: 过滤关联GPU卡的实例
|
|
order_by_disk:
|
|
name: order_by_disk
|
|
in: query
|
|
type: string
|
|
enum: [desc, asc]
|
|
description: 根据磁盘大小排序
|
|
order_by_host:
|
|
name: order_by_host
|
|
in: query
|
|
type: string
|
|
enum: [desc, asc]
|
|
description: 根据宿主机名称排序
|
|
usable_server_for_eip:
|
|
name: usable_server_for_eip
|
|
in: query
|
|
type: string
|
|
description: 过滤此EIP可绑定的server列表(实例和弹性IP属于同一个账号同一个区域,若是私有云则弹性IP和实例需要在同一个可用区)
|
|
group:
|
|
name: group
|
|
in: query
|
|
type: string
|
|
description: 主机组的ID或者Name |