forked from virtuozzo/OnApp-PHP-Wrapper-External
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApplicationServer.php
145 lines (123 loc) · 2.47 KB
/
ApplicationServer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Managing Application Servers
*
*
* Application Server is a regular VS based on default CentOS template with pre-installed additional software.
* This software allows you to install and have up & running various PHP/Perl/Python frameworks
* (like Drupal, Joomla, Wordpress etc.) on a server using web interface.
*
* @category API wrapper
* @package OnApp
* @author Andrew Yatskovets
* @copyright © 2016 OnApp
* @link http://www.onapp.com/
* @see OnApp
*/
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_REBOOT', 'reboot' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_SHUTDOWN', 'shutdown' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_STOP', 'stop' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_CHANGE_OWNER', 'change_owner' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_REBUILD_NETWORK', 'rebuild_network' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_STARTUP', 'startup' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_UNLOCK', 'unlock' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_BUILD', 'build' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_SUSPEND_VM', 'suspend' );
/**
*
*
*/
define( 'ONAPP_ACTIVATE_GETLIST_USER', 'getUserVMsList' );
/**
*
*
*/
define( 'ONAPP_RESET_ROOT_PASSWORD', 'resetRootPassword' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_MIGRATE', 'migrate' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_VIRTUALMACHINES_STATUSES', 'statusAll' );
/**
*
*
*/
define( 'ONAPP_GETRESOURCE_VIRTUALMACHINE_STATUS', 'status' );
/**
* Enable Booting from CD for ISO Virtual Server
*/
define( 'ONAPP_ENABLE_BOOT_FROM_CD', 'cd_boot_enable' );
/**
* Disable Booting from CD for ISO Virtual Server
*/
define( 'ONAPP_DISABLE_BOOT_FROM_CD', 'cd_boot_disable' );
/**
* Search
*/
define( 'ONAPP_SEARCH', 'search' );
/**
* Application Servers
*
* The Application Servers class represents the Application Servers of the OnAPP installation.
*
* The OnApp_ApplicationServer class uses the following basic methods:
* {@link load}, {@link save}, {@link delete}, and {@link getList}.
*
* For full fields reference and curl request details visit: ( http://help.onapp.com/manual.php?m=2 )
*/
class OnApp_ApplicationServer extends OnApp_VirtualMachine {
/**
* root tag used in the API request
*
* @var string
*/
var $_tagRoot = 'application_server';
/**
* alias processing the object data
*
* @var string
*/
var $_resource = 'application_servers';
}