Click or drag to resize

IWsEndUserGetPriceList Method

This method get account’s price list. By GetPriceList() method it’s possible get authenticated account’s price list. Hour price of resources can change depending by hypervisor type and customer type

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<PriceList[]> GetPriceList()

Return Value

Type: WsResultPriceList
Examples
It’s possible call method by follow notation:
https://api.dc1.computing.cloud.it/wsenduser/v1.3/jsonp/GetPriceList/ArubaCloud.Response.pricelist.call/ARU-0000/e20cf5fa-ce5c-489c-9160-b26efdc1bad8

Below an example of response:

ArubaCloud.Response.pricelist.call({
  "ExceptionInfo": null,
  "ResultCode": 0,
  "ResultMessage": null,
  "Success": true,
  "Value": [
    {
      "CurrencyCode": "EUR",
      "Values": [
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 1,
          "ResourceType": 2,
          "TimeUnitInHours": 1,
          "Value": 0.0250
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 2,
          "ResourceType": 1,
          "TimeUnitInHours": 1,
          "Value": 0.0050
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 3,
          "ResourceType": 3,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 4,
          "ResourceType": 2,
          "TimeUnitInHours": 1,
          "Value": 0.0400
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 5,
          "ResourceType": 1,
          "TimeUnitInHours": 1,
          "Value": 0.0050
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 6,
          "ResourceType": 3,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 7,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 8,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 10,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 11,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 12,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 13,
          "ResourceType": 7,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 14,
          "ResourceType": 8,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 15,
          "ResourceType": 9,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 16,
          "ResourceType": 7,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 17,
          "ResourceType": 8,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 18,
          "ResourceType": 9,
          "TimeUnitInHours": 1,
          "Value": 0.0005
        },
        {
          "BillingType": 1,
          "HypervisorType": 0,
          "Modifiers": [],
          "ProductID": 19,
          "ResourceType": 5,
          "TimeUnitInHours": 1,
          "Value": 0.0100
        },
        {
          "BillingType": 1,
          "HypervisorType": 0,
          "Modifiers": [],
          "ProductID": 20,
          "ResourceType": 6,
          "TimeUnitInHours": 1,
          "Value": 0.0050
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 21,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 22,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 23,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 24,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 25,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 26,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 27,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 28,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 29,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 2,
          "Modifiers": [],
          "ProductID": 30,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 37,
          "ResourceType": 2,
          "TimeUnitInHours": 1,
          "Value": 0.0100
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 38,
          "ResourceType": 1,
          "TimeUnitInHours": 1,
          "Value": 0.0040
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 39,
          "ResourceType": 3,
          "TimeUnitInHours": 1,
          "Value": 0.0002
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 40,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 41,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 42,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 43,
          "ResourceType": 7,
          "TimeUnitInHours": 1,
          "Value": 0.0002
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 44,
          "ResourceType": 8,
          "TimeUnitInHours": 1,
          "Value": 0.0002
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 45,
          "ResourceType": 9,
          "TimeUnitInHours": 1,
          "Value": 0.0002
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 46,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [

          ],
          "ProductID": 47,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 48,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 1,
          "HypervisorType": 3,
          "Modifiers": [],
          "ProductID": 49,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 3,
          "HypervisorType": 1,
          "Modifiers": [
            {
              "ResourceType": 2
            }
          ],
          "ProductID": 50,
          "ResourceType": 4,
          "TimeUnitInHours": 130,
          "Value": 55.0000
        },
        {
          "BillingType": 3,
          "HypervisorType": 2,
          "Modifiers": [
            {
              "ResourceType": 2
            },
            {
              "ResourceType": 1
            }
          ],
          "ProductID": 60,
          "ResourceType": 4,
          "TimeUnitInHours": 130,
          "Value": 5.0000
        },
        {
          "BillingType": 1,
          "HypervisorType": 1,
          "Modifiers": [],
          "ProductID": 61,
          "ResourceType": 4,
          "TimeUnitInHours": 1,
          "Value": 0
        },
        {
          "BillingType": 3,
          "HypervisorType": 3,
          "Modifiers": [
            {
              "ResourceType": 2
            }
          ],
          "ProductID": 62,
          "ResourceType": 4,
          "TimeUnitInHours": 130,
          "Value": 10.0000
        }
      ]
    }
  ]
})
See Also