PUT service ostor-settings

Description

Changes existing object storage settings.

Requests

Syntax

PUT /?ostor-settings&name=<parameter_name>&value=<parameter_value> HTTP/1.1
Host: <host>
Date: <date>
Authorization: <authorization_string>

Parameters

PUT service ostor-settings parameters
Parameter name Description Possible values Default value
OS.max_count Maximum number of object services. When this value is reached, the automatic split stops. 1–65536 100
OS.max_size Maximum size of the object service, in gigabytes. When this value is reached, the automatic split is performed. 1–16000 1000
cfg.autosplit.enabled Enables or disables the automatic split. 0/1 1
cfg.autosplit.max_active Maximum number of splits ongoing at the same time. 0–2^31 1
ostor.default_cors.enabled Default CORS behavior if no policy is specified. To allow all CORS, specify 1. Otherwise, specify 0. 0/1 1

Headers

This implementation uses only common request headers.

Responses

Headers

This implementation uses only common response headers.

Body

Empty.

Errors

Returns Error Code 400 if a wrong set of parameters is specified.

Examples

Sample request

The following request updates the default CORS behavior.

PUT /?ostor-settings&name=ostor.default_cors.enabled&value=0 /HTTP1.1
Date : Mon, 14 Nov 2023 14:41:05 GMT+3:00
Host : s3.example.com
Authorization : <authorization_string>

Sample response

HTTP/1.1 200 OK
x-amz-req-time-micros : 404
Transfer-encoding : chunked
Server : nginx/1.8.1
Connection : keep-alive
x-amz-request-id : 80000000000000030008e3ac6b0bc436
Date : Mon, 14 Nov 2023 14:41:07 GMT
Content-type : application/json