裸金属服务器 BMS-创建裸金属服务器(OpenStack原生):请求示例

时间:2024-10-22 15:30:18

请求示例

创建裸金属服务器,其中镜像ID为1a6635d8-afea-4f2b-abb6-27a202bad319,规格为physical.o2.medium,名称为bms_name01,可用区为az-dc-1,网络UUID为8470310b-bfa2-4edf-8f64-d15196b2b2c9。
1
POST https://{E CS  Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
{
    "server": {
        "imageRef": "1a6635d8-afea-4f2b-abb6-27a202bad319",
        "flavorRef": "physical.o2.medium",
        "name": "bms_name01",
        "availability_zone": "az-dc-1",
        "networks": [
            {
                "uuid": "8470310b-bfa2-4edf-8f64-d15196b2b2c9"
            }
        ]
    }
}
support.huaweicloud.com/api-bms/bms_api_0706.html