€cdocutils.nodes
document
q)q}q(U	nametypesq}q(X   create a temporary urlqNX   setupqNX   temporary urlsqNX    set "temporary url" metadata keyq	NX   hosting websites on cloudfilesq
NuUsubstitution_defsq}qUparse_messagesq]qcdocutils.nodes
system_message
q)q}q(U	rawsourceqU Uparentqcdocutils.nodes
section
q)q}q(hU hhUsourceqXO   /Users/jamie/projects/php/php-opencloud/doc/services/object-store/Access.md.rstqUtagnameqUsectionqU
attributesq}q(Udupnamesq]Uclassesq]Ubackrefsq]Uidsq ]q!Uhosting-websites-on-cloudfilesq"aUnamesq#]q$h
auUlineq%K7Udocumentq&hUchildrenq']q((cdocutils.nodes
title
q))q*}q+(hX   Hosting websites on CloudFilesq,hhhhhUtitleq-h}q.(h]h]h]h ]h#]uh%K7h&hh']q/cdocutils.nodes
Text
q0X   Hosting websites on CloudFilesq1…q2}q3(hh,hh*ubaubcdocutils.nodes
paragraph
q4)q5}q6(hXP   To host a static (i.e. HTML) website on CloudFiles, you must follow
these steps:q7hhhhhU	paragraphq8h}q9(h]h]h]h ]h#]uh%K9h&hh']q:h0XP   To host a static (i.e. HTML) website on CloudFiles, you must follow
these steps:q;…q<}q=(hh7hh5ubaubcdocutils.nodes
enumerated_list
q>)q?}q@(hU hhhhhUenumerated_listqAh}qB(UsuffixqCU.h ]h]h]UprefixqDU h]h#]UenumtypeqEUarabicqFuh%K<h&hh']qG(cdocutils.nodes
list_item
qH)qI}qJ(hX   CDN-enable a containerqKhh?hhhU	list_itemqLh}qM(h]h]h]h ]h#]uh%Nh&hh']qNh4)qO}qP(hhKhhIhhhh8h}qQ(h]h]h]h ]h#]uh%K<h']qRh0X   CDN-enable a containerqS…qT}qU(hhKhhOubaubaubhH)qV}qW(hXA   Upload all HTML content. You can use nested directory structures.qXhh?hhhhLh}qY(h]h]h]h ]h#]uh%Nh&hh']qZh4)q[}q\(hhXhhVhhhh8h}q](h]h]h]h ]h#]uh%K=h']q^h0XA   Upload all HTML content. You can use nested directory structures.q_…q`}qa(hhXhh[ubaubaubhH)qb}qc(hXC   Tell CloudFiles what to use for your default index page like this:
hh?hhhhLh}qd(h]h]h]h ]h#]uh%Nh&hh']qeh4)qf}qg(hXB   Tell CloudFiles what to use for your default index page like this:qhhhbhhhh8h}qi(h]h]h]h ]h#]uh%K>h']qjh0XB   Tell CloudFiles what to use for your default index page like this:qk…ql}qm(hhhhhfubaubaubeubcdocutils.nodes
literal_block
qn)qo}qp(hX-   $container->setStaticIndexPage('index.html');hhhhhUliteral_blockqqh}qr(U	xml:spaceqsUpreserveqth ]h]h]h]qu(UcodeqvX   phpqweh#]uh%KCh&hh']qxcdocutils.nodes
inline
qy)qz}q{(hX-   $container->setStaticIndexPage('index.html');h}q|(h]h]q}Uotherq~ah]h ]h#]uhhoh']qh0X-   $container->setStaticIndexPage('index.html');q€…q}q‚(hU hhzubahUinlineqƒubaubh>)q„}q…(hU hhhhhhAh}q†(hCU.Ustartq‡Kh ]h]h]hDU h]h#]hEhFuh%KDh&hh']qˆhH)q‰}qŠ(hX?   (Optional) Tell CloudFiles which error page to use by default:
hh„hhhhLh}q‹(h]h]h]h ]h#]uh%Nh&hh']qŒh4)q}qŽ(hX>   (Optional) Tell CloudFiles which error page to use by default:qhh‰hhhh8h}q(h]h]h]h ]h#]uh%KDh']q‘h0X>   (Optional) Tell CloudFiles which error page to use by default:q’…q“}q”(hhhhubaubaubaubhn)q•}q–(hX-   $container->setStaticErrorPage('error.html');hhhhhhqh}q—(hshth ]h]h]h]q˜(hvX   phpq™eh#]uh%KIh&hh']qšhy)q›}qœ(hX-   $container->setStaticErrorPage('error.html');h}q(h]h]qžUotherqŸah]h ]h#]uhh•h']q h0X-   $container->setStaticErrorPage('error.html');q¡…q¢}q£(hU hh›ubahhƒubaubh4)q¤}q¥(hXz   Bear in mind that steps 3 & 4 do not upload content, but rather specify
a reference to an existing page/CloudFiles object.q¦hhhhhh8h}q§(h]h]h]h ]h#]uh%KJh&hh']q¨h0Xz   Bear in mind that steps 3 & 4 do not upload content, but rather specify
a reference to an existing page/CloudFiles object.q©…qª}q«(hh¦hh¤ubaubeubhhhUsystem_messageq¬h}q­(h]UlevelKh ]h]Usourcehh]h#]UlineK7UtypeUINFOq®uh%KDh&hh']q¯h4)q°}q±(hU h}q²(h]h]h]h ]h#]uhhh']q³h0X:   Enumerated list start value not ordinal-1: "4" (ordinal 4)q´…qµ}q¶(hU hh°ubahh8ubaubaUcurrent_sourceq·NU
decorationq¸NUautofootnote_startq¹KUnameidsqº}q»(hUcreate-a-temporary-urlq¼hUsetupq½hUtemporary-urlsq¾h	Uset-temporary-url-metadata-keyq¿h
h"uh']qÀ(h)qÁ}qÂ(hU hhhhhhh}qÃ(h]h]h]h ]qÄh½ah#]qÅhauh%Kh&hh']qÆ(h))qÇ}qÈ(hX   SetupqÉhhÁhhhh-h}qÊ(h]h]h]h ]h#]uh%Kh&hh']qËh0X   SetupqÌ…qÍ}qÎ(hhÉhhÇubaubhn)qÏ}qÐ(hX²   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles', 'IAD'); # Second argument is the region you wanthhÁhhhhqh}qÑ(hshth ]h]h]h]qÒ(hvX   phpqÓeh#]uh%Kh&hh']qÔhy)qÕ}qÖ(hX²   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles', 'IAD'); # Second argument is the region you wanth}q×(h]h]qØUotherqÙah]h ]h#]uhhÏh']qÚh0X²   use OpenCloud\Rackspace;

$client = new Rackspace(RACKSPACE_US, array(

));

$service = $client->objectStoreService('cloudFiles', 'IAD'); # Second argument is the region you wantqÛ…qÜ}qÝ(hU hhÕubahhƒubaubeubh)qÞ}qß(hU hhhhhhh}qà(h]h]h]h ]qáh¾ah#]qâhauh%Kh&hh']qã(h))qä}qå(hX   Temporary URLsqæhhÞhhhh-h}qç(h]h]h]h ]h#]uh%Kh&hh']qèh0X   Temporary URLsqé…qê}që(hhæhhäubaubh4)qì}qí(hX  Temporary URLs allow you to create time-limited Internet addresses that
allow you to grant access to your Cloud Files account. Using Temporary
URL, you may allow others to retrieve or place objects in your
containers - regardless of whether they're CDN-enabled.qîhhÞhhhh8h}qï(h]h]h]h ]h#]uh%Kh&hh']qðh0X  Temporary URLs allow you to create time-limited Internet addresses that
allow you to grant access to your Cloud Files account. Using Temporary
URL, you may allow others to retrieve or place objects in your
containers - regardless of whether they're CDN-enabled.qñ…qò}qó(hhîhhìubaubh)qô}qõ(hU hhÞhhhhh}qö(h]h]h]h ]q÷h¿ah#]qøh	auh%Kh&hh']qù(h))qú}qû(hX    Set "temporary URL" metadata keyqühhôhhhh-h}qý(h]h]h]h ]h#]uh%Kh&hh']qþh0X    Set "temporary URL" metadata keyqÿ…r   }r  (hhühhúubaubh4)r  }r  (hXY   You must set this "secret" value on your account, where it can be used
in a global state:r  hhôhhhh8h}r  (h]h]h]h ]h#]uh%Kh&hh']r  h0XY   You must set this "secret" value on your account, where it can be used
in a global state:r  …r  }r	  (hj  hj  ubaubhn)r
  }r  (hXo   $account = $service->getAccount();
$account->setTempUrlSecret('my_secret');

echo $account->getTempUrlSecret();hhôhhhhqh}r  (hshth ]h]h]h]r  (hvX   phpr  eh#]uh%K"h&hh']r  hy)r  }r  (hXo   $account = $service->getAccount();
$account->setTempUrlSecret('my_secret');

echo $account->getTempUrlSecret();h}r  (h]h]r  Uotherr  ah]h ]h#]uhj
  h']r  h0Xo   $account = $service->getAccount();
