Update space support parameters of provider
Updates space support parameters of a provider in the space.
Authorization depends on the modified parameters (see respective descriptions).
Example cURL requests
Update space support parameters of provider
curl -u username:password -H "Content-type: application/json" \
-X PATCH -d '{"dirStatsServiceEnabled": true}' \
https://$HOST/api/v3/onezone/spaces/$SPACE_ID/providers/$PROVIDER_ID/support_parameters
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Space Id. |
| pid required | string Provider Id. |
Request body
| Property | Type & Description |
|---|---|
accountingEnabled boolean Indicates if accounting is enabled. The accounting mechanism
utilizes directory statistics to keep track of quota usage
within a space for the corresponding supporting provider. | |
dirStatsServiceEnabled boolean Indicates if the directory statistics service should be enabled.
The service gathers statistics concerning logical and physical
directory size, file count and update times. | |
dirStatsServiceStatus string The current status of the directory statistics service, as reported by the
supporting provider. It cannot be modified by a user. May be different from
the Enum: initializingenabledstoppingdisabled | |
Request Examples
{
"accountingEnabled": false,
"dirStatsServiceEnabled": true
}Responses
Space support parameters have been updated successfully.
Invalid request.
| 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."
}
}Authentication 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."
}
}Authorization 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."
}
}Resource not found.
| 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."
}
}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."
}
}