如何订购SoftLayer_Virtual_ReservedCapacityGroup [英] how to order SoftLayer_Virtual_ReservedCapacityGroup
问题描述
最近,IBM Bluemix发布了预留虚拟服务器(SoftLayer_Virtual_ReservedCapacityGroup).
我们检查了一个相对的API.
- SoftLayer_Virtual_ReservedCapacityGroup
- SoftLayer_Virtual_ReservedCapacityGroup_Instance
- SoftLayer_Account :: getActiveReservedCapacityAgreements
- SoftLayer_Virtual_Guest_Status(1009)
我们找不到如何创建保留的容量组.
我们使用API( placeorder )进行订购.
使用此api,每个产品都有相应的容器.
但没有有关保留容量组的容器.
要订购SoftLayer_Virtual_ReservedCapacityGroup,您可以使用以下rest api:
方法:开机自检
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/verifyOrder
用您的凭据替换[用户名]和[apiKey].
身体:杰森
{
"parameters":[
{
"complexType":"SoftLayer_Container_Product_Order_Virtual_ReservedCapacity",
"backendRouterId": 11111,
"name": "test",
"packageId":1059,
"prices":[
{
"id":217601,
"categories": [
{
"categoryCode": "reserved_capacity",
"id": 2060,
"name": "Reserved Capacity"
}
],
"item": {
"capacity": "12",
"description": "B1.4x16 (1 Year Term)",
"id": 12293,
"keyName": "B1_4X16_1_YEAR_TERM"
}
}
],
"quantity":1,
"useHourlyPricing": true
}
]
}
参考:
https://softlayer.github.io/reference/datatypes/SoftLayer_Container_Product_Order_Virtual_ReservedCapacity/
要获取可用的"backendRouterId",您可以使用以下rest调用: 方法:GET 您将收到类似以下示例的答复: 我为达拉斯13"选择了"backendRouterId",您可以选择所需的任何数据中心. 参考: https://softlayer.github.io/reference/services/SoftLayer_Network_Pod/getAllObjects/ 要获取预留容量"的商品价格ID,您可以使用以下剩余api: 方法:GET 请记住,您选择的商品价格ID必须与"backendRouterId"位于同一位置. 没有地点的商品价格是标准价格,这意味着所有地点都可以使用. 参考: https://softlayer.github.io/reference/services/SoftLayer_Product_Package/getItemPrices/ recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup). We checked a relative API. And we can't find how to create reserved capacity group. we are using API(placeorder) for order. Looking this api, there are containers about each product. but there is no container about reserved capacity group. To order a SoftLayer_Virtual_ReservedCapacityGroup you can use the following rest api: Method: POST Replace the [username] and [apiKey] with your credentials. Body: Json To get the available "backendRouterId" you can use the below rest call: Method: GET You will get a response like this example: I selected the "backendRouterId" for "Dallas 13", you can choose any datacenter that you want. Reference: https://softlayer.github.io/reference/services/SoftLayer_Network_Pod/getAllObjects/ To get the item prices ID for "Reserved Capacity" you can use this rest api: Method: GET Keep in mind the item price id that you choose has to be in the same location that the "backendRouterId". The item prices that do not have locations are standard, it means that are available for all locations. Reference: https://softlayer.github.io/reference/services/SoftLayer_Product_Package/getItemPrices/ 这篇关于如何订购SoftLayer_Virtual_ReservedCapacityGroup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Network_Pod/getAllObjects
{
"backendRouterId": 11111,
"backendRouterName": "bcr01a.dal13",
"datacenterId": 1854895,
"datacenterLongName": "Dallas 13",
"datacenterName": "dal13",
"frontendRouterId": 22222,
"frontendRouterName": "fcr01a.dal13",
"name": "dal13.pod01"
},
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/1059/getItemPrices?objectMask=mask[categories,pricingLocationGroup[locations]]
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/verifyOrder
{
"parameters":[
{
"complexType":"SoftLayer_Container_Product_Order_Virtual_ReservedCapacity",
"backendRouterId": 11111,
"name": "test",
"packageId":1059,
"prices":[
{
"id":217601,
"categories": [
{
"categoryCode": "reserved_capacity",
"id": 2060,
"name": "Reserved Capacity"
}
],
"item": {
"capacity": "12",
"description": "B1.4x16 (1 Year Term)",
"id": 12293,
"keyName": "B1_4X16_1_YEAR_TERM"
}
}
],
"quantity":1,
"useHourlyPricing": true
}
]
}
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Network_Pod/getAllObjects
{
"backendRouterId": 11111,
"backendRouterName": "bcr01a.dal13",
"datacenterId": 1854895,
"datacenterLongName": "Dallas 13",
"datacenterName": "dal13",
"frontendRouterId": 22222,
"frontendRouterName": "fcr01a.dal13",
"name": "dal13.pod01"
},
https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/1059/getItemPrices?objectMask=mask[categories,pricingLocationGroup[locations]]