mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-07-01 02:24:47 +08:00
add rds operation
This commit is contained in:
16
docs/dbinstance/change-config.yaml
Normal file
16
docs/dbinstance/change-config.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
post:
|
||||
summary: 调整RDS实例配置
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
- in: body
|
||||
name: dbinstance
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#DBInstanceChangeConfig'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
@@ -6,7 +6,7 @@ get:
|
||||
200:
|
||||
description: RDS实例用户信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceAccountResponse'
|
||||
$ref: '../schemas/dbinstance_account.yaml#/DBInstanceAccountResponse'
|
||||
tags:
|
||||
- dbinstanceaccount
|
||||
|
||||
@@ -18,6 +18,6 @@ delete:
|
||||
200:
|
||||
description: 被删除RDS实例的用户信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceAccountResponse'
|
||||
$ref: '../schemas/dbinstance_account.yaml#/DBInstanceAccountResponse'
|
||||
tags:
|
||||
- dbinstanceaccount
|
||||
- dbinstanceaccount
|
||||
|
||||
@@ -9,6 +9,22 @@ get:
|
||||
200:
|
||||
description: RDS实例用户列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceAccountListResponse'
|
||||
$ref: '../schemas/dbinstance_account.yaml#/DBInstanceAccountListResponse'
|
||||
tags:
|
||||
- dbinstanceaccount
|
||||
- dbinstanceaccount
|
||||
|
||||
post:
|
||||
summary: 创建RDS实例账号
|
||||
parameters:
|
||||
- in: body
|
||||
name: dbinstanceaccount
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance_account.yaml#/DBInstanceAccountCreate'
|
||||
responses:
|
||||
200:
|
||||
description: 新建RDS实例账号信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance_account.yaml#/DBInstanceAccountResponse'
|
||||
tags:
|
||||
- dbinstanceaccount
|
||||
|
||||
@@ -6,7 +6,7 @@ get:
|
||||
200:
|
||||
description: RDS实例备份信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceBackupResponse'
|
||||
$ref: '../schemas/dbinstance_backup.yaml#/DBInstanceBackupResponse'
|
||||
tags:
|
||||
- dbinstancebackup
|
||||
|
||||
@@ -18,6 +18,6 @@ delete:
|
||||
200:
|
||||
description: 被删除RDS实例的备份信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceBackupResponse'
|
||||
$ref: '../schemas/dbinstance_backup.yaml#/DBInstanceBackupResponse'
|
||||
tags:
|
||||
- dbinstancebackup
|
||||
- dbinstancebackup
|
||||
|
||||
@@ -11,6 +11,6 @@ get:
|
||||
200:
|
||||
description: RDS实例备份列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceBackupListResponse'
|
||||
$ref: '../schemas/dbinstance_backup.yaml#/DBInstanceBackupListResponse'
|
||||
tags:
|
||||
- dbinstancebackup
|
||||
- dbinstancebackup
|
||||
|
||||
@@ -6,7 +6,7 @@ get:
|
||||
200:
|
||||
description: RDS实例数据库信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceDatabaseResponse'
|
||||
$ref: '../schemas/dbinstance_database.yaml#/DBInstanceDatabaseResponse'
|
||||
tags:
|
||||
- dbinstancedatabase
|
||||
|
||||
@@ -18,6 +18,6 @@ delete:
|
||||
200:
|
||||
description: 被删除RDS实例的数据库信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceDatabaseResponse'
|
||||
$ref: '../schemas/dbinstance_database.yaml#/DBInstanceDatabaseResponse'
|
||||
tags:
|
||||
- dbinstancedatabase
|
||||
- dbinstancedatabase
|
||||
|
||||
@@ -9,6 +9,6 @@ get:
|
||||
200:
|
||||
description: RDS实例数据库列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceDatabaseListResponse'
|
||||
$ref: '../schemas/dbinstance_database.yaml#/DBInstanceDatabaseListResponse'
|
||||
tags:
|
||||
- dbinstancedatabase
|
||||
- dbinstancedatabase
|
||||
|
||||
@@ -7,6 +7,6 @@ get:
|
||||
200:
|
||||
description: RDS实例网络列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceNetworkListResponse'
|
||||
$ref: '../schemas/dbinstance_network.yaml#/DBInstanceNetworkListResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
- dbinstance
|
||||
|
||||
@@ -8,6 +8,6 @@ get:
|
||||
200:
|
||||
description: RDS实例网络列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceNetworkListResponse'
|
||||
$ref: '../schemas/dbinstance_network.yaml#/DBInstanceNetworkListResponse'
|
||||
tags:
|
||||
- dbinstancenetwork
|
||||
- dbinstancenetwork
|
||||
|
||||
@@ -6,7 +6,7 @@ get:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceParameterResponse'
|
||||
$ref: '../schemas/dbinstance_parameter.yaml#/DBInstanceParameterResponse'
|
||||
tags:
|
||||
- dbinstanceparameter
|
||||
|
||||
@@ -18,6 +18,6 @@ delete:
|
||||
200:
|
||||
description: 被删除RDS实例的参数信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceParameterResponse'
|
||||
$ref: '../schemas/dbinstance_parameter.yaml#/DBInstanceParameterResponse'
|
||||
tags:
|
||||
- dbinstanceparameter
|
||||
- dbinstanceparameter
|
||||
|
||||
@@ -9,6 +9,6 @@ get:
|
||||
200:
|
||||
description: RDS实例参数列表信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceParameterListResponse'
|
||||
$ref: '../schemas/dbinstance_parameter.yaml#/DBInstanceParameterListResponse'
|
||||
tags:
|
||||
- dbinstanceparameter
|
||||
- dbinstanceparameter
|
||||
|
||||
@@ -17,4 +17,20 @@ get:
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceListResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
- dbinstance
|
||||
|
||||
post:
|
||||
summary: 创建RDS实例
|
||||
parameters:
|
||||
- in: body
|
||||
name: dbinstance
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceCreate'
|
||||
responses:
|
||||
200:
|
||||
description: 新建RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
|
||||
16
docs/dbinstance/public-connection.yaml
Normal file
16
docs/dbinstance/public-connection.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
post:
|
||||
summary: 开放关闭RDS实例外网地址
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
- in: body
|
||||
name: dbinstance
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#DBInstancePublicConnection'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
12
docs/dbinstance/purge.yaml
Normal file
12
docs/dbinstance/purge.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
post:
|
||||
summary: 抹除RDS实例
|
||||
description: 仅删除本地数据库记录,不删除公有云RDS实例
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
12
docs/dbinstance/reboot.yaml
Normal file
12
docs/dbinstance/reboot.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
post:
|
||||
summary: 重启RDS实例
|
||||
description: 要求RDS实例状态正常或重启失败
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
17
docs/dbinstance/recovery.yaml
Normal file
17
docs/dbinstance/recovery.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
post:
|
||||
summary: 从备份恢复实例数据库
|
||||
description: 要求RDS实例状态正常
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
- in: body
|
||||
name: dbinstance
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#DBInstanceRecovery'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
11
docs/dbinstance/sync-status.yaml
Normal file
11
docs/dbinstance/sync-status.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
post:
|
||||
summary: 同步RDS实例状态
|
||||
parameters:
|
||||
- $ref: '../parameters/dbinstance.yaml#/dbinstanceId'
|
||||
responses:
|
||||
200:
|
||||
description: RDS实例信息
|
||||
schema:
|
||||
$ref: '../schemas/dbinstance.yaml#/DBInstanceResponse'
|
||||
tags:
|
||||
- dbinstance
|
||||
Reference in New Issue
Block a user