Created
December 4, 2017 06:10
-
-
Save wayslog/f61edcfd4085fde3293d593fab37bf31 to your computer and use it in GitHub Desktop.
lanaya open api v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lanaya apiv2 | |
## POST /api/v2/clusters | |
### json参数 | |
| 参数名 | 参数类型 | 是否必须 | 备注 | | |
|--------------------|----------|----------|------------------------------------------------------| | |
| name | string | y | 集群名。每个lanaya环境唯一 | | |
| idc | string | y | 为以后的统一环境预留的参数 | | |
| creator | string | n | 创建集群人,现在不做任何操作 | | |
| maxMemoryPerMaster | integer | y | 单主节点容量。单位为MB | | |
| masterNum | integer | y | 主节点数量。总容量为:masterNum * maxMemoryPerMaster | | |
| autoRegister | boolean | n | 是否自动注册 Corvus | | |
| description | string | n | 集群描述,如果不指定则为空 | | |
### 返回参数 | |
| 参数名 | 参数类型 | 备注 | | |
|------------|----------|----------------------------------------| | |
| name | string | 集群名。每个lanaya环境唯一 | | |
| id | integer | 集群ID,所有和本集群相关的操作以ID为准 | | |
| idc | string | 原样返回 idc | | |
| regApp | string | Redis资源的APPID | | |
| regCluster | string | Redis资源的注册集群 | | |
## GET /api/v2/clusters/<int:clusterId> | |
### query 参数 | |
| 参数名 | 参数类型 | 是否必须 | 备注 | | |
|--------|----------|----------|--------------| | |
| id | integer | y | 集群ID。唯一 | | |
### 返回参数 | |
| 参数名 | 参数类型 | 备注 | | |
|------------|----------|----------------------------------------| | |
| name | string | 集群名。每个lanaya环境唯一 | | |
| id | integer | 集群ID,所有和本集群相关的操作以ID为准 | | |
| idc | string | 原样返回 idc | | |
| regApp | string | Redis资源的APPID | | |
| regCluster | string | Redis资源的注册集群 | | |
## DELETE /api/v2/clusters/<int:clusterId> | |
### query 参数 | |
| 参数名 | 参数类型 | 是否必须 | 备注 | | |
|--------|----------|----------|--------------| | |
| id | integer | y | 集群ID。唯一 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment