Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Access
  • Algorithm
  • AllowedDomain
  • BillableLoadBalancer
  • ConnectionLogging
  • ConnectionThrottle
  • ContentCaching
  • ErrorPage
  • HealthMonitor
  • LoadBalancer
  • Metadata
  • Node
  • NodeEvent
  • Protocol
  • Readonly
  • SessionPersistence
  • SSLTermination
  • Stats
  • SubResource
  • Usage
  • VirtualIp
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: /**
 3:  * PHP OpenCloud library.
 4:  * 
 5:  * @copyright Copyright 2013 Rackspace US, Inc. See COPYING for licensing information.
 6:  * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
 7:  * @version   1.6.0
 8:  * @author    Glen Campbell <glen.campbell@rackspace.com>
 9:  * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
10:  */
11: 
12: namespace OpenCloud\LoadBalancer\Resource;
13: 
14: /**
15:  * An error page is the html file that is shown to the end user when an error 
16:  * in the service has been thrown. By default every virtual server is provided 
17:  * with the default error file. It is also possible to submit a custom error page 
18:  * via the Load Balancers API. Refer to Section 4.2.3, “Error Page Operations” 
19:  * for details (http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/List_Errorpage-d1e2218.html).
20:  */
21: class ErrorPage extends SubResource 
22: {
23:     /**
24:      * HTML content for the custom error page. Must be 65536 characters or less.
25:      * 
26:      * @var string 
27:      */
28:     public $content;
29:     
30:     protected static $json_name = 'errorpage';
31:     protected static $url_resource = 'errorpage';
32:     
33:     protected $createKeys = array('content');
34:     
35:     /**
36:      * creates a new error page
37:      *
38:      * This calls the Update() method, since it requires a PUT to create
39:      * a new error page. A POST request is not supported, since the URL
40:      * resource is already defined.
41:      *
42:      * @param array $params
43:      */
44:     public function create($params = array()) 
45:     { 
46:         return $this->update($params); 
47:     }
48: 
49: }
50: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0