4
4
Show details for an object
5
5
--------------------------
6
6
7
- .. sample :: object_store /v1/objects/get.php
7
+ .. sample :: objectstore /v1/objects/get.php
8
8
.. refdoc :: OpenStack/ObjectStore/v1/Models/Container.html#method_getObject
9
9
10
10
At this point, the object returned is *empty * because we did not execute a HTTP request to receive the state of the
@@ -26,7 +26,7 @@ of the object's metadata, will not download the object's content. To do this, se
26
26
Download an object
27
27
------------------
28
28
29
- .. sample :: object_store /v1/objects/download.php
29
+ .. sample :: objectstore /v1/objects/download.php
30
30
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_download
31
31
32
32
As you will notice, a Stream _ object is returned by this call. For more information about dealing with streams, please
@@ -38,7 +38,7 @@ consult `Guzzle's docs`_.
38
38
List objects
39
39
------------
40
40
41
- .. sample :: object_store /v1/objects/list.php
41
+ .. sample :: objectstore /v1/objects/list.php
42
42
.. refdoc :: OpenStack/ObjectStore/v1/Models/Container.html#method_listObjects
43
43
44
44
When listing objects, you must be aware that not *all * information about a container is returned in a collection.
@@ -61,13 +61,13 @@ Create an object
61
61
62
62
When creating an object, you can upload its content according to a string representation:
63
63
64
- .. sample :: object_store /v1/objects/create.php
64
+ .. sample :: objectstore /v1/objects/create.php
65
65
.. refdoc :: OpenStack/ObjectStore/v1/Models/Container.html#method_createObject
66
66
67
67
If that is not optimal or convenient, you can use a stream instead. Any instance of ``\Psr\Http\Message\StreamInterface ``
68
68
is acceptable. For example, to use a normal Guzzle stream:
69
69
70
- .. sample :: object_store /v1/objects/create_from_stream.php
70
+ .. sample :: objectstore /v1/objects/create_from_stream.php
71
71
72
72
Create a large object (over 5GB)
73
73
--------------------------------
@@ -81,25 +81,25 @@ uploading, this is what happens under the hood:
81
81
82
82
To upload a DLO, you need to call:
83
83
84
- .. sample :: object_store /v1/objects/create_large_object.php
84
+ .. sample :: objectstore /v1/objects/create_large_object.php
85
85
.. refdoc :: OpenStack/ObjectStore/v1/Models/Container.html#method_createLargeObject
86
86
87
87
Copy object
88
88
-----------
89
89
90
- .. sample :: object_store /v1/objects/copy.php
90
+ .. sample :: objectstore /v1/objects/copy.php
91
91
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_copy
92
92
93
93
Delete object
94
94
-------------
95
95
96
- .. sample :: object_store /v1/objects/delete.php
96
+ .. sample :: objectstore /v1/objects/delete.php
97
97
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_delete
98
98
99
99
Get metadata
100
100
------------
101
101
102
- .. sample :: object_store /v1/objects/get_metadata.php
102
+ .. sample :: objectstore /v1/objects/get_metadata.php
103
103
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_getMetadata
104
104
105
105
The returned value will be a standard associative array, or hash, containing arbitrary key/value pairs. These will
@@ -109,7 +109,7 @@ correspond to the values set either when the object was created, or when a previ
109
109
Replace all metadata with new values
110
110
------------------------------------
111
111
112
- .. sample :: object_store /v1/objects/reset_metadata.php
112
+ .. sample :: objectstore /v1/objects/reset_metadata.php
113
113
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_resetMetadata
114
114
115
115
In order to replace all existing metadata with a set of new values, you can use this operation. Any existing metadata
@@ -139,7 +139,7 @@ the metadata of the account will now be:
139
139
Merge new metadata values with existing
140
140
---------------------------------------
141
141
142
- .. sample :: object_store /v1/objects/merge_metadata.php
142
+ .. sample :: objectstore /v1/objects/merge_metadata.php
143
143
.. refdoc :: OpenStack/ObjectStore/v1/Models/StorageObject.html#method_mergeMetadata
144
144
145
145
In order to merge a set of new metadata values with the existing metadata set, you can use this operation. Any existing
0 commit comments