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

  • AbstractContainer
  • AbstractResource
  • Account
  • CDNContainer
  • Container
  • ContainerMetadata
  • DataObject
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class CDNContainer

A container that has been CDN-enabled. Each CDN-enabled container has a unique Uniform Resource Locator (URL) that can be combined with its object names and openly distributed in web pages, emails, or other applications.

OpenCloud\Common\Base
Extended by OpenCloud\ObjectStore\Resource\AbstractResource
Extended by OpenCloud\ObjectStore\Resource\AbstractContainer
Extended by OpenCloud\ObjectStore\Resource\CDNContainer
Namespace: OpenCloud\ObjectStore\Resource
Located at OpenCloud/ObjectStore/Resource/CDNContainer.php
Methods summary
public null|string|integer
# getCdnSslUri( )

Returns

null|string|integer
public null|string|integer
# getCdnUri( )

Returns

null|string|integer
public null|string|integer
# getTtl( )

Returns

null|string|integer
public null|string|integer
# getCdnStreamingUri( )

Returns

null|string|integer
public null|string|integer
# getIosStreamingUri( )

Returns

null|string|integer
public
# refresh( mixed $name = null, mixed $url = null )
public Guzzle\Http\Message\Response
# setStaticIndexPage( mixed $page )

This method will enable your CDN-enabled container to serve out HTML content like a website.

This method will enable your CDN-enabled container to serve out HTML content like a website.

Parameters

$page
mixed
$indexPage The data object name (i.e. a .html file) that will serve as the main index page.

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# setStaticErrorPage( mixed $page )

Set the default error page for your static site.

Set the default error page for your static site.

Parameters

$page
mixed
$name The data object name (i.e. a .html file) that will serve as the main error page.

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# enableCdnLogging( )

Turn on access logs, which track all the web traffic that your data objects accrue.

Turn on access logs, which track all the web traffic that your data objects accrue.

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# disableCdnLogging( )

Disable access logs.

Disable access logs.

Returns

Guzzle\Http\Message\Response
Methods inherited from OpenCloud\ObjectStore\Resource\AbstractContainer
__construct(), createRefreshRequest(), getTransId(), getUrl(), hasLogRetention(), isCdnEnabled(), primaryKeyField()
Methods inherited from OpenCloud\ObjectStore\Resource\AbstractResource
appendToMetadata(), fromResponse(), getCdnService(), getClient(), getMetadata(), getService(), retrieveMetadata(), saveMetadata(), setMetadata(), stockHeaders(), trimHeaders(), unsetMetadataItem()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Constants summary
string METADATA_LABEL 'Cdn'
#
Constants inherited from OpenCloud\ObjectStore\Resource\AbstractResource
GLOBAL_METADATA_PREFIX
Properties inherited from OpenCloud\ObjectStore\Resource\AbstractContainer
$metadataClass, $name
Properties inherited from OpenCloud\ObjectStore\Resource\AbstractResource
$metadata, $service
PHP OpenCloud API API documentation generated by ApiGen 2.8.0