Modify storage config
Modifies storage configuration.
Example cURL requests
Modify storage name. Notice, that current storage name is the map key.
curl -H "X-Auth-Token: $TOKEN" -X PATCH https://$OP_PANEL_HOST/api/v3/onepanel/provider/storages/$STORAGE_ID \
-H "Content-Type: application/json" -d '{
"My S3 Storage": {
"type":"s3",
"name": "My S3 Storage Updated"
}
}'
{
"type": "s3",
"storagePathType": "flat",
"signatureVersion": "4",
"scheme": "http",
"readonly": false,
"qosParameters": {
"storageId": "2456aa013af797dbef27743790a5f12cche680",
"providerId": "03c7e42a793912307b01b1bbb72a3a6bch4c1c"
},
"name": "My S3 Storage Updated",
"lumaFeed": "auto",
"importedStorage": false,
"id": "2456aa013af797dbef27743790a5f12cche680",
"hostname": "https://iam.exampele.com:443/",
"fileMode": "0664",
"dirMode": "0775",
"bucketName": "bucket1.iam.examplee.com",
"blockSize": "10485760",
"accessKey": ""
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of the storage resource which details should be modified. |
Request body
An object with one key - the current name of the storage that is being modified - and its value set to an object with updated parameters.
<key> object An object with new values for storage parameters to be updated.
An object with new values for storage parameters to be updated.
The name of storage.
Maximum time to wait for a response from the storage service before the request is aborted.
Type of feed for LUMA DB. Feed is a source of user/group mappings used to populate the LUMA DB. For more info please read: https://onedata.org/#/home/documentation/doc/administering_onedata/luma.html
URL of external feed for LUMA DB. Relevant only if lumaFeed equals external.
API key checked by external service used as feed for LUMA DB. Relevant only if lumaFeed equals external.
Map with key-value pairs used for describing storage QoS parameters. Overrides all previously set parameters.
Defines whether storage contains existing data to be imported.
Defines whether the storage is readonly. If enabled, Oneprovider will block any operation that writes, modifies or deletes data on the storage. Such storage can only be used to import data into the space. Mandatory to ensure proper behaviour if the backend storage is actually configured as readonly. This option is available only for imported storages.
The type of storage.
type = "ceph"
(DEPRECATED - use Ceph RADOS instead) storage backend compatible
with Ceph object storage, using the
deprecated libradosstriper library.
The type of storage.
type = "http"
Any HTTP or HTTPS compatible server. Supported only with Readonly option enabled and in manual import mode.
The type of storage.
type = "nfs"
NFS storage.
The type of storage.
type = "nulldevice"
POSIX compatible storage which emulates behavior of /dev/null on
local filesystem. Allows running various performance tests, which are
not impacted by actual storage latency.
The type of storage.
type = "posix"
Any storage exposed to Oneprovider as a locally mounted POSIX filesystem, such as a parallel filesystem (Lustre, GPFS, BeeGFS), a local disk or a SAN volume. In multi-node deployments, the storage must be mounted at the same path on every node where Oneprovider runs.
Request Examples
{
"Old storage name": {
"type": "s3",
"name": "New storage name",
"accessKey": "4efb70ad3e1fc8dd73c721b8f683b2e831503892"
}
}Responses
The storage resources have been successfully modified. Response contains current storage params and report of file creation test.
The name of storage.
Maximum time to wait for a response from the storage service before the request is aborted.
Type of feed for LUMA DB. Feed is a source of user/group mappings used to populate the LUMA DB. For more info please read: https://onedata.org/#/home/documentation/doc/administering_onedata/luma.html
URL of external feed for LUMA DB. Relevant only if lumaFeed equals external.
API key checked by external service used as feed for LUMA DB. Relevant only if lumaFeed equals external.
Map with key-value pairs used for describing storage QoS parameters. Overrides all previously set parameters.
Defines whether storage contains existing data to be imported.
Defines whether the storage is readonly. If enabled, Oneprovider will block any operation that writes, modifies or deletes data on the storage. Such storage can only be used to import data into the space. Mandatory to ensure proper behaviour if the backend storage is actually configured as readonly. This option is available only for imported storages.
The type of storage.
type = "ceph"
(DEPRECATED - use Ceph RADOS instead) storage backend compatible
with Ceph object storage, using the
deprecated libradosstriper library.
The type of storage.
type = "http"
Any HTTP or HTTPS compatible server. Supported only with Readonly option enabled and in manual import mode.
The type of storage.
type = "nfs"
NFS storage.
The type of storage.
type = "nulldevice"
POSIX compatible storage which emulates behavior of /dev/null on
local filesystem. Allows running various performance tests, which are
not impacted by actual storage latency.
The type of storage.
type = "posix"
Any storage exposed to Oneprovider as a locally mounted POSIX filesystem, such as a parallel filesystem (Lustre, GPFS, BeeGFS), a local disk or a SAN volume. In multi-node deployments, the storage must be mounted at the same path on every node where Oneprovider runs.
Unauthorized request.
Forbidden request.
Internal server error.
error object (ErrorDetails) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Services needed to fulfill this request are not running.