简体   繁体   English

如何使用softlayer python API从Flex映像中配置每小时的裸机服务器

[英]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.

相关问题 SoftLayer API:如何获取所有可能的locationGroupId的每小时裸机服务器预设价格 - SoftLayer API: How to get hourly bare metal server preset prices for all possible locationGroupId SoftLayer API硬件:如何使用REST API订购不带操作系统的Bare Metal Server - SoftLayer API Hardware : How to order Bare Metal Server without OS using REST API SoftLayer API:检索裸机服务器的状态 - SoftLayer API: retrieve state of a bare metal server SoftLayer每小时裸机服务器创建过程中与GPU相关的API错误 - GPU-related API Errors for SoftLayer hourly Bare Metal Server creation SoftLayer API: - 如何在创建时获取裸机服务器的 ID - SoftLayer API: - How to get the ID of a bare metal server on create Softlayer:如何从所有发票信息中过滤裸机服务器配置发票信息? - Softlayer: How to filter bare metal server configuration invoice info from all invoice info? Softlayer JAVA API示例获得“每小时/预设配置裸机服务器”的所有配置 - Softlayer JAVA API sample to get all the configurations for “Hourly/Pre-set Configuration Bare Metal Servers” SoftLayer API:具有基本RAID配置的Provisioning Server - SoftLayer API: Provision Server with Basic RAID Configuration 无法使用模板映像配置每小时的裸机服务器 - Unable to provision hourly baremetal server using an template image 如何使用Softlayer REST API使用Flex映像重新加载系统 - How to reload system with flex image using softlayer REST API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM