5 An admin API request will be done on a URI that starts with the configurable 'admin'
6 resource entry point. Authorization for the admin API duplicates the S3 authorization
7 mechanism. Some operations require that the user holds special administrative capabilities.
8 The response entity type (XML or JSON) may be specified as the 'format' option in the
9 request and defaults to JSON if not specified.
14 Get an existing object. NOTE: Does not require owner to be non-suspended.
21 GET /{admin}/bucket?object&format=json HTTP/1.1
29 :Description: The bucket containing the object to be retrieved.
31 :Example: ``foo_bucket``
36 :Description: The object to be retrieved.
44 If successful, returns the desired object.
48 :Description: The desired object.
51 Special Error Responses
52 ~~~~~~~~~~~~~~~~~~~~~~~
56 :Description: Specified object does not exist.
62 Verify the existence of an object. If the object exists,
63 metadata headers for the object will be returned.
70 HEAD /{admin}/bucket?object HTTP/1.1
78 :Description: The bucket containing the object to be retrieved.
80 :Example: ``foo_bucket``
85 :Description: The object to be retrieved.
95 Special Error Responses
96 ~~~~~~~~~~~~~~~~~~~~~~~
100 :Description: Specified object does not exist.
106 Get cluster information.
113 GET /{admin}/zone&format=json HTTP/1.1
120 If successful, returns cluster pool configuration.
124 :Description: Contains current cluster pool configuration.
129 :Description: root of all buckets.
141 :Description: Garbage collection pool.
147 :Description: Log pool.
153 :Description: Intent log pool.
159 :Description: Usage log pool.
165 :Description: User key pool.
171 :Description: User email pool.
177 :Description: Pool of swift users.
181 Special Error Responses
182 ~~~~~~~~~~~~~~~~~~~~~~~
192 Content-Type: application/json
195 "domain_root": ".rgw",
196 "control_pool": ".rgw.control",
197 "gc_pool": ".rgw.gc",
199 "intent_log_pool": ".intent-log",
200 "usage_log_pool": ".usage",
201 "user_keys_pool": ".users",
202 "user_email_pool": ".users.email",
203 "user_swift_pool": ".users.swift",
204 "user_uid_pool ": ".users.uid"
212 Make a pool available for data placement.
219 PUT /{admin}/pool?format=json HTTP/1.1
228 :Description: The pool to be made available for data placement.
230 :Example: ``foo_pool``
235 :Description: Creates the data pool if it does not exist.
237 :Example: False [False]
245 Special Error Responses
246 ~~~~~~~~~~~~~~~~~~~~~~~
250 Remove Placement Pool
251 =====================
253 Make a pool unavailable for data placement.
260 DELETE /{admin}/pool?format=json HTTP/1.1
269 :Description: The existing pool to be made available for data placement.
271 :Example: ``foo_pool``
276 :Description: Destroys the pool after removing it from the active set.
278 :Example: False [False]
286 Special Error Responses
287 ~~~~~~~~~~~~~~~~~~~~~~~
291 List Available Data Placement Pools
292 ===================================
294 List current pools available for data placement.
301 GET /{admin}/pool?format=json HTTP/1.1
308 If successful, returns a list of pools available for data placement.
312 :Description: Contains currently available pools for data placement.
317 List Expired Garbage Collection Items
318 =====================================
320 List objects scheduled for garbage collection.
327 GET /{admin}/garbage?format=json HTTP/1.1
338 If expired garbage collection items exist, a list of such objects
343 :Description: Expired garbage collection items.
348 :Description: A container garbage collection object information.
354 :Description: The name of the object.
360 :Description: The date at which the object expired.
364 Special Error Responses
365 ~~~~~~~~~~~~~~~~~~~~~~~
369 Manually Processes Garbage Collection Items
370 ===========================================
372 List objects scheduled for garbage collection.
379 DELETE /{admin}/garbage?format=json HTTP/1.1
390 If expired garbage collection items exist, a list of removed objects
395 :Description: Expired garbage collection items.
400 :Description: A container garbage collection object information.
406 :Description: The name of the object.
412 :Description: The date at which the object expired.
416 Special Error Responses
417 ~~~~~~~~~~~~~~~~~~~~~~~
431 GET /{admin}/log?format=json HTTP/1.1
439 :Description: The log object to return.
441 :Example: ``2012-10-11-09-4165.2-foo_bucket``
447 If no object is specified, returns the full list of log objects.
451 :Description: A list of log objects.
456 :Description: The name of the log object.
461 :Description: The contents of the log object.
464 Special Error Responses
465 ~~~~~~~~~~~~~~~~~~~~~~~
469 Standard Error Responses
470 ========================
474 :Description: Access denied.
479 :Description: Internal server error.
480 :Code: 500 Internal Server Error
484 :Description: User does not exist.
489 :Description: Bucket does not exist.
494 :Description: No such access key.