简体   繁体   English

通过softlayer API订购可移植子网

[英]Ordering a portable subnet through the softlayer API

I would like to order a portable subnet through the softlayer API. 我想通过softlayer API订购可移植子网。

I understand that I can use the Product_Order service, to place the order. 我了解可以使用Product_Order服务下订单。

I should then receive back an OrderID in the response object. 然后,我应该在响应对象中收到一个OrderID。

I can then filter getSubnets on the Account service with this orderID to find my subnet. 然后,我可以使用此orderID过滤帐户服务上的getSubnets,以查找我的子网。

I have a few questions about this though: 我对此有一些疑问:

1) If my order goes into status "PENDING_APPROVAL", will the subnet object exist in getSubnets at that point? 1)如果我的订单进入状态“ PENDING_APPROVAL”,那么该子网对象在那时将存在于getSubnets中吗?

2) Do I need to wait for it to get to "APPROVED" status before the subnet object is created? 2)在创建子网对象之前,我是否需要等待其变为“已批准”状态?

3) Can I guarantee that the subnet object will exist once I am in "APPROVED" state, or could there be a time delay while it is created? 3)我可以保证子网对象一旦处于“ APPROVED”状态就将存在,还是在创建时会有时间延迟?

4) Also is there a status that represents when an order has been cancelled? 4)是否有代表取消订单的状态?

My concern is being able to differentiate between: 我关心的是能否区分:

"I can't find a subnet referring to this order ID, because it hasn't been created yet" “我找不到引用此订单ID的子网,因为尚未创建”

and

"I can't find a subnet referring to this order ID, because the order has been cancelled and the subnet is now deleted". “我找不到引用此订单ID的子网,因为该订单已被取消并且该子网现在已删除”。

5) Can the status flag help me with this? 5)状态标志可以帮助我吗?

Many thanks! 非常感谢!

1) If my order goes into status "PENDING_APPROVAL", will the subnet object exist in getSubnets at that point? 1)如果我的订单进入状态“ PENDING_APPROVAL”,那么该子网对象在那时将存在于getSubnets中吗?

That only means that your order has been submitted to softlayer, now if everthing goes fine your order will be approved automatically otherwise a Softlayer's employee will have to approve it manually. 这仅意味着您的订单已提交到softlayer,现在,如果一切顺利,您的订单将自动获得批准,否则Softlayer的员工将必须手动批准该订单。

2) Do I need to wait for it to get to "APPROVED" status before the subnet object is created? 2)在创建子网对象之前,我是否需要等待其变为“已批准”状态?

When the status is changed to "APPROVED" the process to provision your network subnet is started, the time that this process takes is variable and sometimes the process could fail in that case a softlayer's employee will review what was wrong and try to fix it if he cannot fix it he will contact you. 当状态更改为“已批准”时,配置您的网络子网的过程将启动,该过程所需的时间是可变的,在某些情况下该过程可能会失败,在这种情况下,软件层的员工将检查出什么问题并尝试修复他无法解决它,他会与您联系。 When your device pass by this status you can start querying for your subnet it should be available soon. 当您的设备通过此状态时,您可以开始查询您的子网,它应该很快就会可用。

3) Can I guarantee that the subnet object will exist once I am in "APPROVED" state, or could there be a time delay while it is created? 3)我可以保证子网对象一旦处于“ APPROVED”状态就将存在,还是在创建时会有时间延迟?

Nop, it only means that the provisioning process of your fdevice has been started. 否,这仅意味着fdevice的配置过程已开始。 It is likely that you can query the ID of the device, but that does not mean that the device is ready to use, only when the transaction is completed you will be sure that the device is ready to use (Note: when the provisioning process starts a transaction is created) 您很可能可以查询设备的ID,但这并不意味着该设备可以使用,只有在事务完成后,您才能确保该设备可以使用(请注意:供应过程中开始创建交易)

4) Also is there a status that represents when an order has been cancelled? 4)是否有代表取消订单的状态?

yes there are an status for that it should be "CANCELLED" that status only can be changed by Sofltayer's employees when the status order is "PENDING_APPROVAL", if the status is "APPROVED" the order cannot be canceled. 是的,状态为“已取消”,状态订单为“ PENDING_APPROVAL”时,只能由Sofltayer的员工更改状态;如果状态为“ APPROVED”,则无法取消该订单。

My concern is being able to differentiate between: 我关心的是能否区分:

"I can't find a subnet referring to this order ID, because it hasn't been created yet" “我找不到引用此订单ID的子网,因为尚未创建”

If the order has been APPROVED you should be able to see soon the device, you just need to keep querying, if after a couple of minutes you are not able to see the device is likely due to something went wrong at provisioning time. 如果订单已获得批准,您应该可以很快看到该设备,您只需要继续查询,如果几分钟后仍看不到该设备很可能是由于预配时出现了问题所致。 When the device is in Provisioning process a transaction is created you can see the transaction associated to your device using this method: http://sldn.softlayer.com/reference/services/SoftLayer_Network_Subnet/getActiveTransaction 当设备处于预配过程中时,将创建一个事务,您可以使用以下方法查看与您的设备相关联的事务: http : //sldn.softlayer.com/reference/services/SoftLayer_Network_Subnet/getActiveTransaction

The transaction can pass by several status, you could monitor all those status in order to know if everything is fine. 事务可以传递多个状态,您可以监视所有这些状态以了解一切是否正常。

and

"I can't find a subnet referring to this order ID, because the order has been cancelled and the subnet is now deleted". “我找不到引用此订单ID的子网,因为该订单已被取消并且该子网现在已删除”。

If the status is cancelled the subnet has never been created. 如果状态被取消,则从未创建子网。

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM