Files
cloudpods/docs/instance/instance.yaml
Rain 8e55bee9b3 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.
2019-11-06 13:06:03 +08:00

41 lines
1.1 KiB
YAML

get:
summary: 获取指定实例详情信息
parameters:
- $ref: '../parameters/instance.yaml#/instanceId'
- $ref: '../parameters/common.yaml#/pending_delete'
responses:
200:
description: 实例信息
schema:
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance
put:
summary: 更新实例信息
parameters:
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '../schemas/instance.yaml#/InstanceUpdate'
responses:
200:
description: 实例信息
schema:
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance
delete:
summary: 删除指定实例
parameters:
- $ref: '../parameters/instance.yaml#/instanceId'
- $ref: '../parameters/common.yaml#/override_pending_delete'
responses:
200:
description: 被删除实例的信息,删除前确保已解除删除保护,第一次删除时会先进入回收站(可恢复),第二次删除会真正释放资源
schema:
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance