~todd-deshane/openstack-manuals/working

« back to all changes in this revision

Viewing changes to doc/target/docbkx/webhelp/openstack-object-storage-dev/os-objectstorage-devguide/content/ch04s01s03.html

  • Committer: Anne Gentle
  • Date: 2011-04-14 18:12:25 UTC
  • Revision ID: anne@openstack.org-20110414181225-owwk0h4saf7w9hhw
Added output files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 
2
<!DOCTYPE html
 
3
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:exsl="http://exslt.org/common" xmlns:ng="http://docbook.org/docbook-ng"><head>
 
5
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
 
6
<title xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://docbook.org/ns/docbook">4.1.3. Creating a Storage Container - OpenStack Object Storage Developer Guide
 
7
   - API v1</title><meta xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:d="http://docbook.org/ns/docbook" name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/><link rel="home" href="index.html" title="OpenStack Object Storage Developer Guide"/><link rel="up" href="using-curl.html" title="4.1. Using cURL"/><link rel="prev" href="ch04s01s02.html" title="4.1.2. Determining Storage Usage"/><link rel="next" href="ch04s01s04.html" title="4.1.4. Uploading a Storage Object"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script type="text/javascript">
 
8
            //The id for tree cookie
 
9
            var treeCookieId = "treeview-1778";
 
10
            var language = "en";
 
11
            var w = new Object();
 
12
            //Localization
 
13
            txt_filesfound = 'Results';
 
14
            txt_enter_at_least_1_char = "You must enter at least one character.";
 
15
            txt_browser_not_supported = "Your browser is not supported. Use of Mozilla Firefox is recommended.";
 
16
            txt_please_wait = "Please wait. Search in progress...";
 
17
            txt_results_for = "Results for: ";
 
18
        </script><style type="text/css">
 
19
            input {
 
20
            margin-bottom: 5px;
 
21
            margin-top: 2px;
 
22
            }
 
23
 
 
24
            .folder {
 
25
            display: block;
 
26
            height: 22px;
 
27
            padding-left: 20px;
 
28
            background: transparent url(../common/jquery/treeview/images/folder.gif) 0 0px no-repeat;
 
29
            }
 
30
            
 
31
        </style><link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/><link rel="stylesheet" type="text/css" href="../common/css/positioning.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/treeview/jquery.treeview.css"/><script type="text/javascript" src="../common/jquery/jquery-1.4.2.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery-ui-1.8.2.custom.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery.cookie.js"><!----></script><script type="text/javascript" src="../common/jquery/treeview/jquery.treeview.min.js"><!----></script><script type="text/javascript" src="search/htmlFileList.js"><!----></script><script type="text/javascript" src="search/htmlFileInfoList.js"><!----></script><script type="text/javascript" src="search/nwSearchFnt.js"><!----></script><script type="text/javascript" src="search/stemmers/en_stemmer.js"><!--//make this scalable to other languages as well.--></script><script type="text/javascript" src="search/index-1.js"><!----></script><script type="text/javascript" src="search/index-2.js"><!----></script><script type="text/javascript" src="search/index-3.js"><!----></script></head><body><div xmlns="" id="header"><img src="../common/images/openstack-logo.png" alt="OpenStack Documentation" width="157" height="47"/><p class="breadcrumbs"><a href="http://docs.openstack.org/">OpenStack Manuals</a></p><h1>4.1.3. Creating a Storage Container</h1><div id="navheader" align="right"><!----><table class="navLinks"><tr><td><a id="showHideButton" onclick="showHideToc();" class="pointLeft" title="Hide TOC tree">Sidebar
 
32
                            </a></td><td><a accesskey="p" class="navLinkPrevious" href="ch04s01s02.html">Prev</a>
 
33
                                        |
 
34
                                        <a accesskey="u" class="navLinkUp" href="using-curl.html">Up</a>
 
35
                                    |
 
36
                                    <a accesskey="n" class="navLinkNext" href="ch04s01s04.html">Next</a></td></tr></table></div></div><div id="content"><!----><div class="section" title="4.1.3. Creating a Storage Container"><div class="titlepage"><div><div><h3 class="title"><a id="d6e786"/>4.1.3. Creating a Storage Container</h3></div></div></div><p> Before uploading any data to OpenStack Object Storage, you must create a storage container. You do
 
37
          this with a <span class="command"><strong>PUT</strong></span> request; cURL can be used for that, too.</p><div class="example"><a id="d6e790"/><p class="title"><strong>Example 4.3. cURL Create Storage Container</strong></p><div class="example-contents"><pre class="screen">
 
38
   <span class="command"><strong>curl</strong></span> <code class="option">–X PUT</code> <code class="option">-D</code> - \
 
39
        <code class="option">-H "X-Auth-Token: fc81aaa6-98a1-9ab0-94ba-aba9a89aa9ae"</code> \
 
40
        <code class="uri">https://storage.swiftdrive.com/v1/CF_xer7_343/images</code>
 
41
                      </pre><pre class="screen">
 
42
   <code class="computeroutput">HTTP/1.1 201 Created
 
43
   Date: Thu, 09 Jul 2009 17:03:36 GMT
 
44
   Server: Apache
 
45
   Content-Length: 0
 
46
   Content-Type: text/plain
 
47
   </code></pre></div></div><br class="example-break"/><p>Returning an HTTP status code of 201 (Created) indicates that the container was
 
48
          successfully created.</p></div><script xmlns="" type="text/javascript" src="../common/main.js"><!----></script><hr xmlns=""/><h2 xmlns="" class="userNotes">User Notes On This Page</h2><div xmlns="" id="disqus_thread"><script type="text/javascript">
 
49
              /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
 
