GET service ostor-settings

Description

Lists existing object storage settings.

Requests

Syntax

GET /?ostor-settings HTTP/1.1
Host: <host>
Date: <date>
Authorization: <authorization_string>

Parameters

Empty.

Headers

This implementation uses only common request headers.

Responses

Headers

This implementation uses only common response headers.

Body

A JSON dictionary with a list of settings in the following format:

{
  "OS.max_count": <value>,
  "OS.max_size": <value>,
  "cfg.autosplit.enabled": <value>,
  "cfg.autosplit.max_active": <value>,
  "ostor.default_cors.enabled": <value>
}

Examples

Sample request

The following request returns information about all object storage settings.

GET /?ostor-settings /HTTP1.1
Date : Mon, 14 Nov 2023 14:39:21 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:39:22 GMT
Content-type : application/json

{
  "OS.max_count": 100,
  "OS.max_size": 1000,
  "cfg.autosplit.enabled": 1,
  "cfg.autosplit.max_active": 1,
  "ostor.default_cors.enabled": 1
}