This commit is contained in:
tangbin
2019-06-11 23:51:24 +08:00
parent ef63ef634c
commit 76a2fcecf7
63 changed files with 336 additions and 343 deletions

View File

@@ -1,16 +1,16 @@
post:
summary: 绑定安全组到实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAddSecgroup'
$ref: '../schemas/instance.yaml#/InstanceAddSecgroup'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 替换实例默认安全组
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAssignSecgroup'
$ref: '../schemas/instance.yaml#/InstanceAssignSecgroup'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 实例关联弹性IP
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAssociateEip'
$ref: '../schemas/instance.yaml#/InstanceAssociateEip'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 透传设备
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAttachIsolateDevice'
$ref: '../schemas/instance.yaml#/InstanceAttachIsolateDevice'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 挂载磁盘到实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAttachDisk'
$ref: '../schemas/instance.yaml#/InstanceAttachDisk'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 实例绑定网络(从网络上分配IP地址)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceAttachNetwork'
$ref: '../schemas/instance.yaml#/InstanceAttachNetwork'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 恢复回收站实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 更改实例网卡带宽
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceChangeBandwidth'
$ref: '../schemas/instance.yaml#/InstanceChangeBandwidth'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 更改实例配置
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceChangeConfig'
$ref: '../schemas/instance.yaml#/InstanceChangeConfig'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 更改实例IP地址
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceChangeIpAddr'
$ref: '../schemas/instance.yaml#/InstanceChangeIpAddr'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 添加实例备份机
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 创建并绑定弹性IP给实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceCreateEip'
$ref: '../schemas/instance.yaml#/InstanceCreateEip'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 创建磁盘并挂载到实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceCreateDisk'
$ref: '../schemas/instance.yaml#/InstanceCreateDisk'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 删除实例额外选项
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDelExtraOption'
$ref: '../schemas/instance.yaml#/InstanceDelExtraOption'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 删除实例备份机
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDeleteBackup'
$ref: '../schemas/instance.yaml#/InstanceDeleteBackup'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 重置实例密码信息
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDeploy'
$ref: '../schemas/instance.yaml#/InstanceDeploy'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 解除透传设备
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDetachIsolateDevice'
$ref: '../schemas/instance.yaml#/InstanceDetachIsolateDevice'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 卸载实例磁盘
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDetachDisk'
$ref: '../schemas/instance.yaml#/InstanceDetachDisk'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 移除实例的网络(解绑网络上的IP地址)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDetachNetwork'
$ref: '../schemas/instance.yaml#/InstanceDetachNetwork'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 解绑实例弹性IP
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceDissociateEip'
$ref: '../schemas/instance.yaml#/InstanceDissociateEip'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 卸载实例ISO设备
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 挂载ISO设备到实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceInsertIso'
$ref: '../schemas/instance.yaml#/InstanceInsertIso'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

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

View File

