Search code examples
rubyrestibm-cloud-infrastructure

Querying osFormatType for Block Storage


I know I can use the following to order Performance storage, but what API endpoint (and object masks) can I use to query a list of osFormatTypes?

{
  "parameters": [
    {
      "packageId": 222,
      "location": 154820,
      "osFormatType": {
        "id": 12,
        "keyName": "LINUX"
      },
      "complexType": "SoftLayer_Container_Product_Order_Network_PerformanceStorage_Iscsi",
      "prices": [
        {
          "id": 40672   # Block Storage (Performance)
        },
        {
          "id": 40682   # 20 GB Storage Space
        },
        {
          "id": 40792   # 100 IOPS
        }
      ],
      "quantity": 1
    }
  ]
}

Thanks!


Solution

  • Try the following Rest request:

    https://$user:[email protected]/rest/v3/SoftLayer_Network_Storage_Iscsi_OS_Type/getAllObjects
    
    Method: Get
    

    References: