| 版本号 | 修改点说明 | 变更日期 |
|---|
Path: /database/?act=configure
Method: GET
接口描述:
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ products | object [] | 非必须 |
item 类型: object |
||
| ├─ proid | string | 必须 | 产品型号 | ||
| ├─ name | string | 必须 | 名称 | ||
| ├─ size | string | 必须 | 大小 | ||
| ├─ rooms | object [] | 非必须 |
item 类型: object |
||
| ├─ id | string | 必须 | 机房ID | ||
| ├─ name | string | 必须 | 机房 名称 | ||
| ├─ ver | string [] | 必须 | 可开mssql版本 |
item 类型: string |
|
| ├─ | 非必须 |
Path: /database/?act=checkdbname
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | test | 数据库名4-20长度并且由字母+数字 并且以字母操作 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ dbname | string | 非必须 | 可用数据名称 |
Path: /database/?act=getprice
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| proid | 是 | mssql50 | 产品型号 |
| buyyear | 是 | 1 | 开通年限 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ price | number | 非必须 | 售价 | ||
| ├─ costprice | number | 非必须 | 成本 | ||
| ├─ proid | string | 非必须 | 型号 | ||
| ├─ buyear | string | 非必须 | 年限 |
Path: /database/?act=buy
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| password | 是 | xxxxx | 密码长度6位以上 |
| proid | 是 | mssql50 | 产品型号 |
| buyyear | 是 | 1 | 开通年限 |
| room | 是 | 1 | 机房 |
| version | 是 | 2016 | 型号 |
| paytype | 是 | 0 | 0-正式;1-试用 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ westid | number | 非必须 | 我司ID | ||
| ├─ dbname | string | 非必须 | 数据库名 | ||
| ├─ dbloguser | string | 非必须 | 登录帐号 | ||
| ├─ dbsize | number | 非必须 | 数据库大小M | ||
| ├─ dbpasswd | string | 非必须 | 数据库密码 | ||
| ├─ dbbuydate | string | 非必须 | 开通时间 | ||
| ├─ dbexpdate | string | 非必须 | 到期时间 | ||
| ├─ dbproid | string | 非必须 | 产品型号 | ||
| ├─ dbyear | number | 非必须 | 开通年限 | ||
| ├─ dbstatus | number | 非必须 | 数据库状态 | ||
| ├─ dbserverip | string | 非必须 | 服务器 | ||
| ├─ dbver | string | 非必须 | 数据库版本 | ||
| ├─ dbbuytest | boolean | 非必须 | 是否为试用 |
Path: /database/?act=view
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ dbname | string | 非必须 | 数据库名 | ||
| ├─ dbloguser | string | 非必须 | 数据库登录帐号 | ||
| ├─ dbsize | number | 非必须 | 数据库大小M | ||
| ├─ dbpasswd | string | 非必须 | 密码 | ||
| ├─ dbbuydate | string | 非必须 | 开通时间 | ||
| ├─ dbexpdate | string | 非必须 | 到期时间 | ||
| ├─ dbproid | string | 非必须 | 产品型号 | ||
| ├─ dbyear | number | 非必须 | 开通年限 | ||
| ├─ dbstatus | number | 非必须 | 数据库状态 | ||
| ├─ dbserverip | string | 非必须 | 数据库服务器IP | ||
| ├─ westid | number | 非必须 | 西数编号 | ||
| ├─ dbver | string | 非必须 | 数据库版本 | ||
| ├─ dbbuytest | boolean | 非必须 | 是否试用0/1 | ||
| ├─ dbroom | string | 必须 | 机房ID | ||
| ├─ dbroomname | string | 必须 | 机房名称 | ||
| ├─ isgift | number | 必须 | 0-开通,1-赠品 | ||
| ├─ dbmdfsize | number | 必须 | 数据库使用情况 | ||
| ├─ dbldfsize | number | 必须 | 日志使用情况 |
Path: /database/?act=renew
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| buyyear | 是 | 1 | 1-10 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ dbname | string | 非必须 | 数据库名 | ||
| ├─ dbloguser | string | 非必须 | 数据库登录帐号 | ||
| ├─ dbsize | number | 非必须 | 数据库大小M | ||
| ├─ dbpasswd | string | 非必须 | 密码 | ||
| ├─ dbbuydate | string | 非必须 | 开通时间 | ||
| ├─ dbexpdate | string | 非必须 | 到期时间 | ||
| ├─ dbproid | string | 非必须 | 产品型号 | ||
| ├─ dbyear | number | 非必须 | 开通年限 | ||
| ├─ dbstatus | number | 非必须 | 数据库状态 | ||
| ├─ dbserverip | string | 非必须 | 数据库服务器IP | ||
| ├─ westid | number | 非必须 | 西数编号 | ||
| ├─ dbver | string | 非必须 | 数据库版本 | ||
| ├─ dbbuytest | boolean | 非必须 | 是否试用0/1 |
Path: /database/?act=paytest
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| buyyear | 是 | 1 | 1-10 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ dbname | string | 非必须 | 数据库名 | ||
| ├─ dbloguser | string | 非必须 | 数据库登录帐号 | ||
| ├─ dbsize | number | 非必须 | 数据库大小M | ||
| ├─ dbpasswd | string | 非必须 | 密码 | ||
| ├─ dbbuydate | string | 非必须 | 开通时间 | ||
| ├─ dbexpdate | string | 非必须 | 到期时间 | ||
| ├─ dbproid | string | 非必须 | 产品型号 | ||
| ├─ dbyear | number | 非必须 | 开通年限 | ||
| ├─ dbstatus | number | 非必须 | 数据库状态 | ||
| ├─ dbserverip | string | 非必须 | 数据库服务器IP | ||
| ├─ westid | number | 非必须 | 西数编号 | ||
| ├─ dbver | string | 非必须 | 数据库版本 | ||
| ├─ dbbuytest | boolean | 非必须 | 是否试用0/1 |
Path: /database/?act=chgpwd
Method: GET
接口描述:
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| password | 是 | password | 密码 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ password | string | 非必须 | 新密码 |
Path: /database/?act=upgradeprice
Method: GET
接口描述:
此为升级成本
(新价格-旧价格)/总天数*剩余天数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| room | 是 | 1 | 机房编号 |
| proid | 是 | mssql100 | 新的型号 |
| version | 是 | 2016 | 型号 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ oldprice | number | 非必须 | |||
| ├─ newprice | number | 非必须 | |||
| ├─ dayprice | number | 非必须 | |||
| ├─ leftday | number | 非必须 |
Path: /database/?act=upgrade
Method: GET
接口描述:
此为升级成本
(新价格-旧价格)/总天数*剩余天数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| dbname | 是 | dbtest | 数据库名及登陆帐号 |
| room | 是 | 1 | 机房编号 |
| proid | 是 | mssql100 | 新的型号 |
| version | 是 | 2016 | 型号 |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| result | number | 非必须 | |||
| clientid | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ price | number | 非必须 | |||
| ├─ oldprice | number | 非必须 | |||
| ├─ newprice | number | 非必须 | |||
| ├─ dayprice | number | 非必须 | |||
| ├─ leftday | number | 非必须 |