€cdocutils.nodes
document
q)q}q(U	nametypesq}q(X   setupqNX   serving containers through sslqNX#   cdn-enable and -disable a containerqNX   cdn loggingq	NX   list cdn-enabled containerq
NX   ios streamingqNX    streaming cdn-enabled containersqNuUsubstitution_defsq}qUparse_messagesq]qUcurrent_sourceqNU
decorationqNUautofootnote_startqKUnameidsq}q(hUsetupqhUserving-containers-through-sslqhU"cdn-enable-and-disable-a-containerqh	Ucdn-loggingqh
Ulist-cdn-enabled-containerqhUios-streamingqhU streaming-cdn-enabled-containersquUchildrenq]q(cdocutils.nodes
section
q)q }q!(U	rawsourceq"U Uparentq#hUsourceq$XV   /Users/jamie/projects/php/php-opencloud/doc/services/object-store/Container.md.cdn.rstq%Utagnameq&Usectionq'U
attributesq(}q)(Udupnamesq*]Uclassesq+]Ubackrefsq,]Uidsq-]q.haUnamesq/]q0hauUlineq1KUdocumentq2hh]q3(cdocutils.nodes
title
q4)q5}q6(h"X   Setupq7h#h h$h%h&Utitleq8h(}q9(h*]h+]h,]h-]h/]uh1Kh2hh]q:cdocutils.nodes
Text
q;X   Setupq<…q=}q>(h"h7h#h5ubaubcdocutils.nodes
literal_block
q?)q@}qA(h"X‚   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles');h#h h$h%h&Uliteral_blockqBh(}qC(U	xml:spaceqDUpreserveqEh-]h,]h*]h+]qF(UcodeqGX   phpqHeh/]uh1Kh2hh]qIcdocutils.nodes
inline
qJ)qK}qL(h"X‚   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles');h(}qM(h*]h+]qNUotherqOah,]h-]h/]uh#h@h]qPh;X‚   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles');qQ…qR}qS(h"U h#hKubah&UinlineqTubaubcdocutils.nodes
paragraph
qU)qV}qW(h"X:   To access the CDN functionality of a particular container:qXh#h h$h%h&U	paragraphqYh(}qZ(h*]h+]h,]h-]h/]uh1Kh2hh]q[h;X:   To access the CDN functionality of a particular container:q\…q]}q^(h"hXh#hVubaubh?)q_}q`(h"XM   $container = $service->getContainer('foo_bar');

$cdn = $container->getCdn();h#h h$h%h&hBh(}qa(hDhEh-]h,]h*]h+]qb(hGX   phpqceh/]uh1Kh2hh]qdhJ)qe}qf(h"XM   $container = $service->getContainer('foo_bar');

$cdn = $container->getCdn();h(}qg(h*]h+]qhUotherqiah,]h-]h/]uh#h_h]qjh;XM   $container = $service->getContainer('foo_bar');

$cdn = $container->getCdn();qk…ql}qm(h"U h#heubah&hTubaubeubh)qn}qo(h"U h#hh$h%h&h'h(}qp(h*]h+]h,]h-]qqhah/]qrh
auh1Kh2hh]qs(h4)qt}qu(h"X   List CDN-enabled containerqvh#hnh$h%h&h8h(}qw(h*]h+]h,]h-]h/]uh1Kh2hh]qxh;X   List CDN-enabled containerqy…qz}q{(h"hvh#htubaubhU)q|}q}(h"X¥   To list CDN-only containers, follow the same operation for Storage which
lists all containers. The only difference is which service object you
execute the method on:q~h#hnh$h%h&hYh(}q(h*]h+]h,]h-]h/]uh1Kh2hh]q€h;X¥   To list CDN-only containers, follow the same operation for Storage which
lists all containers. The only difference is which service object you
execute the method on:q…q‚}qƒ(h"h~h#h|ubaubh?)q„}q…(h"Xˆ   $cdnService = $service->getCdnService();
$cdnContainers = $cdnService->listContainers();

foreach ($cdnContainers as $cdnContainer) {

}h#hnh$h%h&hBh(}q†(hDhEh-]h,]h*]h+]q‡(hGX   phpqˆeh/]uh1K%h2hh]q‰hJ)qŠ}q‹(h"Xˆ   $cdnService = $service->getCdnService();
$cdnContainers = $cdnService->listContainers();

foreach ($cdnContainers as $cdnContainer) {

}h(}qŒ(h*]h+]qUotherqŽah,]h-]h/]uh#h„h]qh;Xˆ   $cdnService = $service->getCdnService();
$cdnContainers = $cdnService->listContainers();

