【问题标题】:How to get cloud object storage information after it's ordered on softlayer?在softlayer上订购后如何获取云对象存储信息?
【发布时间】:2017-02-15 10:29:21
【问题描述】:

我通过以下方法在softlayer上订购了一个云对象存储:

order={'prices': [{'id': 177725}], 'packageId': 206, 'quantity': 1}

result = client['SoftLayer_Product_Order'].placeOrder(order)

我可以看到订单已传递并创建了云对象存储。然后我想获取凭据信息,所以我需要先获取帐户名。但是从信息输出来看:

pp.pprint(结果)

我不知道使用哪个参数来确定刚才创建的云对象存储。

Q1:如何获取刚才创建的云对象存储的账户名或ID信息?

Q2:订购云对象存储时有什么方法可以配置账户名吗?

【问题讨论】:

    标签: object storage ibm-cloud-infrastructure account


    【解决方案1】:

    Q1:可以通过placeOrder方法的响应中生成的orderId,这里是部分代码:

    objectFilter = {"networkStorage": {"billingItem": {"orderItem": {"order": {"id":{"operation": 123123}}}}}}
    
    result  = client['SoftLayer_Account'].getNetworkStorage(filter=objectFilter)
    

    用placeOrder方法响应中生成的orderId替换:123123

    Q2:很遗憾,无法配置账户名

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-11
      • 1970-01-01
      • 2016-05-31
      • 2011-01-13
      • 1970-01-01
      相关资源
      最近更新 更多