Lookup default posix credentials
Returns default storage credentials for the space supported by POSIX-compatible storage that are stored in LUMA DB. GID will be used as a component of storage credentials for each member of the space. Both UID and GID will be used as to represent owner of the space directory on storage. 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 default storage credentials should be returned. |
| space_id required | string The Id of a space constituting space support for which default storage credentials should be returned. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE lumaGetDefaultPosixCredentials id=$STORAGE_ID space_id=$SPACE_ID --host https://$OP_PANEL_HOST:9443
Responses
Default storage posix credentials for given space support.
User identifier.
Group identifier.
Example
{
"uid": 1001,
"gid": 1002
}Unauthorized request.
Forbidden request.
Support does not exist.
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.