Blame view

sources/3rdparty/rackspace/php-opencloud/lib/OpenCloud/Compute/Constants/ServerState.php 2.53 KB
6d9380f96   Cédric Dupont   Update sources OC...
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
  <?php
  /**
   * PHP OpenCloud library.
   * 
   * @copyright 2014 Rackspace Hosting, Inc. See LICENSE for information.
   * @license   https://www.apache.org/licenses/LICENSE-2.0
   * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
   */
  
  namespace OpenCloud\Compute\Constants;
  
  
  class ServerState 
  {
      /**
       * The server is active and ready to use.
       */
      const ACTIVE = 'ACTIVE';
  
      /**
       * The server is being built.
       */
      const BUILD = 'BUILD';
  
      /**
       * The server was deleted. The list servers API operation does not show servers with a status of DELETED. To list
       * deleted servers, use the changes-since parameter.
       */
      const DELETED = 'DELETED';
  
      /**
       * The requested operation failed and the server is in an error state.
       */
      const ERROR = 'ERROR';
  
      /**
       * The server is going through a hard reboot. This power cycles your server, which performs an immediate shutdown
       * and restart.
       */
      const HARD_REBOOT = 'HARD_REBOOT';
  
      /**
       * The server is being moved from one physical node to another physical node. Server migration is a Rackspace extension.
       */
      const MIGRATING = 'MIGRATING';
  
      /**
       * The password for the server is being changed.
       */
      const PASSWORD = 'PASSWORD';
  
      /**
       * The server is going through a soft reboot. During a soft reboot, the operating system is signaled to restart,
       * which allows for a graceful shutdown and restart of all processes.
       */
      const REBOOT = 'REBOOT';
  
      /**
       * The server is being rebuilt from an image.
       */
      const REBUILD = 'REBUILD';
  
      /**
       * The server is in rescue mode. Rescue mode is a Rackspace extension.
       */
      const RESCUE = 'RESCUE';
  
      /**
       * The server is being resized and is inactive until it completes.
       */
      const RESIZE = 'RESIZE';
  
      /**
       * A resized or migrated server is being reverted to its previous size. The destination server is being cleaned up
       * and the original source server is restarting. Server migration is a Rackspace extension.
       */
      const REVERT_RESIZE = 'REVERT_RESIZE';
  
      /**
       * The server is inactive, either by request or necessity.
       */
      const SUSPENDED = 'SUSPENDED';
  
      /**
       * The server is in an unknown state.
       */
      const UNKNOWN = 'UNKNOWN';
  
      /**
       * The server is waiting for the resize operation to be confirmed so that the original server can be removed.
       */
      const VERIFY_RESIZE = 'VERIFY_RESIZE';
  
  
      const REBOOT_STATE_HARD = 'HARD';
      const REBOOT_STATE_SOFT = 'SOFT';
  }