compared with
Current by Shannon George
on Nov 27, 2012 17:47.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (48)

View Page History
This example provides you a PHP script for getting license pools and a return code for this script.

Make sure you specify the following variables:
* Username ({{$USERNAME}})
* Password ({{$PASSWORD}})
* License Pool key ({{$LICENSEPOOLKEY}})

{noformat}
try{
#### User settings Start ####
## For this example the user should only have to change these settings
$USERNAME = "name";
$PASSWORD = "password";
$client->setCredentials($accOwner, $accPass);
$client->setSSLVerifyPeer(false);
#### Create Client End ####

#### Make RPC Call Start ####
echo $ex;
}

?>
{noformat}

h4. Response Example

Here is an example of a response to the XML-RPC request:

{code}Array (
[0] => Array (
[Server Backup - Enterprise for Physical Servers SB250 (up to 250 servers) Capacity] => 0
[Enabled] => 1
[Server Backup - Enterprise for Virtual Servers SBV50 (up to 50 VMs) Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBV250 (up to 250 VMs) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB10 (up to 10 servers) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB100 (up to 100 servers) Capacity] => 0
[Database Add-ons Available] => 96 [SubscriptionExpireDate] => 20111110T10:41:32
[Server Backup - Enterprise for Physical Servers SBX (unlimited site license for physical servers) Capacity] => 0
[Virtual Servers Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBVX (unlimited site license for virtual servers) Capacity] => 0
[Physical Servers Available] => 96
[Server Backup - Enterprise for Physical Servers SB5 (up to 5 servers) Capacity] => 0
[ID] => 0a411a63-a6fc-4df6-80bd-279ece41cf85
[Server Backup - Enterprise for Virtual Servers SBV1000 (up to 1000 VMs) Capacity] => 0
[Physical Servers Capacity] => 100
[Server Backup - Enterprise for Physical Servers SB25 (up to 25 servers) Capacity] => 0
)
[01] => Array (
[Server Backup - Enterprise for Physical Servers SB250 (up to 250 servers) Capacity] => 0
[Enabled] => 1
[Server Backup - Enterprise for Virtual Servers SBV50 (up to 50 VMs) Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBV250 (up to 250 VMs) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB10 (up to 10 servers) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB100 (up to 100 servers) Capacity] => 0
[Database Add-ons Available] => 96 [SubscriptionExpireDate] => 20111110T10:41:32 0
[Server Backup - Enterprise for Physical Servers SBX (unlimited site license for physical servers) Capacity] => 0
[Virtual Servers Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBVX (unlimited site license for virtual servers) Capacity] => 0
[Physical Servers Available] => 96 3
[Server Backup - Enterprise for Physical Servers SB5 (up to 5 servers) Capacity] => 0
[unknown Available] => 10
[ID] => 0a411a63-a6fc-4df6-80bd-279ece41cf85 5e99ea40-d986-4ec5-be53-202e2749dba5
[Server Backup - Enterprise for Virtual Servers SBV1000 (up to 1000 VMs) Capacity] => 0
[Physical Servers Capacity] => 100 50
[Server Backup - Enterprise for Physical Servers SB25 (up to 25 servers) Capacity] => 0
)
[12] => Array (
[Server Backup - Enterprise for Physical Servers SB250 (up to 250 servers) Capacity] => 0
[Enabled] => 1
[Server Backup - Enterprise for Virtual Servers SBV50 (up to 50 VMs) Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBV250 (up to 250 VMs) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB10 (up to 10 servers) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB100 (up to 100 servers) Capacity] => 0
[SubscriptionExpireDate] => 20110625T11:36:05
[Server Backup - Enterprise for Physical Servers SBX (unlimited site license for physical servers) Capacity] => 0
[Database Add-ons Available] [Virtual Servers Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBVX (unlimited site license for virtual servers) Capacity] => 0
[Physical Servers Available] => 43
[Server Backup - Enterprise for Physical Servers SBX (unlimited site license for physical SB5 (up to 5 servers) Capacity] => 0
[ID] => b9471d1c-2f64-4e03-8a12-9bb5970504ae
[Server Backup - Enterprise for Virtual Servers SBV1000 (up to 1000 VMs) Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBVX (unlimited site license for virtual servers) Capacity] => 0
[Physical Servers Available] => 3
[Physical Servers Capacity] => 50
[Server Backup - Enterprise for Physical Servers SB25 (up to 5 25 servers) Capacity] => 0
[unknown Available] => 10
[ID] => 5e99ea40-d986-4ec5-be53-202e2749dba5
[Server Backup - Enterprise for Virtual Servers SBV1000 (up to 1000 VMs) Capacity] => 0
[Physical Servers Capacity] => 50
[Server Backup - Enterprise for Physical Servers SB25 (up to 25 servers) Capacity] => 0
)
[2] => Array (
[Server Backup - Enterprise for Physical Servers SB250 (up to 250 servers) Capacity] => 0
[Enabled] => 1
[Server Backup - Enterprise for Virtual Servers SBV50 (up to 50 VMs) Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBV250 (up to 250 VMs) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB10 (up to 10 servers) Capacity] => 0
[Server Backup - Enterprise for Physical Servers SB100 (up to 100 servers) Capacity] => 0
[SubscriptionExpireDate] => 20110625T11:36:05
[Server Backup - Enterprise for Physical Servers SBX (unlimited site license for physical servers) Capacity] => 0
[Virtual Servers Capacity] => 0
[Server Backup - Enterprise for Virtual Servers SBVX (unlimited site license for virtual servers) Capacity] => 0
[Physical Servers Available] => 43
[Server Backup - Enterprise for Physical Servers SB5 (up to 5 servers) Capacity] => 0
[ID] => b9471d1c-2f64-4e03-8a12-9bb5970504ae
[Server Backup - Enterprise for Virtual Servers SBV1000 (up to 1000 VMs) Capacity] => 0
[Physical Servers Capacity] => 50
[Server Backup - Enterprise for Physical Servers SB25 (up to 25 servers) Capacity] => 0
)
){code}