@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class StorageRestController
extends HerdBaseController
| Modifier and Type | Field and Description |
|---|---|
static String |
STORAGES_URI_PREFIX |
| Constructor and Description |
|---|
StorageRestController() |
| Modifier and Type | Method and Description |
|---|---|
Storage |
createStorage(StorageCreateRequest request)
Creates a new storage.
|
Storage |
deleteStorage(String storageName)
Deletes an existing storage by name.
|
Storage |
getStorage(String storageName)
Gets an existing storage by name.
|
StorageKeys |
getStorages()
Gets a list of namespace keys for all namespaces defined in the system.
|
Storage |
updateStorage(String storageName,
StorageUpdateRequest request)
Updates an existing storage.
|
getList, validateNoDuplicateQueryStringParamspublic static final String STORAGES_URI_PREFIX
@RequestMapping(value="/storages",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_STORAGES_POST")
public Storage createStorage(@RequestBody
StorageCreateRequest request)
request - the information needed to create the storage@RequestMapping(value="/storages/{storageName}",
method=PUT,
consumes={"application/xml","application/json"})
@Secured(value="FN_STORAGES_PUT")
public Storage updateStorage(@PathVariable(value="storageName")
String storageName,
@RequestBody
StorageUpdateRequest request)
storageName - the name of the storage to updaterequest - the information needed to update the storage@RequestMapping(value="/storages/{storageName}",
method=GET)
@Secured(value="FN_STORAGES_GET")
public Storage getStorage(@PathVariable(value="storageName")
String storageName)
storageName - the storage name@RequestMapping(value="/storages/{storageName}",
method=DELETE)
@Secured(value="FN_STORAGES_DELETE")
public Storage deleteStorage(@PathVariable(value="storageName")
String storageName)
storageName - the storage name@RequestMapping(value="/storages",
method=GET)
@Secured(value="FN_STORAGES_ALL_GET")
public StorageKeys getStorages()
Copyright © 2017. All rights reserved.