foreach ($cdnContainers as $cdnContainer) {

}q…q‘}q’(h"U h#hŠubah&hTubaubeubh)q“}q”(h"U h#hh$h%h&h'h(}q•(h*]h+]h,]h-]q–hah/]q—hauh1K'h2hh]q˜(h4)q™}qš(h"X#   CDN-enable and -disable a containerq›h#h“h$h%h&h8h(}qœ(h*]h+]h,]h-]h/]uh1K'h2hh]qh;X#   CDN-enable and -disable a containerqž…qŸ}q (h"h›h#h™ubaubhU)q¡}q¢(h"Xú   Before a container can be CDN-enabled, it must exist in the storage
system. When a container is CDN-enabled, any objects stored in it are
publicly accessible over the Content Delivery Network by combining the
container's CDN URL with the object name.q£h#h“h$h%h&hYh(}q¤(h*]h+]h,]h-]h/]uh1K)h2hh]q¥h;Xú   Before a container can be CDN-enabled, it must exist in the storage
system. When a container is CDN-enabled, any objects stored in it are
publicly accessible over the Content Delivery Network by combining the
container's CDN URL with the object name.q¦…q§}q¨(h"h£h#h¡ubaubhU)q©}qª(h"X	  Any CDN-accessed objects are cached in the CDN for the specified amount
of time called the TTL. The default TTL value is 259200 seconds, or 72
hours. Each time the object is accessed after the TTL expires, the CDN
refetches and caches the object for the TTL period.q«h#h“h$h%h&hYh(}q¬(h*]h+]h,]h-]h/]uh1K.h2hh]q­h;X	  Any CDN-accessed objects are cached in the CDN for the specified amount
of time called the TTL. The default TTL value is 259200 seconds, or 72
hours. Each time the object is accessed after the TTL expires, the CDN
refetches and caches the object for the TTL period.q®…q¯}q°(h"h«h#h©ubaubh?)q±}q²(h"X2   $container->enableCdn();
$container->disableCdn();h#h“h$h%h&hBh(}q³(hDhEh-]h,]h*]h+]q´(hGX   phpqµeh/]uh1K7h2hh]q¶hJ)q·}q¸(h"X2   $container->enableCdn();
$container->disableCdn();h(}q¹(h*]h+]qºUotherq»ah,]h-]h/]uh#h±h]q¼h;X2   $container->enableCdn();
$container->disableCdn();q½…q¾}q¿(h"U h#h·ubah&hTubaubeubh)qÀ}qÁ(h"U h#hh$h%h&h'h(}qÂ(h*]h+]h,]h-]qÃhah/]qÄhauh1K9h2hh]qÅ(h4)qÆ}qÇ(h"X   Serving containers through SSLqÈh#hÀh$h%h&h8h(}qÉ(h*]h+]h,]h-]h/]uh1K9h2hh]qÊh;X   Serving containers through SSLqË…qÌ}qÍ(h"hÈh#hÆubaubh?)qÎ}qÏ(h"X   $cdn->getCdnSslUri();h#hÀh$h%h&hBh(}qÐ(hDhEh-]h,]h*]h+]qÑ(hGX   phpqÒeh/]uh1K>h2hh]qÓhJ)qÔ}qÕ(h"X   $cdn->getCdnSslUri();h(}qÖ(h*]h+]q×UotherqØah,]h-]h/]uh#hÎh]qÙh;X   $cdn->getCdnSslUri();qÚ…qÛ}qÜ(h"U h#hÔubah&hTubaubeubh)qÝ}qÞ(h"U h#hh$h%h&h'h(}qß(h*]h+]h,]h-]qàhah/]qáhauh1K@h2hh]qâ(h4)qã}qä(h"X    Streaming CDN-enabled containersqåh#hÝh$h%h&h8h(}qæ(h*]h+]h,]h-]h/]uh1K@h2hh]qçh;X    Streaming CDN-enabled containersqè…qé}qê(h"håh#hãubaubh?)që}qì(h"X   $cdn->getCdnStreamingUri();h#hÝh$h%h&hBh(}qí(hDhEh-]h,]h*]h+]qî(hGX   phpqïeh/]uh1KEh2hh]qðhJ)qñ}qò(h"X   $cdn->getCdnStreamingUri();h(}qó(h*]h+]qôUotherqõah,]h-]h/]uh#hëh]qöh;X   $cdn->getCdnStreamingUri();q÷…qø}qù(h"U h#hñubah&hTubaubeubh)qú}qû(h"U h#hh$h%h&h'h(}qü(h*]h+]h,]h-]qýhah/]qþhauh1KGh2hh]qÿ(h4)r   }r  (h"X   iOS streamingr  h#húh$h%h&h8h(}r  (h*]h+]h,]h-]h/]uh1KGh2hh]r  h;X   iOS streamingr  …r  }r  (h"j  h#j   ubaubhU)r  }r	  (h"XÎ   The Cloud Files CDN allows you to stream video to iOS devices without
needing to convert your video. Once you CDN-enable your container, you
have the tools necessary for streaming media to multiple devices.r
  h#húh$h%h&hYh(}r  (h*]h+]h,]h-]h/]uh1KIh2hh]r  h;XÎ   The Cloud Files CDN allows you to stream video to iOS devices without
needing to convert your video. Once you CDN-enable your container, you
have the tools necessary for streaming media to multiple devices.r  …r  }r  (h"j
  h#j  ubaubh?)r  }r  (h"X   $cdn->getIosStreamingUri();h#húh$h%h&hBh(}r  (hDhEh-]h,]h*]h+]r  (hGX   phpr  eh/]uh1KPh2hh]r  hJ)r  }r  (h"X   $cdn->getIosStreamingUri();h(}r  (h*]h+]r  Uotherr  ah,]h-]h/]uh#j  h]r  h;X   $cdn->getIosStreamingUri();r  …r  }r  (h"U h#j  ubah&hTubaubeubh)r  }r   (h"U h#hh$h%h&h'h(}r!  (h*]h+]h,]h-]r"  hah/]r#  h	auh1KRh2hh]r$  (h4)r%  }r&  (h"X   CDN loggingr'  h#j  h$h%h&h8h(}r(  (h*]h+]h,]h-]h/]uh1KRh2hh]r)  h;X   CDN loggingr*  …r+  }r,  (h"j'  h#j%  ubaubhU)r-  }r.  (h"X+   To enable and disable logging for your CDN:r/  h#j  h$h%h&hYh(}r0  (h*]h+]h,]h-]h/]uh1KTh2hh]r1  h;X+   To enable and disable logging for your CDN:r2  …r3  }r4  (h"j/  h#j-  ubaubh?)r5  }r6  (h"X4   $cdn->enableCdnLogging();
$cdn->disableCdnLogging();h#j  h$h%h&hBh(}r7  (hDhEh-]h,]h*]h+]r8  (hGX   phpr9  eh/]uh1KZh2hh]r:  hJ)r;  }r<  (h"X4   $cdn->enableCdnLogging();
$cdn->disableCdnLogging();h(}r=  (h*]h+]r>  Uotherr?  ah,]h-]h/]uh#j5  h]r@  h;X4   $cdn->enableCdnLogging();
$cdn->disableCdnLogging();rA  …rB  }rC  (h"U h#j;  ubah&hTubaubeubeh"U UtransformerrD  NUfootnote_refsrE  }rF  UrefnamesrG  }rH  Usymbol_footnotesrI  ]rJ  Uautofootnote_refsrK  ]rL  Usymbol_footnote_refsrM  ]rN  U	citationsrO  ]rP  h2hUcurrent_linerQ  NUtransform_messagesrR  ]rS  UreporterrT  NUid_startrU  KUautofootnotesrV  ]rW  Ucitation_refsrX  }rY  Uindirect_targetsrZ  ]r[  Usettingsr\  (cdocutils.frontend
Values
r]  or^  }r_  (Ufootnote_backlinksr`  KUrecord_dependenciesra  NUrfc_base_urlrb  Uhttp://tools.ietf.org/html/rc  U	tracebackrd  ˆUpep_referencesre  NUstrip_commentsrf  NUtoc_backlinksrg  Uentryrh  Ulanguage_coderi  Uenrj  U	datestamprk  NUreport_levelrl  KU_destinationrm  NU
halt_levelrn  KUstrip_classesro  Nh8NUerror_encoding_error_handlerrp  Ubackslashreplacerq  Udebugrr  NUembed_stylesheetrs  ‰Uoutput_encoding_error_handlerrt  Ustrictru  Usectnum_xformrv  KUdump_transformsrw  NUdocinfo_xformrx  KUwarning_streamry  NUpep_file_url_templaterz  Upep-%04dr{  Uexit_status_levelr|  KUconfigr}  NUstrict_visitorr~  NUcloak_email_addressesr  ˆUtrim_footnote_reference_spacer€  ‰Uenvr  NUdump_pseudo_xmlr‚  NUexpose_internalsrƒ  NUsectsubtitle_xformr„  ‰Usource_linkr…  NUrfc_referencesr†  NUoutput_encodingr‡  Uutf-8rˆ  U
source_urlr‰  NUinput_encodingrŠ  U	utf-8-sigr‹  U_disable_configrŒ  NU	id_prefixr  U U	tab_widthrŽ  KUerror_encodingr  UUTF-8r  U_sourcer‘  h%Ugettext_compactr’  ˆU	generatorr“  NUdump_internalsr”  NUsmart_quotesr•  ‰Upep_base_urlr–  Uhttp://www.python.org/dev/peps/r—  Usyntax_highlightr˜  Ulongr™  Uinput_encoding_error_handlerrš  ju  Uauto_id_prefixr›  Uidrœ  Udoctitle_xformr  ‰Ustrip_elements_with_classesrž  NU_config_filesrŸ  ]r   Ufile_insertion_enabledr¡  ˆUraw_enabledr¢  KUdump_settingsr£  NubUsymbol_footnote_startr¤  K Uidsr¥  }r¦  (hhÀhh hhÝhhúhh“hj  hhnuUsubstitution_namesr§  }r¨  h&h2h(}r©  (h*]h-]h,]Usourceh%h+]h/]uU	footnotesrª  ]r«  Urefidsr¬  }r­  ub.