(Softlayer API)如何获取Softlayer中NAS存储的卷状态?

(Softlayer API)如何获取Softlayer中NAS存储的卷状态?,api,ibm-cloud-infrastructure,nas,Api,Ibm Cloud Infrastructure,Nas,我尝试了这段代码,但它没有返回状态 Storage.Service service = Nas.service(client, storageId); service.withMask().volumeStatus(); service.withMask().parentVolume().volumeStatus(); 这与卷状态有关吗?这是我能看到的关于“状态”的唯一数据 软层\硬件\路由器\后端 0 softlayer.com bcr01.dal01.softlayer.com bcr0

我尝试了这段代码,但它没有返回状态

Storage.Service service = Nas.service(client, storageId);
service.withMask().volumeStatus();
service.withMask().parentVolume().volumeStatus();
这与卷状态有关吗?这是我能看到的关于“状态”的唯一数据


软层\硬件\路由器\后端
0
softlayer.com
bcr01.dal01.softlayer.com
bcr01.dal01
1.
1.
软层位置数据中心
3.
达拉斯1
dal01
2.

并非所有存储卷都具有“volumeStatus”属性。通常,仅当存储卷正在进行活动事务时,才会设置此属性

并非所有存储卷都具有“volumeStatus”属性。通常,仅当存储卷正在进行活动事务时,才会设置此属性

下表可帮助您根据
复制状态获取
状态
作为门户:

Volume Type          Replication Status    Status displayed in Portal
Non Endurance         N/A                   Active
Endurance – replica   FAILOVER_COMPLETED    Active
Endurance - primary   FAILOVER_COMPLETED    Inactive
Endurance - Replica   FAILBACK_COMPLETED    Inactive
Endurance - primary   FAILBACK_COMPLETED    Active
Endurance – replica   Null                  Inactive
Endurance – primary   Null                  Active

我希望它能帮助您。

下面是一个表格,可以帮助您根据
复制状态获得
状态作为门户:

Volume Type          Replication Status    Status displayed in Portal
Non Endurance         N/A                   Active
Endurance – replica   FAILOVER_COMPLETED    Active
Endurance - primary   FAILOVER_COMPLETED    Inactive
Endurance - Replica   FAILBACK_COMPLETED    Inactive
Endurance - primary   FAILBACK_COMPLETED    Active
Endurance – replica   Null                  Inactive
Endurance – primary   Null                  Active

希望对您有所帮助。

您好,我无法获取
存储状态
信息。我建议你开一张与这个问题相关的票。我无法获取
存储状态
信息。我建议你开一张与这个问题相关的票。当做