50
              var disqus_shortname = 'openstackdocs'; 
 
51
              
 
52
              
 
53
              
 
54
              
 
55
              
 
56
              
 
57
              (function() {
 
58
              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
 
59
              dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
 
60
              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
 
61
              })();
 
62
            </script><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript><a href="http://disqus.com" class="dsq-brlink">User notes powered by <span class="logo-disqus">Disqus</span></a></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04s01s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="using-curl.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s01s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></div><div xmlns=""><div id="leftnavigation" style="padding-top:3px; background-color:white;"><div id="tabs"><ul><li><a href="#treeDiv"><span class="contentsTab">Contents</span></a></li><li><a href="#searchDiv"><span class="searchTab">Search</span></a></li></ul><div id="treeDiv"><img src="../../../common/images/loading.gif" alt="loading table of contents..." id="tocLoading" style="display:block;"/><div id="ulTreeDiv" style="display:none"><ul id="tree" class="filetree"><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch_object-storage-dev-overview.html">1. Overview</a></span><ul><li><span class="file"><a href="intended-audience.html">1.1. Intended Audience</a></span></li><li><span class="file"><a href="doc-change-history.html">1.2. Document Change History</a></span></li><li><span class="file"><a href="additional-resources.html">1.3. Additional Resources</a></span></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch_object-storage-dev-general-api.html">2. General API Information</a></span><ul><li><span class="file"><a href="authentication.html">2.1. Authentication</a></span><ul><li><span class="file"><a href="authentication.html#d6e223">2.1.1. Request</a></span></li><li><span class="file"><a href="authentication.html#d6e238">2.1.2. Response</a></span></li></ul></li><li><span class="file"><a href="overview-api.html">2.2. Overview of API Operations</a></span></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch_object-storage-dev-api-storage.html">3. API Operations for Storage Services</a></span><ul><li><span class="file"><a href="storage-account-services.html">3.1. Storage Account Services</a></span><ul><li><span class="file"><a href="s_listcontainers.html">3.1.1. List Containers</a></span><ul><li><span class="file"><a href="s_serializedlistoutput.html">3.1.1.1. Serialized List Output</a></span></li><li><span class="file"><a href="s_listcontainers.html">3.1.1.2. List Large Number of Containers</a></span></li></ul></li><li><span class="file"><a href="retrieve-account-metadata.html">3.1.2. Retrieve Account Metadata</a></span></li></ul></li><li><span class="file"><a href="storage-container-services.html">3.2. Storage Container Services</a></span><ul><li><span class="file"><a href="list-objects.html">3.2.1. List Objects</a></span><ul><li><span class="file"><a href="ch03s02s01s01.html">3.2.1.1. Serialized List Output</a></span></li><li><span class="file"><a href="ch03s02s01s02.html">3.2.1.2. List Large Number of Objects</a></span></li><li><span class="file"><a href="ch03s02s01s03.html">3.2.1.3. Pseudo-Hierarchical Folders/Directories</a></span></li></ul></li><li><span class="file"><a href="create-container.html">3.2.2. Create Container</a></span></li><li><span class="file"><a href="delete-container.html">3.2.3. Delete Container</a></span></li><li><span class="file"><a href="retrieve-container-metadata.html">3.2.4. Retrieve Container Metadata</a></span></li></ul></li><li><span class="file"><a href="storage-object-services.html">3.3. Storage Object Services</a></span><ul><li><span class="file"><a href="ch03s03s01.html">3.3.1. Retrieve Object</a></span></li><li><span class="file"><a href="ch03s03s02.html">3.3.2. Create/Update Object</a></span><ul><li><span class="file"><a href="ch03s03s02s01.html">3.3.2.1. Chunked Transfer Encoding</a></span></li></ul></li><li><span class="file"><a href="ch03s03s03.html">3.3.3. Copy Object</a></span></li><li><span class="file"><a href="ch03s03s04.html">3.3.4. Delete Object</a></span></li><li><span class="file"><a href="ch03s03s05.html">3.3.5. Retrieve Object Metadata</a></span></li><li><span class="file"><a href="ch03s03s06.html">3.3.6. Update Object Metadata</a></span></li></ul></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch_object-storage-dev-troubleshooting.html">4. Troubleshooting</a></span><ul><li><span class="file"><a href="using-curl.html">4.1. Using cURL</a></span><ul><li><span class="file"><a href="ch04s01s01.html">4.1.1. Authentication</a></span></li><li><span class="file"><a href="ch04s01s02.html">4.1.2. Determining Storage Usage</a></span></li><li id="webhelp-currentid"><span class="file"><a href="ch04s01s03.html">4.1.3. Creating a Storage Container</a></span></li><li><span class="file"><a href="ch04s01s04.html">4.1.4. Uploading a Storage Object</a></span></li><li><span class="file"><a href="ch04s01s05.html">4.1.5. CDN-Enabling the Container</a></span></li><li><span class="file"><a href="ch04s01s06.html">4.1.6. Other cURL Commands</a></span></li></ul></li></ul></li></ul></div></div><div id="searchDiv"><div id="search"><form onsubmit="Verifie(ditaSearch_Form);return false" name="ditaSearch_Form" class="searchForm"><fieldset class="searchFieldSet"><legend>Search</legend><center><input id="textToSearch" name="textToSearch" type="text" class="searchText"/> &nbsp; <input onclick="Verifie(ditaSearch_Form)" type="button" class="searchButton" value="Go" id="doSearch"/></center></fieldset></form></div><div id="searchResults"><center/></div><p class="searchHighlight"><a href="#" onclick="toggleHighlight()">Search Highlighter (On/Off)</a></p></div></div></div></div></body></html>
 
 
b'\\ No newline at end of file'