You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/oneportal/api_usage_and_methods.rst
+45-44Lines changed: 45 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -39,56 +39,56 @@ The ‘getbalance’ action will return your client ID and account balance, the
39
39
The ‘history’ action will return a list of invoices. Each invoice includes the date of invoice, due date, short description, status, and list of payments pertaining to each invoice. A paid invoice will have an invoices->invoice->status of completed.
40
40
::
41
41
42
-
<invoices>
43
-
<invoice id="1XXX1">
44
-
<type>Debit</type>
45
-
<created>2008-12-17 15:04:44</created>
46
-
<unix_created>1229547884</unix_created>
47
-
<duedate>0000-00-00</duedate>
48
-
<unix_duedate>0</unix_duedate>
49
-
<forserver>LSN-D0000</forserver>
50
-
<description>New Server Order</description>
51
-
<amount>136.74</amount>
52
-
<status>completed</status>
53
-
<payments>
54
-
<payment id="1XXXX2">
55
-
<method>PayPal</method>
56
-
<txnid>9SA0000000000000X</txnid>
57
-
<amount>136.74</amount>
58
-
</payment>
59
-
</payments>
60
-
</invoice>
42
+
<invoices>
43
+
<invoice id="1XXX1">
44
+
<type>Debit</type>
45
+
<created>2008-12-17 15:04:44</created>
46
+
<unix_created>1229547884</unix_created>
47
+
<duedate>0000-00-00</duedate>
48
+
<unix_duedate>0</unix_duedate>
49
+
<forserver>LSN-D0000</forserver>
50
+
<description>New Server Order</description>
51
+
<amount>136.74</amount>
52
+
<status>completed</status>
53
+
<payments>
54
+
<payment id="1XXXX2">
55
+
<method>PayPal</method>
56
+
<txnid>9SA0000000000000X</txnid>
57
+
<amount>136.74</amount>
58
+
</payment>
59
+
</payments>
60
+
</invoice>
61
61
</invoices>
62
62
63
63
**Servers**
64
64
65
65
The ‘list’ action will return the list of servers available in the control panel. The list includes each server’s ID, display name, public/private ips, power/port status, and bandwidth usage.
66
66
::
67
67
68
-
<servers>
69
-
<server id="LSN-D0000">
70
-
<displayname>ServerName</displayname>
71
-
<publicip>74.63.000.000</publicip>
72
-
<privateip>10.2.000.000</privateip>
73
-
<powerstatus>on</powerstatus>
74
-
<bandwidth>
75
-
<actual>
76
-
<percentage>9.62</percentage>
77
-
<bytes>192479575610</bytes>
78
-
<friendly>192.5GB</friendly>
79
-
<allocated>2000GB</allocated>
80
-
</actual>
81
-
<predicted>
82
-
<percentage>70.87</percentage>
83
-
<bytes>1417495092920</bytes>
84
-
<friendly>1.4TB</friendly>
85
-
</predicted>
86
-
</bandwidth>
87
-
<portstatus>
88
-
<public>on</public>
89
-
<private>on</private>
90
-
</portstatus>
91
-
</server>
68
+
<servers>
69
+
<server id="LSN-D0000">
70
+
<displayname>ServerName</displayname>
71
+
<publicip>74.63.000.000</publicip>
72
+
<privateip>10.2.000.000</privateip>
73
+
<powerstatus>on</powerstatus>
74
+
<bandwidth>
75
+
<actual>
76
+
<percentage>9.62</percentage>
77
+
<bytes>192479575610</bytes>
78
+
<friendly>192.5GB</friendly>
79
+
<allocated>2000GB</allocated>
80
+
</actual>
81
+
<predicted>
82
+
<percentage>70.87</percentage>
83
+
<bytes>1417495092920</bytes>
84
+
<friendly>1.4TB</friendly>
85
+
</predicted>
86
+
</bandwidth>
87
+
<portstatus>
88
+
<public>on</public>
89
+
<private>on</private>
90
+
</portstatus>
91
+
</server>
92
92
</servers>
93
93
94
94
**Code Samples**
@@ -104,7 +104,7 @@ The following example requires the simplexml_load_file function which is include
0 commit comments