Click or drag to resize

IWsEndUserGetServerDetails Method

This method obtain detail information about virtual server specified in input parameter. GetServerDetails allow user to get information about characteristics and components of virtual machine. This information allow user to monitor current state of machine and its components. It’s possibile obtain ram quantity, server ID, state, hypervisor type etc. It’s possible obtain same detail level about: Virtual disk list, snapshot, network adapters and virtual optical drive. GetServerDetails also allow to get list of active and wait operations of chosen server.

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<ServerDetails> GetServerDetails(
	int serverId
)

Parameters

serverId
Type: SystemInt32
System.Int32 Server ID of virtual server

Return Value

Type: WsResultServerDetails
Examples
It’s possible call method by follow notation: https://api.dc1.computing.cloud.it/wsenduser/v1.3/jsonp/GetServerDetails/ArubaCloud.Response.ServerDetails.call/ARU-0000/e20cf5fa-ce5c-489c-9160-b26efdc1bad8/859 Below an example of response:
ArubaCloud.Response.serverdetails.call({
  "ExceptionInfo": null,
  "ResultCode": 0,
  "ResultMessage": null,
  "Success": true,
  "Value": {
    "ActiveJobs": [],
    "CPUQuantity": {
      "CompanyId": 1,
      "ProductId": 4,
      "ResourceId": 4278,
      "ResourceType": 2,
      "UserId": 267,
      "Quantity": 1
    },
    "CompanyId": 1,
    "CreationDate": "\/Date(1324484829247+0100)\/",
    "DatacenterId": 1,
    "HypervisorServerType": 2,
    "HypervisorType": 2,
    "Name": "TestLinux",
    "NetworkAdapters": [
      {
        "IPAddresses": [],
        "Id": 2577,
        "MacAddress": "00:50:56:b6:12:79",
        "NetworkAdapterType": 0,
        "ServerId": 859,
        "VLan": null
      },
      {
        "IPAddresses": [],
        "Id": 2578,
        "MacAddress": "00:50:56:b6:12:7a",
        "NetworkAdapterType": 1,
        "ServerId": 859,
        "VLan": null
      },
      {
        "IPAddresses": [],
        "Id": 2579,
        "MacAddress": "00:50:56:b6:12:7b",
        "NetworkAdapterType": 2,
        "ServerId": 859,
        "VLan": null
      }
    ],
    "Note": null,
    "OSTemplate": {
      "CompanyId": 1,
      "ProductId": 21,
      "ResourceId": 4281,
      "ResourceType": 4,
      "UserId": 267,
      "Description": "Linux Centos 5.7 32bit",
      "Id": 6,
      "Name": "Centos57_x32_2_0"
    },
    "Parameters": [
      {
        "Key": 0,
        "Value": "10.111.5.1"
      },
      {
        "Key": 1,
        "Value": "10.111.2.3"
      },
      {
        "Key": 2,
        "Value": "50362b7d-9218-0eab-441a-90652d220bad"
      },
      {
        "Key": 3,
        "Value": "vm-762"
      }
    ],
    "RAMQuantity": {
      "CompanyId": 1,
      "ProductId": 5,
      "ResourceId": 4279,
      "ResourceType": 1,
      "UserId": 267,
      "Quantity": 1
    },
    "ServerId": 859,
    "ServerStatus": 3,
    "Snapshots": [
      {
        "CreationDate": "\/Date(1326460764117+0100)\/",
        "ExpirationDate": null,
        "Status": 2
      }
    ],
    "ToolsAvailable": true,
    "UserId": 267,
    "VirtualDVDs": [
      {
        "MountDate": "\/Date(1327446000000+0100)\/",
        "Name": "primary_virtualdvd.iso"
      }
    ],
    "VirtualDisks": [
      {
        "CompanyId": 1,
        "ProductId": 6,
        "ResourceId": 4280,
        "ResourceType": 3,
        "UserId": 267,
        "CreationDate": "\/Date(1324484829247+0100)\/",
        "Size": 10
      }
    ]
  }
})
See Also