All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
config | GET /system/indices/rotation/config | Configuration of the current rotation strategy |
config_0 | PUT /system/indices/rotation/config | Configuration of the current rotation strategy |
config_schema | GET /system/indices/rotation/strategies/{strategy} | Show JSON schema for configuration of given rotation strategies |
list | GET /system/indices/rotation/strategies | List available rotation strategies |
RotationStrategySummary config()
Configuration of the current rotation strategy
This resource returns the configuration of the currently used rotation strategy.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemindicesrotationApi()
try:
# Configuration of the current rotation strategy
api_response = api_instance.config()
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemindicesrotationApi->config: %s\n" % e
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RotationStrategySummary config_0()
Configuration of the current rotation strategy
This resource stores the configuration of the currently used rotation strategy.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemindicesrotationApi()
= graylog.RotationStrategySummary() # RotationStrategySummary | The description of the rotation strategy and its configuration
try:
# Configuration of the current rotation strategy
api_response = api_instance.config_0()
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemindicesrotationApi->config_0: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
**** | RotationStrategySummary | The description of the rotation strategy and its configuration |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RotationStrategyDescription config_schema(strategy)
Show JSON schema for configuration of given rotation strategies
This resource returns a JSON schema for the configuration of the given rotation strategy.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemindicesrotationApi()
strategy = graylog.Object() # Object | The name of the rotation strategy
try:
# Show JSON schema for configuration of given rotation strategies
api_response = api_instance.config_schema(strategy)
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemindicesrotationApi->config_schema: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
strategy | Object | The name of the rotation strategy |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RotationStrategies list()
List available rotation strategies
This resource returns a list of all available rotation strategies on this Graylog node.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemindicesrotationApi()
try:
# List available rotation strategies
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemindicesrotationApi->list: %s\n" % e
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]