目前我檢查快照空間是否沒有配置給我的Endurance塊存儲,然後嘗試請求快照空間。如何查詢Container_Product_Order_Network_Storage_Enterprise_Snapshot的packageIds列表及其相應的大小範圍?
iscsi_id = helpers.resolve_id(iscsi_mgr.resolve_ids, iscsi_identifier[0],'iSCSI')
storage = SL.instance(sl_config).storage.getObject(mask=obj_mask, id=iscsi_id)
if 'snapshotCapacityGb' not in storage:
print "Error: there is no snapshot space allocated for Volume ID: {0}".format(iscsi_id)
order = {
"complexType": "SoftLayer_Container_Product_Order_Network_Storage_Enterprise_SnapshotSpace_Upgrade",
"packageId": 240,
"prices": [{
"id": 144295
}],
"volumeId": iscsi_id
}
SL.instance(sl_config).storage_order.verifyOrder(order)
作爲回報,我得到
faultCode=SoftLayer_Exception_Public, faultString=The price for 10 GB Storage Space (#144295) is not valid for location
在哪裏/我怎樣才能得到快照空間「ID」的映射,要求妥善存放?