Click or drag to resize

IJsonpWsEndUserGetVirtualDatacenterCost Method

Get price's details of account virtual datacenter's components. By call to GetVirtualDataCenterCost method it's possible know price's details for each virtual datacenter's component

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetVirtualDatacenterCost/{jsonp}/{userName}/{token}")]
Stream GetVirtualDatacenterCost(
	string jsonp,
	string userName,
	string token
)

Parameters

jsonp
Type: SystemString
ArubaCloud.Response.Server.call
userName
Type: SystemString
Type string to indicate account. Format: ARU-XXXX
token
Type: SystemString
Type string to rappresent valid token for authenticated account

Return Value

Type: Stream
WsResultOfVirtualDatacenterCost contain data center information of authenticated user. For more information consult WsResult class and VirtualDatacenterCost class.
Examples
The method can be called using the following notation:
https://api.dc1.computing.cloud.it/wsenduser/v1.3/jsonp/GetVirtualDatacenterCost/ArubaCloud.Response.DatacenterCost.call/ARU-0000/e20cf5fa-ce5c-489c-9160-b26efdc1bad8

The following is an example of the response body.

ArubaCloud.Response.VirtualDatacenterCost.call({
  "ExceptionInfo": null,
  "ResultCode": 0,
  "ResultMessage": null,
  "Success": true,
  "Value": {
    "TotalHourlyCost": 0.1400,
    "CurrencyCode": "EUR",
    "DatacenterId": 1,
    "IpAddressCost": {
      "TotalHourlyCost": 0.0250,
      "HourlyCost": 0.0050,
      "ProductId": 20,
      "Quantity": 6,
      "ResourceType": 6
    },
    "ServerCost": [
      {
        "TotalHourlyCost": 0.0200,
        "CpuCost": {
          "TotalHourlyCost": 0.0000,
          "HourlyCost": 0.0250,
          "ProductId": 1,
          "Quantity": 0,
          "ResourceType": 2
        },
        "OSTemplateCost": {
          "TotalHourlyCost": 0,
          "HourlyCost": 0,
          "ProductId": 12,
          "Quantity": 1,
          "ResourceType": 4
        },
        "RamCost": {
          "TotalHourlyCost": 0.0000,
          "HourlyCost": 0.0050,
          "ProductId": 2,
          "Quantity": 0,
          "ResourceType": 1
        },
        "ServerId": 787,
        "VirtualDiskCost": {
          "TotalHourlyCost": 0.0200,
          "Values": [
            {
              "TotalHourlyCost": 0.0050,
              "HourlyCost": 0.0005,
              "ProductId": 3,
              "Quantity": 10,
              "ResourceType": 3
            },
            {
              "TotalHourlyCost": 0.0050,
              "HourlyCost": 0.0005,
              "ProductId": 13,
              "Quantity": 10,
              "ResourceType": 7
            },
            {
              "TotalHourlyCost": 0.0050,
              "HourlyCost": 0.0005,
              "ProductId": 14,
              "Quantity": 10,
              "ResourceType": 8
            },
            {
              "TotalHourlyCost": 0.0050,
              "HourlyCost": 0.0005,
              "ProductId": 15,
              "Quantity": 10,
              "ResourceType": 9
            }
          ]
        }
      },
      {
        "TotalHourlyCost": 0.0150,
        "CpuCost": {
          "TotalHourlyCost": 0.0000,
          "HourlyCost": 0.0400,
          "ProductId": 4,
          "Quantity": 0,
          "ResourceType": 2
        },
        "OSTemplateCost": {
          "TotalHourlyCost": 0,
          "HourlyCost": 0,
          "ProductId": 7,
          "Quantity": 1,
          "ResourceType": 4
        },
        "RamCost": {
          "TotalHourlyCost": 0.0000,
          "HourlyCost": 0.0050,
          "ProductId": 5,
          "Quantity": 0,
          "ResourceType": 1
        },
        "ServerId": 825,
        "VirtualDiskCost": {
          "TotalHourlyCost": 0.0150,
          "Values": [
            {
              "TotalHourlyCost": 0.0150,
              "HourlyCost": 0.0005,
              "ProductId": 6,
              "Quantity": 30,
              "ResourceType": 3
            }
          ]
        }
      },
      {
        "TotalHourlyCost": 0.0500,
        "CpuCost": {
          "TotalHourlyCost": 0.0400,
          "HourlyCost": 0.0400,
          "ProductId": 4,
          "Quantity": 1,
          "ResourceType": 2
        },
        "OSTemplateCost": {
          "TotalHourlyCost": 0,
          "HourlyCost": 0,
          "ProductId": 21,
          "Quantity": 1,
          "ResourceType": 4
        },
        "RamCost": {
          "TotalHourlyCost": 0.0050,
          "HourlyCost": 0.0050,
          "ProductId": 5,
          "Quantity": 1,
          "ResourceType": 1
        },
        "ServerId": 859,
        "VirtualDiskCost": {
          "TotalHourlyCost": 0.0050,
          "Values": [
            {
              "TotalHourlyCost": 0.0050,
              "HourlyCost": 0.0005,
              "ProductId": 6,
              "Quantity": 10,
              "ResourceType": 3
            }
          ]
        }
      }
    ],
    "VLanCost": {
      "TotalHourlyCost": 0.0300,
      "HourlyCost": 0.0100,
      "ProductId": 19,
      "Quantity": 3,
      "ResourceType": 5
    }
  }
})
See Also