      1: <?php
      2: /**
      3:  * Copyright 2012-2014 Rackspace US, Inc.
      4:  *
      5:  * Licensed under the Apache License, Version 2.0 (the "License");
      6:  * you may not use this file except in compliance with the License.
      7:  * You may obtain a copy of the License at
      8:  *
      9:  * http://www.apache.org/licenses/LICENSE-2.0
     10:  *
     11:  * Unless required by applicable law or agreed to in writing, software
     12:  * distributed under the License is distributed on an "AS IS" BASIS,
     13:  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14:  * See the License for the specific language governing permissions and
     15:  * limitations under the License.
     16:  */
     17:
     18: namespace OpenCloud\Compute\Constants;
     19:
     20: class ServerState
     21: {
     22:     /**
     23:      * The server is active and ready to use.
     24:      */
     25:     const ACTIVE = 'ACTIVE';
     26:
     27:     /**
     28:      * The server is being built.
     29:      */
     30:     const BUILD = 'BUILD';
     31:
     32:     /**
     33:      * The server was deleted. The list servers API operation does not show servers with a status of DELETED. To list
     34:      * deleted servers, use the changes-since parameter.
     35:      */
     36:     const DELETED = 'DELETED';
     37:
     38:     /**
     39:      * The requested operation failed and the server is in an error state.
     40:      */
     41:     const ERROR = 'ERROR';
     42:
     43:     /**
     44:      * The server is going through a hard reboot. This power cycles your server, which performs an immediate shutdown
     45:      * and restart.
     46:      */
     47:     const HARD_REBOOT = 'HARD_REBOOT';
     48:
     49:     /**
     50:      * The server is being moved from one physical node to another physical node. Server migration is a Rackspace extension.
     51:      */
     52:     const MIGRATING = 'MIGRATING';
     53:
     54:     /**
     55:      * The password for the server is being changed.
     56:      */
     57:     const PASSWORD = 'PASSWORD';
     58:
     59:     /**
     60:      * The server is going through a soft reboot. During a soft reboot, the operating system is signaled to restart,
     61:      * which allows for a graceful shutdown and restart of all processes.
     62:      */
     63:     const REBOOT = 'REBOOT';
     64:
     65:     /**
     66:      * The server is being rebuilt from an image.
     67:      */
     68:     const REBUILD = 'REBUILD';
     69:
     70:     /**
     71:      * The server is in rescue mode. Rescue mode is a Rackspace extension.
     72:      */
     73:     const RESCUE = 'RESCUE';
     74:
     75:     /**
     76:      * The server is being resized and is inactive until it completes.
     77:      */
     78:     const RESIZE = 'RESIZE';
     79:
     80:     /**
     81:      * A resized or migrated server is being reverted to its previous size. The destination server is being cleaned up
     82:      * and the original source server is restarting. Server migration is a Rackspace extension.
     83:      */
     84:     const REVERT_RESIZE = 'REVERT_RESIZE';
     85:
     86:     /**
     87:      * The server is inactive, either by request or necessity.
     88:      */
     89:     const SUSPENDED = 'SUSPENDED';
     90:
     91:     /**
     92:      * The server is in an unknown state.
     93:      */
     94:     const UNKNOWN = 'UNKNOWN';
     95:
     96:     /**
     97:      * The server is waiting for the resize operation to be confirmed so that the original server can be removed.
     98:      */
     99:     const VERIFY_RESIZE = 'VERIFY_RESIZE';
    100:
    101:     const REBOOT_STATE_HARD = 'HARD';
    102:     const REBOOT_STATE_SOFT = 'SOFT';
    103: }
    104: