All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
create | POST /search/decorators | Creates a message decoration configuration |
delete | DELETE /search/decorators/{decoratorId} | Create a decorator |
get | GET /search/decorators | Returns all configured message decorations |
get_available | GET /search/decorators/available | Returns all available message decorations |
update | PUT /search/decorators/{decoratorId} | Update a decorator |
Decorator create(json_body)
Creates a message decoration configuration
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SearchdecoratorsApi()
json_body = graylog.DecoratorImpl() # DecoratorImpl |
try:
# Creates a message decoration configuration
api_response = api_instance.create(json_body)
pprint(api_response)
except ApiException as e:
print "Exception when calling SearchdecoratorsApi->create: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
json_body | DecoratorImpl |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete(decorator_id)
Create a decorator
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SearchdecoratorsApi()
decorator_id = graylog.Object() # Object |
try:
# Create a decorator
api_instance.delete(decorator_id)
except ApiException as e:
print "Exception when calling SearchdecoratorsApi->delete: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
decorator_id | Object |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List get()
Returns all configured message decorations
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SearchdecoratorsApi()
try:
# Returns all configured message decorations
api_response = api_instance.get()
pprint(api_response)
except ApiException as e:
print "Exception when calling SearchdecoratorsApi->get: %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]
Map get_available()
Returns all available message decorations
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SearchdecoratorsApi()
try:
# Returns all available message decorations
api_response = api_instance.get_available()
pprint(api_response)
except ApiException as e:
print "Exception when calling SearchdecoratorsApi->get_available: %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]
Decorator update(decorator_id, json_body)
Update a decorator
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SearchdecoratorsApi()
decorator_id = graylog.Object() # Object |
json_body = graylog.DecoratorImpl() # DecoratorImpl |
try:
# Update a decorator
api_response = api_instance.update(decorator_id, json_body)
pprint(api_response)
except ApiException as e:
print "Exception when calling SearchdecoratorsApi->update: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
decorator_id | Object | ||
json_body | DecoratorImpl |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]