服务器详情
开发中GET
server/detail请求参数
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
time
integer
必需
data
object
必需
status_text
string
必需
power_status_text
string
必需
id
integer
必需
name
string
必需
uid
integer
必需
product_id
integer
必需
data_center_id
integer
必需
country_id
integer
必需
line_id
integer
必需
system_id
integer
必需
api_id
integer
必需
api_server
string
必需
api_server_id
null
必需
mac
null
必需
ipmi
null
必需
ip
null
主IP
ips
null
多IP数组
ip_number
integer
IP数量
port
integer
端口
username
string
用户名
password
string
登录密码
config
object
服务器配置
extend
object
必需
power_status
integer
必需
status
integer
必需
buy_price
string
必需
renew_price
string
必需
auto_renew
boolean
必需
admin_remark
null
必需
user_remark
null
必需
expire_time
null
必需
open_time
null
必需
create_time
string
必需
update_time
string
必需
delete_time
null
必需
status_class
string
必需
power_status_info
object
必需
time_end_diff
string
必需
system
object
必需
line
object
必需
data_center
object
必需
time_range_text
string
必需
refresh_time
null
必需
allow_api
boolean
必需
last_task
object
最近任务
product
object
必需
示例
{
"code": 0,
"msg": "",
"time": 1741773587,
"data": {
"status_text": "待开通",
"power_status_text": "未知",
"id": 3628,
"name": "ser174176692656",
"uid": 2,
"product_id": 751,
"data_center_id": 5,
"country_id": 71,
"line_id": 12,
"system_id": 3,
"api_id": 6,
"api_server": "prodcim",
"api_server_id": null,
"mac": null,
"ipmi": null,
"ip": null,
"ips": null,
"ip_number": 0,
"port": 22,
"username": "root",
"password": "U2p5LicQSTKv",
"config": {
"line": "1月",
"system": "CentOS7.1",
"package": "物理测试",
"system_id": "3",
"band_width": 40,
"data_center": "测试一区",
"server_model": " ",
"server_model_id": null,
"server_model_data": {
"cpu": "",
"gpu": "",
"disk": "",
"name": null,
"memory": "",
"cpu_desc": null
}
},
"extend": {
"time": "1",
"product": {
"id": 751,
"api": {
"id": 6,
"desc": null,
"name": "PRODCIM",
"module": "server",
"server": "prodcim",
"status": 1,
"balance": null,
"api_config": {
"panel": "3",
"apiurl": "http://dcimadm.cemtr.vip/",
"password": "ud6jjKgirmK1OVC02XZm5NTjFuTXfaww",
"username": "apiuser"
},
"module_str": "服务器",
"create_time": "2024-08-14 09:46:45",
"update_time": "2025-01-08 11:31:28",
"currencyUnit": null
},
"cid": null,
"cats": null,
"desc": "测试的描述",
"name": "测试物理机",
"sort": 0,
"price": "100",
"api_id": 6,
"module": "server",
"status": 1,
"content": "<p>CPU:INTEL E5-2650 V3</p>\n<p>内存:16GB DDR4 ECC</p>\n<p>硬盘:SSD 240GB *1</p>\n<p>带宽:上行30 mbps 下行50mbps</p>\n<p>IP数:默认1个</p>\n<p>防护:500G</p>",
"is_auto": 1,
"api_config": [],
"module_str": "服务器",
"show_price": {
"name": "1月",
"time": "月",
"price": "100.00",
"price_cn": "0.00",
"promotion": {
"id": 7,
"name": "测试",
"rate": 0,
"type": 2,
"uids": [
2,
3,
4,
5,
7,
8
],
"remark": null,
"status": 1,
"is_deal": 0,
"modules": [
"server"
],
"end_time": 1777564799,
"start_time": 1741190400,
"create_time": "2025-03-06 09:30:49",
"is_register": 0,
"modules_str": "服务器",
"object_type": 1,
"product_ids": [
"751",
"752"
],
"update_time": "2025-03-07 14:49:40",
"price_config": {
"package": {
"4": {
"1month": "22",
"6month": ""
},
"5": {
"1month": "44",
"6month": "55"
},
"6": {
"1year": "66"
}
}
},
"user_group_ids": [
1,
3
]
},
"config_key": "1month",
"sell_price": "100",
"renew_price": "100.00",
"market_price": "0.00",
"price_discount": "0.00",
"price_cn_discount": "0.00",
"renew_price_discount": "0.00"
},
"create_time": "2024-08-14 09:57:05",
"update_time": "2025-01-15 16:37:06",
"extra_config": [],
"price_config": [
{
"name": "1月",
"rate": "1",
"time": "1",
"price": "100",
"cost_price": "50",
"time_range": "month",
"renew_price": "100",
"market_price": ""
},
{
"name": "半年",
"rate": "6",
"time": "6",
"price": "600",
"cost_price": "60",
"time_range": "month",
"renew_price": "599",
"market_price": ""
}
]
},
"buy_form": {
"id": "751",
"qty": "1",
"time": 0,
"module": "server",
"data_id": 5,
"line_id": 12,
"ssh_port": "22",
"price_arr": {
"ip_price": 0,
"gpu_price": 0,
"disk_price": 0,
"flow_price": 0,
"line_price": 0,
"config_total": "45.00",
"memory_price": 0,
"system_price": "1.00",
"package_price": "44",
"protect_price": 0,
"band_width_price": 0,
"data_center_price": 0,
"server_model_price": 0
},
"promotion": {
"id": 7,
"name": "测试",
"rate": 0,
"type": 2,
"uids": [
2,
3,
4,
5,
7,
8
],
"remark": null,
"status": 1,
"is_deal": 0,
"modules": [
"server"
],
"end_time": 1777564799,
"start_time": 1741190400,
"create_time": "2025-03-06 09:30:49",
"is_register": 0,
"modules_str": "服务器",
"object_type": 1,
"product_ids": [
"751",
"752"
],
"update_time": "2025-03-07 14:49:40",
"price_config": {
"package": {
"4": {
"1month": "22",
"6month": ""
},
"5": {
"1month": "44",
"6month": "55"
},
"6": {
"1year": "66"
}
}
},
"user_group_ids": [
1,
3
]
},
"system_id": "3",
"package_id": "5",
"time_range": "month",
"time_value": "1",
"config_total": "45.00",
"config_value": {
"line": "1月",
"system": "CentOS7.1",
"package": "物理测试",
"system_id": "3",
"band_width": 40,
"data_center": "测试一区",
"server_model": null,
"server_model_id": null,
"server_model_data": {
"cpu": "",
"gpu": "",
"disk": "",
"name": null,
"memory": "",
"cpu_desc": null
}
},
"password_type": "1",
"line_bandwidth": 100
},
"time_range": "month",
"create_order_item_id": 160
},
"power_status": 0,
"status": 0,
"buy_price": "145.00",
"renew_price": "145.00",
"auto_renew": false,
"admin_remark": null,
"user_remark": null,
"expire_time": null,
"open_time": null,
"create_time": "2025-03-12 16:08:46",
"update_time": "2025-03-12 16:08:46",
"delete_time": null,
"status_class": "warning",
"power_status_info": {
"name": "未知",
"class": "warning",
"state": "unkown",
"icon": "switch-button"
},
"time_end_diff": "-",
"system": {
"id": 3,
"product_id": 751,
"group_id": 3,
"name": "CentOS7.1",
"price": "1.00",
"create_time": "2024-08-20 15:22:29",
"update_time": "2025-01-15 11:51:20",
"status": 1,
"sort": 0,
"group": {
"icon_url": "http://probill.local/static/image/system/CentOS.svg?v=1741773587",
"id": 3,
"name": "CentOS",
"icon": "sc-icon-centOS",
"status": true,
"sort": 13
}
},
"line": {
"show_price": {
"name": "30-40",
"price": "1",
"time_name": "1月",
"type": "3"
},
"ip_config": [
{
"id": 0,
"number": 111,
"prices": {
"1month": "2",
"6month": "12.00"
}
},
{
"id": 1,
"number": 200,
"prices": {
"1month": "3",
"6month": "18.00"
}
}
],
"id": 12,
"name": "尖沙咀xi",
"product_id": 751,
"data_id": 5,
"charge_type": 1,
"bandwidth_config": [
{
"id": 0,
"max": 40,
"min": 30,
"type": "3",
"prices": {
"1month": "1",
"6month": "6.00"
},
"extend_show": false
},
{
"id": null,
"max": 10,
"min": 1,
"type": "3",
"prices": {
"1month": "",
"6month": ""
},
"extend_show": false
}
],
"flow_config": [],
"protect_config": [
{
"id": null,
"value": 10,
"prices": {
"1month": "",
"6month": ""
}
},
{
"id": null,
"value": 20,
"prices": {
"1month": "10",
"6month": "60.00"
}
}
],
"ipv4_config": [
{
"id": 0,
"number": 111,
"prices": {
"1month": "2",
"6month": "12.00"
}
},
{
"id": 1,
"number": 200,
"prices": {
"1month": "3",
"6month": "18.00"
}
}
],
"ipv6_config": [],
"gpu_config": [],
"extend": {
"ip_group_id": "1",
"protect_ip_group_id": "2"
},
"sort": 10,
"status": 1,
"api_value": 9,
"api_value2": 0,
"bandwidth_type": "3",
"bandwidth_range": {
"min": 1,
"max": 40
}
},
"data_center": {
"id": 5,
"product_id": 751,
"module": "server",
"name": "测试一区",
"country_id": 71,
"city": "香港",
"create_time": "2024-08-20 14:08:51",
"update_time": "2024-08-20 14:08:51",
"sort": 0,
"country": {
"name": "(+852) 中国香港",
"icon_url": "http://probill.local/static/image/country/HK.png",
"id": 71,
"en": "Hongkong",
"zh": "中国香港",
"code": 852,
"locale": "HK",
"preg": "/^(\\+?852\\-?)?[569]\\d{3}\\-?\\d{4}$/"
}
},
"time_range_text": "每月",
"refresh_time": null,
"allow_api": false,
"last_task": {
"type_str": "创建物理机",
"status_info": {
"name": "待处理",
"type": "info",
"alert": "warning",
"icon": "el-icon-loading",
"ing": 1
},
"complete": false,
"id": 20724,
"type": "create_server",
"status": 0,
"progress": 0,
"desc": null,
"response": null
},
"product": {
"module_str": "服务器",
"price": "100",
"show_price": {
"name": "1月",
"price": "100.00",
"sell_price": "100",
"promotion": {
"modules_str": "服务器",
"id": 7,
"name": "测试",
"type": 2,
"modules": [
"server"
],
"product_ids": [
"751",
"752"
],
"object_type": 1,
"user_group_ids": [
1,
3
],
"uids": [
2,
3,
4,
5,
7,
8
],
"rate": 0,
"is_register": 0,
"is_deal": 0,
"start_time": 1741190400,
"end_time": 1777564799,
"create_time": "2025-03-06 09:30:49",
"update_time": "2025-03-07 14:49:40",
"remark": null,
"price_config": {
"package": {
"4": {
"1month": "22",
"6month": ""
},
"5": {
"1month": "44",
"6month": "55"
},
"6": {
"1year": "66"
}
}
},
"status": 1
},
"price_discount": "0.00",
"time": "月",
"market_price": "0.00",
"renew_price": "100.00",
"renew_price_discount": "0.00",
"price_cn": "0.00",
"price_cn_discount": "0.00",
"config_key": "1month"
},
"cats": null,
"id": 751,
"name": "测试物理机",
"desc": "测试的描述",
"content": "<p>CPU:INTEL E5-2650 V3</p>\n<p>内存:16GB DDR4 ECC</p>\n<p>硬盘:SSD 240GB *1</p>\n<p>带宽:上行30 mbps 下行50mbps</p>\n<p>IP数:默认1个</p>\n<p>防护:500G</p>",
"module": "server",
"api_id": 6,
"api_config": [],
"price_config": [
{
"name": "1月",
"rate": "1",
"time": "1",
"price": "100",
"cost_price": "50",
"time_range": "month",
"renew_price": "100",
"market_price": ""
},
{
"name": "半年",
"rate": "6",
"time": "6",
"price": "600",
"cost_price": "60",
"time_range": "month",
"renew_price": "599",
"market_price": ""
}
],
"extra_config": [],
"status": 1,
"cid": null,
"is_auto": 1,
"sort": 0,
"create_time": "2024-08-14 09:57:05",
"update_time": "2025-01-15 16:37:06"
}
}
}
最后修改时间: 6 小时前