$account->setTempUrlSecret('my_secret');

echo $account->getTempUrlSecret();r  …r  }r  (hU hj  ubahhƒubaubh4)r  }r  (hX~   The string argument of ``setTempUrlSecret()`` is optional - if left out,
the SDK will generate a random hashed secret for you.hhôhhhh8h}r  (h]h]h]h ]h#]uh%K#h&hh']r  (h0X   The string argument of r  …r  }r  (hX   The string argument of hj  ubcdocutils.nodes
literal
r   )r!  }r"  (hX   ``setTempUrlSecret()``h}r#  (h]h]h]h ]h#]uhj  h']r$  h0X   setTempUrlSecret()r%  …r&  }r'  (hU hj!  ubahUliteralr(  ubh0XQ    is optional - if left out,
the SDK will generate a random hashed secret for you.r)  …r*  }r+  (hXQ    is optional - if left out,
the SDK will generate a random hashed secret for you.hj  ubeubeubh)r,  }r-  (hU hhÞhhhhh}r.  (h]h]h]h ]r/  h¼ah#]r0  hauh%K'h&hh']r1  (h))r2  }r3  (hX   Create a temporary URLr4  hj,  hhhh-h}r5  (h]h]h]h ]h#]uh%K'h&hh']r6  h0X   Create a temporary URLr7  …r8  }r9  (hj4  hj2  ubaubh4)r:  }r;  (hXƒ   Once you've set an account secret, you can create a temporary URL for
your object. To allow GET access to your object for 1 minute:r<  hj,  hhhh8h}r=  (h]h]h]h ]h#]uh%K)h&hh']r>  h0Xƒ   Once you've set an account secret, you can create a temporary URL for
your object. To allow GET access to your object for 1 minute:r?  …r@  }rA  (hj<  hj:  ubaubhn)rB  }rC  (hX$   $object->getTemporaryUrl(60, 'GET');hj,  hhhhqh}rD  (hshth ]h]h]h]rE  (hvX   phprF  eh#]uh%K/h&hh']rG  hy)rH  }rI  (hX$   $object->getTemporaryUrl(60, 'GET');h}rJ  (h]h]rK  UotherrL  ah]h ]h#]uhjB  h']rM  h0X$   $object->getTemporaryUrl(60, 'GET');rN  …rO  }rP  (hU hjH  ubahhƒubaubh4)rQ  }rR  (hX   To allow PUT access for 1 hour:rS  hj,  hhhh8h}rT  (h]h]h]h ]h#]uh%K0h&hh']rU  h0X   To allow PUT access for 1 hour:rV  …rW  }rX  (hjS  hjQ  ubaubhn)rY  }rZ  (hX%   $object->getTemporaryUrl(360, 'PUT');hj,  hhhhqh}r[  (hshth ]h]h]h]r\  (hvX   phpr]  eh#]uh%K5h&hh']r^  hy)r_  }r`  (hX%   $object->getTemporaryUrl(360, 'PUT');h}ra  (h]h]rb  Uotherrc  ah]h ]h#]uhjY  h']rd  h0X%   $object->getTemporaryUrl(360, 'PUT');re  …rf  }rg  (hU hj_  ubahhƒubaubeubeubhehU Utransformerrh  NUfootnote_refsri  }rj  Urefnamesrk  }rl  Usymbol_footnotesrm  ]rn  Uautofootnote_refsro  ]rp  Usymbol_footnote_refsrq  ]rr  U	citationsrs  ]rt  h&hUcurrent_lineru  NUtransform_messagesrv  ]rw  Ureporterrx  NUid_startry  KUautofootnotesrz  ]r{  Ucitation_refsr|  }r}  Uindirect_targetsr~  ]r  Usettingsr€  (cdocutils.frontend
Values
r  or‚  }rƒ  (Ufootnote_backlinksr„  KUrecord_dependenciesr…  NUrfc_base_urlr†  Uhttp://tools.ietf.org/html/r‡  U	tracebackrˆ  ˆUpep_referencesr‰  NUstrip_commentsrŠ  NUtoc_backlinksr‹  UentryrŒ  Ulanguage_coder  UenrŽ  U	datestampr  NUreport_levelr  KU_destinationr‘  NU
halt_levelr’  KUstrip_classesr“  Nh-NUerror_encoding_error_handlerr”  Ubackslashreplacer•  Udebugr–  NUembed_stylesheetr—  ‰Uoutput_encoding_error_handlerr˜  Ustrictr™  Usectnum_xformrš  KUdump_transformsr›  NUdocinfo_xformrœ  KUwarning_streamr  NUpep_file_url_templaterž  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¾  j™  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¼j,  uUsubstitution_namesrË  }rÌ  hh&h}rÍ  (h]h ]h]Usourcehh]h#]uU	footnotesrÎ  ]rÏ  UrefidsrÐ  }rÑ  ub.