1
votes

I tried this code but it doesn't return status.

Storage.Service service = Nas.service(client, storageId);
service.withMask().volumeStatus();
service.withMask().parentVolume().volumeStatus();

And is this related to the volume status? This is the only data that I can see about "status"

<networkDevice>
    <complexType>SoftLayer_Hardware_Router_Backend</complexType>
        <bareMetalInstanceFlag>0</bareMetalInstanceFlag>
        <domain>softlayer.com</domain>
        <fullyQualifiedDomainName>bcr01.dal01.softlayer.com</fullyQualifiedDomainName>
        <hostname>bcr01.dal01</hostname>
        <id>1</id>
        <notes></notes>
        <provisionDate />
        <serviceProviderId>1</serviceProviderId>
        <serviceProviderResourceId />
        <datacenter>
            <complexType>SoftLayer_Location_Datacenter</complexType>
            <id>3</id>
            <longName>Dallas 1</longName>
            <name>dal01</name>
            <statusId>2</statusId>
        </datacenter>
    </networkDevice>
2
Hi, I'm not able to get Storage Status information. I suggest you to open a ticket related to this question. Regards - mcruz

2 Answers

0
votes

Not all storage volumes will have a "volumeStatus" property. This property will generally only be set if an active transaction is going on with the storage volume.

0
votes

Below is a table can help you get status as portal according to replication status:

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

I hope it help you.