@@ -1,34 +1,33 @@
get:
summary: 按指定条件列出实例
parameters:
- $ref: '/parameters/common.yaml#limit'
- $ref: '/parameters/common.yaml#offset'
- $ref: '/parameters/common.yaml#provider'
- $ref: '/parameters/common.yaml#account'
- $ref: '/parameters/common.yaml#cloudprovider'
- $ref: '/parameters/common.yaml#billing_type'
- $ref: '/parameters/common.yaml#zone'
- $ref: '/parameters/common.yaml#wire'
- $ref: '/parameters/common.yaml#network'
- $ref: '/parameters/common.yaml#vpc'
- $ref: '/parameters/common.yaml#region'
- $ref: '/parameters/common.yaml#pending_delete'
- $ref: '/parameters/instance.yaml#host'
- $ref: '/parameters/instance.yaml#with_eip'
- $ref: '/parameters/instance.yaml#without_eip'
- $ref: '/parameters/instance.yaml#gpu'
- $ref: '/parameters/instance.yaml#order_by_disk'
- $ref: '/parameters/instance.yaml#order_by_host'
- $ref: '/parameters/instance.yaml#baremetal'
- $ref: '/parameters/instance.yaml#hypervisor'
- $ref: '/parameters/instance.yaml#secgroup'
- $ref: '/parameters/instance.yaml#disk'
- $ref: '../parameters/common.yaml#/limit'
- $ref: '../parameters/common.yaml#/offset'
- $ref: '../parameters/common.yaml#/provider'
- $ref: '../parameters/common.yaml#/account'
- $ref: '../parameters/common.yaml#/cloudprovider'
- $ref: '../parameters/common.yaml#/billing_type'
- $ref: '../parameters/common.yaml#/zone'
- $ref: '../parameters/common.yaml#/wire'
- $ref: '../parameters/common.yaml#/network'
- $ref: '../parameters/common.yaml#/vpc'
- $ref: '../parameters/common.yaml#/region'
- $ref: '../parameters/common.yaml#/pending_delete'
- $ref: '../parameters/instance.yaml#/host'
- $ref: '../parameters/instance.yaml#/with_eip'
- $ref: '../parameters/instance.yaml#/without_eip'
- $ref: '../parameters/instance.yaml#/gpu'
- $ref: '../parameters/instance.yaml#/order_by_disk'
- $ref: '../parameters/instance.yaml#/order_by_host'
- $ref: '../parameters/instance.yaml#/baremetal'
- $ref: '../parameters/instance.yaml#/hypervisor'
- $ref: '../parameters/instance.yaml#/secgroup'
- $ref: '../parameters/instance.yaml#/disk'
responses:
200:
description: 实例列表信息
schema:
$ref: '/schemas/instance.yaml#InstanceListResponse'
$ref: '../schemas/instance.yaml#/InstanceListResponse'
tags:
- instance
post:
@@ -38,11 +37,11 @@ post:
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceCreate'
$ref: '../schemas/instance.yaml#/InstanceCreate'
responses:
200:
description: 新创建的实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 在线迁移实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceLiveMigrate'
$ref: '../schemas/instance.yaml#/InstanceLiveMigrate'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 迁移实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceMigrate'
$ref: '../schemas/instance.yaml#/InstanceMigrate'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 发送qemu-monitor指令给实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceMonitor'
$ref: '../schemas/instance.yaml#/InstanceMonitor'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 抹除数据库实例数据(不真正删除实例)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 重装系统(更换系统镜像)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
parameters:
- $ref: "../parameters/instance.yaml#/instanceId"
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceRebuildRoot'
$ref: "../schemas/instance.yaml#/InstanceRebuildRoot"
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: "../schemas/instance.yaml#/InstanceResponse"
tags:
- instance
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 续费实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceRenew'
$ref: '../schemas/instance.yaml#/InstanceRenew'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 重启实例(软重启)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceReset'
$ref: '../schemas/instance.yaml#/InstanceReset'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 重启实例(硬重启)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceRestart'
$ref: '../schemas/instance.yaml#/InstanceRestart'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 解绑实例安全组
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceRevokeSecgroup'
$ref: '../schemas/instance.yaml#/InstanceRevokeSecgroup'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 保存镜像
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceSaveImage'
$ref: '../schemas/instance.yaml#/InstanceSaveImage'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 发送按键给实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceSendKeys'
$ref: '../schemas/instance.yaml#/InstanceSendKeys'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 设置实例额外选项(USB透传)
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceSetExtraOption'
$ref: '../schemas/instance.yaml#/InstanceSetExtraOption'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 批量设置安全组
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceSetSecgroup'
$ref: '../schemas/instance.yaml#/InstanceSetSecgroup'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 启动实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 更改实例状态
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceStatus'
$ref: '../schemas/instance.yaml#/InstanceStatus'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 关闭实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceStop'
$ref: '../schemas/instance.yaml#/InstanceStop'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 休眠实例
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 备份机转换
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 同步配置信息
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
post:
summary: 同步实例状态
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,16 +1,16 @@
post:
summary: 更新实例UserData
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
- in: body
name: server
required: true
schema:
$ref: '/schemas/instance.yaml#InstanceUserData'
$ref: '../schemas/instance.yaml#/InstanceUserData'
responses:
200:
description: 实例信息
schema:
$ref: '/schemas/instance.yaml#InstanceResponse'
$ref: '../schemas/instance.yaml#/InstanceResponse'
tags:
- instance

View File

@@ -1,11 +1,11 @@
get:
summary: 获取指定实例VNC信息
parameters:
- $ref: '/parameters/instance.yaml#instanceId'
- $ref: '../parameters/instance.yaml#/instanceId'
responses:
200:
description: 实例VNC信息
schema:
$ref: '/schemas/instance.yaml#InstanceVncResponse'
$ref: '../schemas/instance.yaml#/InstanceVncResponse'
tags:
- instance