查询服务器详情
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/{domain_id}/servers/{server_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
domain_id |
是 |
String |
path中租户的账号ID |
server_id |
是 |
String |
服务器ID |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
server |
Server object |
服务器详情 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
资源ID |
domain_id |
String |
账号ID |
edge_site_id |
String |
站点ID |
name |
String |
名称 |
status |
String |
|
offering_id |
String |
商品ID |
spec |
ServerResourceSpec object |
服务器资源规格 |
market_options |
MarketOptions object |
计费信息 |
location |
LayoutLocation object |
设备位置信息 |
created_at |
DateTime |
创建时间 |
updated_at |
DateTime |
更新时间 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
服务器规格ID |
name |
String |
服务器规格名称。 |
server_type |
String |
服务器类型。 COMPUTE: 计算服务器 NETWORK: 网络服务器 BLOCK_STORAGE: 硬盘存储服务器 |
flavor_type |
String |
服务器发放的资源规格类型 |
performance_type |
String |
服务器规格分类。如通用计算型/云桌面型/网关型等。 |
power |
Integer |
服务器功率(单位:w) |
unit |
Integer |
设备高度。U位数 |
vcpus |
Integer |
可用虚拟CPU核数 |
memory |
Integer |
可用内存大小。单位:GB |
storage_capacity |
Integer |
可用存储容量。单位:TiB |
cpu_name |
String |
名称 |
cpu_architecture |
String |
CPU架构 |
参数 |
参数类型 |
描述 |
---|---|---|
charge_mode |
String |
计费模式。 |
prepaid_options |
PrepaidOptions object |
包周期计费信息 |
strategies |
Array of Strategy objects |
销售策略列表 |
请求示例
查询服务器详情
GET https://{ies_endpoint}/v2/{domain_id}/servers/{server_id}
响应示例
状态码:200
successful operation
{ "server" : { "id" : "00000000-0000-000-0000-000000000000", "domain_id" : "00000000000000000000000000000000", "edge_site_id" : "00000000-0000-000-0000-000000000000", "name" : "server01", "status" : "USING", "offering_id" : "00000000-0000-000-0000-000000000000", "spec" : { "id" : "00000000-0000-000-0000-000000000000", "name" : "S7", "server_type" : "COMPUTE", "flavor_type" : null, "performance_type" : "normal", "power" : 10, "unit" : 3, "vcpus" : 100, "memory" : 500, "storage_capacity" : 3000, "cpu_name" : "", "cpu_architecture" : "X86" }, "market_options" : { "charge_mode" : "prepaid", "prepaid_options" : { "order_id" : "CS2507010000LFU8W", "pay_mode" : "FULL" } }, "created_at" : "2025-07-01T00:00:00.000000Z", "updated_at" : "2025-07-01T01:00:00.000000Z" } }
状态码
状态码 |
描述 |
---|---|
200 |
successful operation |
错误码
请参见错误码。