获取裸金属实例详情 | 大装置帮助中心
跳到主要内容

获取裸金属实例详情

接口描述

GET /compute/bms/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/bmsInstances/{bms_instance_name}

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称类型必须位置默认值取值范围描述
subscription_namestringpath--订阅
resource_group_namestringpath--资源组
zonestringpath--可用区
bms_instance_namestringpath--裸金属实例标识

请求体(Request Body)

请求示例(Request Example)

curl -L -X GET 'https://management.sensecoreapi.dev/compute/bms/v1/subscriptions/2488c031-873f-4396-8b9e-98c68ca016ae/resourceGroups/default/zones/cn-sh-01a/bmsInstances/bebff67f-f2ee-11ed-8be0-a642d45a3a89' \
-H 'Accept: application/json' \
-H 'Authorization: xxx'

响应参数(Response Parameters)

名称类型描述
idstring裸金属实例资源id
namestring裸金属实例唯一标识
display_namestring裸金属实例名称
descriptionstring裸金属实例资源描述
uidstring裸金属实例资源唯一id
resource_typestring裸金属实例资源类型
creator_idstring创建虚拟卷资源的用户id
owner_idstring占有虚拟卷资源的用户id
tenant_idstring租户id
zonestring可用区
statestring裸金属实例的状态
sku_idstringsku id
tagsmap裸金属实例标签
propertiesobject裸金属实例属性
order_infoobject订单信息
deletedbool裸金属实例资源是否被删除
create_timestring裸金属实例资源创建的时间
update_timestring裸金属实例资源更新的时间

其中,properties的参数如下:

名称类型描述
imagestring部署系统镜像
cloud_initobjectcloud-init配置
gpustringGPU卡数
cpustringCPU核心数
memorystring内存大小
gpu_typestringGPU型号
cpu_typestringCPU型号
cpu_frequencystringCPU频率
networkstring网络属性
subnetsobject子网配置
vpc_idstringVPC id
private_ipstring私有ip
eipobject弹性公网ip
ssh_userstringSSH用户
ssh_passwordstringSSH密码
diskstring硬盘属性
compute_typestring裸金属实例类型
bond1_ipstring裸金属实例bond1 ip地址
volume_mountsobject挂载存储
key_pairsstring密钥对

其中,cloud_init的参数如下:

名称类型描述
ntpstringntp服务器
hostnamestring主机名

其中,subnets的参数如下:

名称类型描述
namestring子网名称
cidrstring子网无类别域间路由
idstring子网id
scopestring子网范围
providerstring子网提供者
network_typestirng子网网络类型

其中,eip的参数如下:

名称类型描述
uuidstring弹性ip uuid
eip_idstring弹性ip id
rule_idstring规则id
protocolstring协议
private_portstring私有端口

其中,volume_mounts的参数如下:

名称类型描述
namestring存储卷名称
host_pathstring宿主路径
mount_pathstring挂载路径
read_onlybool只读
volume_attributesobject存储卷特性

其中,volume_attributes的参数如下:

名称类型描述
volume_idstring卷id
zonestring卷空间
hoststring卷宿主
portstring卷端口
uristring卷uri

其中,state集群状态有如下情况:

状态含义
PENDING待办中
RUNNING运行中
STOPPING停止中
STOP停止
BOOTING启动中
REBOOTING重启中
RESETTING重置中
DELETING删除中
DELETED已删除
ERROR实例错误
FAILED创建或操作失败

响应示例(Response Example)

{
"id": "/subscriptions/2488c031-873f-4396-8b9e-98c68ca016ae/resourceGroups/default/zones/cn-sh-01a/bmsInstances/bebff67f-f2ee-11ed-8be0-a642d45a3a89",
"name": "bebff67f-f2ee-11ed-8be0-a642d45a3a89",
"display_name": "zwlTestBatchTask",
"description": "",
"uid": "bebff6e6-f2ee-11ed-8be0-a642d45a3a89",
"resource_type": "compute.bms.v1.instance",
"creator_id": "f8b1447d-ceca-4b51-924e-01cda5da2a4f",
"owner_id": "f8b1447d-ceca-4b51-924e-01cda5da2a4f",
"tenant_id": "2488c031-873f-4396-8b9e-98c68ca016ae",
"zone": "cn-sh-01a",
"state": "PENDING",
"sku_id": "4dffa098-3e6f-4b1f-967c-63030ec0fa4f",
"tags": {},
"properties": {
"image": "Rocky 8.6",
"cloud_init": {
"ntp": "",
"hostname": ""
},
"gpu": "8",
"cpu": "128",
"memory": "1024GB",
"gpu_type": "Nvidia A100",
"cpu_type": "AMD",
"cpu_frequency": "",
"network": "10G双口以太网卡+ 25G双口RoCE网卡+ 2*200G RoCE网卡",
"subnets": [
{
"name": "snt-dmstest0929-3bcdb984",
"cidr": "10.119.208.0/20",
"id": "3cf7b452-fe44-4dec-9b32-959c53bbe26f",
"scope": "TRAINING",
"provider": "OVN",
"network_type": ""
},
{
"name": "snt-dmstest0929-44c1d43c",
"cidr": "10.119.192.0/20",
"id": "93b22b0f-2158-4f24-882d-38e6b2aa9b82",
"scope": "TRAINING",
"provider": "OVN",
"network_type": ""
},
{
"name": "sn-dmstest0929-8313337e",
"cidr": "10.119.252.128/27",
"id": "8313337e-4128-4461-a597-978d0b37eae0",
"scope": "SERVICE",
"provider": "CONTROLLER",
"network_type": ""
},
{
"name": "sn-dmstest0929-4b451ef8",
"cidr": "10.119.244.128/27",
"id": "4b451ef8-3690-47ac-8492-7173d4a92c45",
"scope": "DATA",
"provider": "CONTROLLER",
"network_type": ""
},
{
"name": "sn-dmstest0929-ade7d5c0",
"cidr": "10.119.236.128/27",
"id": "ade7d5c0-0f9e-4bfe-9622-0910efeaa8e3",
"scope": "TRAINING",
"provider": "CONTROLLER",
"network_type": ""
},
{
"name": "sn-dmstest0929-9077f832",
"cidr": "10.119.0.0/20",
"id": "9077f832-d81f-4752-a60c-df5ced309e48",
"scope": "SERVICE",
"provider": "OVN",
"network_type": ""
}
],
"vpc_id": "478d8bae-3fa6-11ed-a7a1-d677f66ee1b2",
"private_ip": "",
"eip": [],
"ssh_user": "zwl",
"ssh_password": "******",
"disk": "2*960G SATA SSD 系统盘(RAID1),4TB NVMe SSD数据盘",
"compute_type": "GPU",
"bond1_ip": "",
"volume_mounts": [],
"key_pairs": []
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": true,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "",
"order_type": "OT_RENEW",
"order_id": "4f4f1973232148916654080",
"start_time": "2023-05-15T07:04:33Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "",
"end_time": "2023-11-15T23:59:59Z",
"auto_convert_postpaid": false
},
"deleted": false,
"create_time": "2023-05-15T07:04:35.312775Z",
"update_time": "2023-10-09T01:00:05.303630Z"
}