Insert Onedata user to credentials mapping into local feed
Adds mapping of Onedata user to user on the specific storage to local feed. Returns an error if the storage has a different LUMA feed than local.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a storage for which user mapping should be added. |
Request body
New user mapping
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
onedataUser object (LumaOnedataUser) Representation of Onedata user.
| |||||||
storageUser object (LumaStorageUser) Credentials identifying user on the local storage resources.
| |||||||
Request Examples
cat user_mapping.json | onepanel-rest-cli -u onepanel:$PASSPHRASE localFeedAddOnedataUserToCredentialsMapping id=$STORAGE_ID --host https://$HOST:9443
Responses
Onedata user mapping for given storage has been successfully added.
Unauthorized request.
Forbidden request.
Storage or user does not exist or LUMA feed is not local.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
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.