forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
221 lines
11 KiB
HTML
221 lines
11 KiB
HTML
<a name="obs_04_0031"></a><a name="obs_04_0031"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Bucket ACL Information</h1>
|
|
<div id="body12000724"><div class="section" id="obs_04_0031__section5584184924715"><h4 class="sectiontitle">Functions</h4><p id="obs_04_0031__p25643130">This operation returns the ACL information of a bucket. To obtain the ACL of a bucket, you need to have the <strong id="obs_04_0031__b209837412517435">READ_ACP</strong> or <strong id="obs_04_0031__b33275896917435">FULL_CONTROL</strong> permission for the bucket.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section29461583"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0031__screen32534588"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>GET /?acl HTTP/1.1
|
|
Host: bucketname.obs.region.example.com
|
|
Date: date
|
|
Authorization: authorization
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section63827656"><h4 class="sectiontitle">Request Parameters</h4><p id="obs_04_0031__p62863594">This request contains no parameter.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section37578000"><h4 class="sectiontitle">Request Headers</h4><p id="obs_04_0031__p58786336">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section2657687"><h4 class="sectiontitle">Request Elements</h4><p id="obs_04_0031__p39784396">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section23919191"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0031__screen1310673"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
|
|
Date: date
|
|
Content-Length: length
|
|
Content-Type: application/xml
|
|
|
|
<span class="cp"><?xml version="1.0" encoding="UTF-8" standalone="yes"?></span>
|
|
<span class="nt"><AccessControlPolicy</span> <span class="na">xmlns=</span><span class="s">"http://obs.region.example.com/doc/2015-06-30/"</span><span class="nt">></span>
|
|
<span class="nt"><Owner></span>
|
|
<span class="nt"><ID></span>id<span class="nt"></ID></span>
|
|
<span class="nt"></Owner></span>
|
|
<span class="nt"><AccessControlList></span>
|
|
<span class="nt"><Grant></span>
|
|
<span class="nt"><Grantee></span>
|
|
<span class="nt"><ID></span>id<span class="nt"></ID></span>
|
|
<span class="nt"></Grantee></span>
|
|
<span class="nt"><Permission></span>permission<span class="nt"></Permission></span>
|
|
<span class="nt"><Delivered></span>false<span class="nt"></Delivered></span>
|
|
<span class="nt"></Grant></span>
|
|
<span class="nt"></AccessControlList></span>
|
|
<span class="nt"></AccessControlPolicy></span>
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section13946127"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0031__p1512332591013">The response to the request uses common headers. For details, see <a href="obs_04_0013.html#obs_04_0013__d0e686">Table 1</a>.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section58406281"><h4 class="sectiontitle">Response Elements</h4><p id="obs_04_0031__p26852358">This response returns information (in the form of elements) about the bucket ACL. <a href="#obs_04_0031__table46938871">Table 1</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0031__table46938871"></a><a name="table46938871"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0031__table46938871" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response elements</caption><thead align="left"><tr id="obs_04_0031__row22931300"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.8.3.2.3.1.1"><p id="obs_04_0031__p45495974">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.8.3.2.3.1.2"><p id="obs_04_0031__p14786732">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0031__row42109833"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p55453326">Owner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p62534407">Bucket owner</p>
|
|
<p id="obs_04_0031__p25938755">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row32122205"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p51761783">ID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p31954877">Account ID</p>
|
|
<p id="obs_04_0031__p19158445">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row49697845"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p66102514">AccessControlList</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p52703436">Indicates the ACL that records all users who have permissions to access the bucket and the permissions granted to the users.</p>
|
|
<p id="obs_04_0031__p4568879">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row41119914"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p42378741">Grant</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p10125972">Container for the grantee and the granted permissions</p>
|
|
<p id="obs_04_0031__p24024887">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row14897392"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p65838064">Grantee</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p31282940">Grantee information</p>
|
|
<p id="obs_04_0031__p13111011">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row22578699105646"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p39717156105654">Canned</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p62973095105654">Grants permissions to all users.</p>
|
|
<p id="obs_04_0031__p29886945105654">Type: Enumeration The value must be <strong id="obs_04_0031__b15736103510112">Everyone</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row33068941105651"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p32426193105654">Delivered</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p9275973105654">Indicates whether the bucket ACL is applied to objects in the bucket.</p>
|
|
<p id="obs_04_0031__p16374900105654">Type: boolean</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0031__row50890237"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0031__p28468571">Permission</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0031__p24252925">Grantee's permission for a bucket</p>
|
|
<p id="obs_04_0031__p16949740">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section55894487"><h4 class="sectiontitle">Error Responses</h4><p id="obs_04_0031__p30751663">No special error responses are involved. For details about error responses, see <a href="obs_04_0115.html#obs_04_0115__d0e843">Table 2</a>.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section14819157124617"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0031__screen42901510155312"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>GET /?acl HTTP/1.1
|
|
User-Agent: curl/7.29.0
|
|
Host: examplebucket.obs.region.example.com
|
|
Accept: */*
|
|
Date: WED, 01 Jul 2015 02:39:28 GMT
|
|
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:X7HtzGsIEkzJbd8vo1DRu30vVrs=
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0031__section76081155815"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0031__screen18548202314552"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20
|
|
21
|
|
22
|
|
23
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31
|
|
32
|
|
33
|
|
34
|
|
35</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-obs-request-id: BF260000016436B69D82F14E93528658
|
|
x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSjTh8661+HF5y8uAnTOBIpNO133hji+
|
|
Content-Type: application/xml
|
|
Date: WED, 01 Jul 2015 02:39:28 GMT
|
|
Content-Length: 784
|
|
|
|
<span class="cp"><?xml version="1.0" encoding="UTF-8" standalone="yes"?></span>
|
|
<span class="nt"><AccessControlPolicy</span> <span class="na">xmlns=</span><span class="s">"http://obs.example.com/doc/2015-06-30/"</span><span class="nt">></span>
|
|
<span class="nt"><Owner></span>
|
|
<span class="nt"><ID></span>b4bf1b36d9ca43d984fbcb9491b6fce9<span class="nt"></ID></span>
|
|
<span class="nt"></Owner></span>
|
|
<span class="nt"><AccessControlList></span>
|
|
<span class="nt"><Grant></span>
|
|
<span class="nt"><Grantee></span>
|
|
<span class="nt"><ID></span>b4bf1b36d9ca43d984fbcb9491b6fce9<span class="nt"></ID></span>
|
|
<span class="nt"></Grantee></span>
|
|
<span class="nt"><Permission></span>FULL_CONTROL<span class="nt"></Permission></span>
|
|
<span class="nt"></Grant></span>
|
|
<span class="nt"><Grant></span>
|
|
<span class="nt"><Grantee></span>
|
|
<span class="nt"><ID></span>783fc6652cf246c096ea836694f71855<span class="nt"></ID></span>
|
|
<span class="nt"></Grantee></span>
|
|
<span class="nt"><Permission></span>READ<span class="nt"></Permission></span>
|
|
<span class="nt"><Delivered></span>false<span class="nt"></Delivered></span>
|
|
<span class="nt"></Grant></span>
|
|
<span class="nt"><Grant></span>
|
|
<span class="nt"><Grantee></span>
|
|
<span class="nt"><Canned></span>Everyone<span class="nt"></Canned></span>
|
|
<span class="nt"></Grantee></span>
|
|
<span class="nt"><Permission></span>READ_ACP<span class="nt"></Permission></span>
|
|
<span class="nt"></Grant></span>
|
|
<span class="nt"></AccessControlList></span>
|
|
<span class="nt"></AccessControlPolicy></span>
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0026.html">Advanced Bucket Settings</a></div>
|
|
</div>
|
|
</div>
|
|
|