Lookup default display credentials
Returns default display credentials for the space support that are stored in LUMA DB. These are POSIX credentials (UID & GID) which are returned in getattr response. They are used to present file owners in the result of e.g. ls or stat operation in Oneclient or when fetching file attributes via REST API.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a storage constituting space support for which default display credentials should be returned. |
| space_id required | string The Id of a space constituting space support for which default display credentials should be returned. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE lumaGetDisplayCredentials id=$STORAGE_ID space_id=$SPACE_ID --host https://$HOST:9443
Responses
Default display credentials for given space support.
| Property | Type & Description |
|---|---|
uid integer User identifier. | |
gid integer Group identifier. | |
Example
{
"uid": 1001,
"gid": 1002
}Unauthorized request.
Forbidden request.
Support or mapping does not exist.
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.