Insert mapping of UID into local feed
Sets mapping of UID on the specific storage to Onedata user in local feed. Returns an error if the storage has a different LUMA feed than local. This endpoint is relevant only for POSIX compatible storages.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a storage constituting space support for which onedata user mapping should be set. |
| uid required | integer The UID of the user on the storage. |
Request body
Credentials identifying user in the Onedata system.
| Property | Type & Description |
|---|---|
mappingScheme string Name of scheme used to represent user identity. | |
Request Examples
cat user_credentials.json | onepanel-rest-cli -u onepanel:$PASSPHRASE --host https://$HOST:9443 localFeedSetUidToOnedataUserMapping id=$STORAGE_ID uid=$UID
Responses
The mapping was successfully set in local feed.
Unauthorized request.
Forbidden request.
Storage or mapping for UID 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.