订购新消息队列并访问其凭据的 SoftLayer API 是什么?
What is the SoftLayer API to order a new message queue and access its credentials?
我需要以编程方式订购一个新的软层消息队列帐户。这与 control.softlayer.com 门户中服务->消息->"Order Message Queue" 下执行的功能相同。
任何人都可以为此指出 API 吗?
谢谢。
请尝试以下 Rest 示例:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
注意:当订单准备好时,从 verifyOrder
更改为 placeOrder
。
Method: POST
{
"parameters": [
{
"location": "DALLAS05",
"packageId": 212,
"prices": [
{
"id": 20826
}
],
"quantity": 1,
"complexType": "SoftLayer_Container_Product_Order_Network_Message_Queue"
}
]
}
要获取套餐212的有效价格,请执行:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/212/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]]]
Method: GET
部分参考资料:
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItemPrices http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getAllObjects
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package
http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You
https://knowledgelayer.softlayer.com/procedure/access-message-queue-account-credentials
https://sldn.softlayer.com/article/message-queue-getting-started
我需要以编程方式订购一个新的软层消息队列帐户。这与 control.softlayer.com 门户中服务->消息->"Order Message Queue" 下执行的功能相同。
任何人都可以为此指出 API 吗?
谢谢。
请尝试以下 Rest 示例:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
注意:当订单准备好时,从 verifyOrder
更改为 placeOrder
。
Method: POST
{
"parameters": [
{
"location": "DALLAS05",
"packageId": 212,
"prices": [
{
"id": 20826
}
],
"quantity": 1,
"complexType": "SoftLayer_Container_Product_Order_Network_Message_Queue"
}
]
}
要获取套餐212的有效价格,请执行:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/212/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]]]
Method: GET
部分参考资料:
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItemPrices http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getAllObjects http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You https://knowledgelayer.softlayer.com/procedure/access-message-queue-account-credentials https://sldn.softlayer.com/article/message-queue-getting-started