[英]How do I provision an hourly bare metal server from a flex image using the softlayer python API
I bumped into this article: https://sldn.softlayer.com/blog/phil/Dedicated-server-ordering-Flex-Image-and-Python But it's from 2012, the Softlayer API has progressed since then, and it doesn't indicate how to provision onto an hourly server. 我碰到了这篇文章: https : //sldn.softlayer.com/blog/phil/Dedicated-server-ordering-Flex-Image-and-Python但是从2012年开始,Softlayer API从那时起就取得了进步,但是它没有t指示如何配置到每小时服务器上。
Is there a way to do this? 有没有办法做到这一点? And is there a more up-to-date way of provisioning onto a monthly server (without using prices)
以及是否有更新的方式配置到月度服务器上(不使用价格)
Thanks Graham 谢谢格雷厄姆
The basics have not change here you can see up dated articles about orders and prices: 基本知识没有改变,您可以在这里看到有关订单和价格的过时文章:
http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You http://sldn.softlayer.com/blog/bpotter/going-further-softlayer-api-python-client-part-3 http://sldn.softlayer.com/blog/cmporter/基于位置的 定价和您 -http: //sldn.softlayer.com/blog/bpotter/going-further-softlayer-api-python-client-part -3
To order an hourly bare metal server you need to pick hourly prices, you can know that an price is charged hourly if it contains the "hourlyRecurringFee" property if the price does not contain that property it is charged mountly. 要订购按小时计费的裸机服务器,您需要选择按小时计费的价格,您可以知道,如果包含“ hourlyRecurringFee”属性的价格按小时计费,如果该价格不包含按小时计费的属性。
Another way to order hourly servers is using the: https://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createObject method 订购每小时服务器的另一种方法是使用: https : //sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createObject方法
you can see more information in these articles: http://sldn.softlayer.com/blog/bpotter/ordering-bare-metal-servers-using-softlayer-api http://sldn.softlayer.com/blog/phil/getting-started-ccis 您可以在以下文章中查看更多信息: http : //sldn.softlayer.com/blog/bpotter/ordering-bare-metal-servers-using-softlayer-api http://sldn.softlayer.com/blog/phil/越来越开工,CCIS
If you take a look documentation about the https://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject method you will see that for set the image template you just need to configure the property: 如果您查看有关https://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject方法的文档,您会看到要设置图像模板,您只需要配置该属性:
"blockDeviceTemplateGroup": {
"globalIdentifier": "07beadaa-1e11-476e-a188-3f7795feb9fb"
}
This will create a CCI server, however if you want to create a bare metal server you need to use the https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createObject method but with this method you are not able to set the image template, if you want to create a Bare metal server with flex image you need to use the placeOrder method (the approach using prices ) 这将创建一个CCI服务器,但是,如果您要创建一个裸机服务器,则需要使用https://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/createObject方法,但无法使用此方法进行设置图像模板,如果要使用Flex图像创建Bare metal服务器,则需要使用placeOrder方法(使用price的方法)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.