智简魔方文档

POST 验证下单

接口概览

项目内容
文档类型前台接口
请求方式POST
接口地址/console/v1/product/{id}/remf_cloud/validate_settle
所属业务模块
来源模块/系统魔方云代理(自定义配置)
认证方式Bearer Token(用户令牌)

完整请求

请求

bash
正在加载示例…

失败请求

bash
正在加载示例…

接口说明

验证下单

请求体

json
正在加载示例…

请求参数

名称位置类型必选说明
idpathinteger(int32)VPC网络ID
bodybodyobject
body.downstream_client_idbodyinteger(int32)下游用户ID(api时可用)
body.custombodyobject
body.custom.duration_idbodyinteger(int32)周期ID
body.custom.recommend_config_idbodyinteger(int32)套餐ID
body.custom.data_center_idbodyinteger(int32)数据中心ID
body.custom.cpubodyinteger(int32)CPU
body.custom.memorybodyinteger(int32)内存
body.custom.system_diskbodyobject
body.custom.system_disk.sizebodyinteger(int32)系统盘大小(G)
body.custom.system_disk.disk_typebodystring系统盘类型
body.custom.data_diskbody[object]
body.custom.data_disk[].sizebodyinteger(int32)数据盘大小(G)
body.custom.data_disk[].disk_typebodystring数据盘类型
body.custom.line_idbodyinteger(int32)线路ID
body.custom.bwbodyinteger(int32)带宽(Mbps)
body.custom.flowbodyinteger(int32)流量(G)
body.custom.peak_defencebodyinteger(int32)防御峰值(G)
body.custom.gpu_numbodyinteger(int32)显卡数量
body.custom.image_idbodyinteger(int32)镜像ID
body.custom.backup_numbodyinteger(int32)备份数量
body.custom.snap_numbodyinteger(int32)快照数量
body.custom.ip_mac_bind_enablebodyinteger(int32)嵌套虚拟化(0=关闭,1=开启)
body.custom.ipv6_num_enablebodyinteger(int32)是否使用IPv6(0=关闭,1=开启)
body.custom.nat_acl_limit_enablebodyinteger(int32)是否启用NAT转发(0=关闭,1=开启)
body.custom.nat_web_limit_enablebodyinteger(int32)是否启用NAT建站(0=关闭,1=开启)
body.custom.resource_package_idbodyinteger(int32)资源包ID
body.custom.network_typebodystring网络类型(normal=经典网络,vpc=VPC网络)
body.custom.vpcbodyobject
body.custom.vpc.ipsbodystringVPCIP段

成功响应

json
正在加载示例…

失败响应 400:请求参数或业务校验失败

json
正在加载示例…

失败响应 401:未认证或登录已失效

json
正在加载示例…

失败响应 403:无权执行当前操作

json
正在加载示例…

失败响应 404:接口或业务资源不存在

json
正在加载示例…

失败响应 500:服务器内部错误

json
正在加载示例…

响应状态

状态码状态码含义说明数据模型
200OK成功响应内联对象
400Bad Request请求参数或业务校验失败内联对象
401Unauthorized未认证或登录已失效内联对象
403Forbidden无权执行当前操作内联对象
404Not Found接口或业务资源不存在内联对象
500Internal Server Error服务器内部错误内联对象

响应参数

状态码 200

名称类型必选约束中文名说明
statusinteger(int32)状态码
msgstring提示信息
dataobject
data.pricestring价格
data.renew_pricestring续费价格
data.billing_cyclestring周期
data.durationinteger(int32)周期时长
data.descriptionstring订单子项描述
data.base_pricestring基础价格
data.billing_cycle_namestring周期名称多语言
data.preview[object]
data.preview[].namestring配置项名称
data.preview[].valuestring配置项值
data.preview[].pricestring配置项价格
data.discountstring用户等级折扣
data.order_item[object]
data.order_item[].typestring订单子项类型(addon_idcsmart_client_level=用户等级)
data.order_item[].rel_idinteger(int32)关联ID
data.order_item[].amountnumber(double)子项金额
data.order_item[].descriptionstring子项描述

失败状态码 400、401、403、404、500 共用以下结构:

名称类型必选约束中文名说明
statusinteger(int32)错误状态码
msgstring错误提示