0
votes

Document is wrong: https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage

Refer to below REST call and response

https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject.json?objectMask=mask[id,storageTierLevel]

{
    "id": 13923041,
    "storageTierLevel":
    {
        "allowCancellationFlag": 1,
        "associatedBillingItemId": "123709989",
        "cancellationDate": null,
        "categoryCode": "storage_tier_level",
        "createDate": "2016-08-31T02:09:15-07:00",
        "cycleStartDate": "2016-11-01T02:18:19-07:00",
        "description": "0.25 IOPS per GB",
        "id": 123709993,
        "laborFee": "0",
        "laborFeeTaxRate": "0",
        "lastBillDate": "2016-11-01T02:18:19-07:00",
        "modifyDate": "2016-11-01T02:18:19-07:00",
        "nextBillDate": "2016-12-01T00:00:00-06:00",
        "oneTimeFee": "0",
        "oneTimeFeeTaxRate": "0",
        "orderItemId": 149747285,
        "parentId": 123709989,
        "recurringFee": "0",
        "recurringFeeTaxRate": "0",
        "recurringMonths": 1,
        "serviceProviderId": 1,
        "setupFee": "0",
        "setupFeeTaxRate": "0"
    }
}
1
thanks we will report it. - Nelson Raul Cabero Mendoza
Is this type a Billing_Item? I can have my datatype fixed before your metadata or document fixed. - Wilma
I added an answer please see it - Nelson Raul Cabero Mendoza

1 Answers

0
votes

The issue is not with documentation, the issue is related to the objectMask. Currently it is returning a billingItem item which is wrong.

if you execute this request:

GET https://$USERNAME:[email protected]/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=mask[id,storageTierLevel,billingItem[children]]

you will notice that one of the children of the billingItem has the same value displayed on "storageTierLevel" property.

I have no idea when they will fix it.

meanwhile you can use this request:

GET https://$USERNAME:$APIKEYapi.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=storageTierLevel;id

Regards