SoftLayer blockstorage status

时间:2016-03-15 12:02:10

标签: api ibm-cloud-infrastructure

我正在尝试检索SoftLayer Block存储。

我使用以下网址:

https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask[iscsiNetworkStorage.volumeStatus]

我收到了JSON数据。

我想知道的是,如果ISCSI存储状态是"ACTIVE"或类似的东西。

以下是收到的JSON数据:

"capacityGb":20
"volumeStatus":"PROVISION_COMPLETED"
"volumeStatus":{"createDate":"2016-02-02T00:49:19-06:00","message":"Volume Provisioning has completed.","scheduleId":null,"typeId":314,"volumeId":8904469}}

我如何了解状态?

1 个答案:

答案 0 :(得分:0)

用于了解status of a Network storage volume的属性为volumeStatus,请参阅:SoftLayer_Network_Storage datatypes

似乎'volumeStatus'值为null时,该项为“非活动”,否则如果它具有值(“Volume Provisioning has completed。”),则该项为“active”。

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getIscsiNetworkStorage?objectMask=mask[username,volumeStatus]

Method: GET

<强>参考文献:

SoftLayer_Account::getIscsiNetworkStorage

相关问题