All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
available | GET /system/outputs/available | Get all available output modules |
create | POST /system/outputs | Create an output |
delete | DELETE /system/outputs/{outputId} | Delete output |
get | GET /system/outputs | Get a list of all outputs |
get_0 | GET /system/outputs/{outputId} | Get specific output |
update | PUT /system/outputs/{outputId} | Update output |
Map available()
Get all available output modules
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
try:
# Get all available output modules
api_response = api_instance.available()
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemoutputsApi->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]
create(json_body)
Create an output
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
json_body = graylog.CreateOutputRequest() # CreateOutputRequest |
try:
# Create an output
api_instance.create(json_body)
except ApiException as e:
print "Exception when calling SystemoutputsApi->create: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
json_body | CreateOutputRequest |
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]
delete(output_id)
Delete output
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
output_id = graylog.Object() # Object | The id of the output that should be deleted
try:
# Delete output
api_instance.delete(output_id)
except ApiException as e:
print "Exception when calling SystemoutputsApi->delete: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
output_id | Object | The id of the output that should be deleted |
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]
OutputListResponse get()
Get a list of all outputs
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
try:
# Get a list of all outputs
api_response = api_instance.get()
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemoutputsApi->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]
OutputSummary get_0(output_id)
Get specific output
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
output_id = graylog.Object() # Object | The id of the output we want.
try:
# Get specific output
api_response = api_instance.get_0(output_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemoutputsApi->get_0: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
output_id | Object | The id of the output we want. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Output update(output_id, json_body)
Update output
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.SystemoutputsApi()
output_id = graylog.Object() # Object | The id of the output that should be deleted
json_body = graylog.Map() # Map |
try:
# Update output
api_response = api_instance.update(output_id, json_body)
pprint(api_response)
except ApiException as e:
print "Exception when calling SystemoutputsApi->update: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
output_id | Object | The id of the output that should be deleted | |
json_body | Map |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]