All URIs are relative to https://{username}:{password}@localhost:{port}/{basePath}
Method | HTTP request | Description |
---|---|---|
api_v2_joblog_jobid_get | GET /api/v2/joblog/{jobid} | Get job log for jobid |
api_v2_joblog_messages_get | GET /api/v2/joblog/messages | Get console messages log. |
InlineResponse20078 api_v2_joblog_jobid_get(jobid, show_time=show_time)
Get job log for jobid
Get job log for jobid
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.JoblogApi()
jobid = 56 # int | Job identifier
show_time = true # bool | Show time in job log. (optional)
try:
# Get job log for jobid
api_response = api_instance.api_v2_joblog_jobid_get(jobid, show_time=show_time)
pprint(api_response)
except ApiException as e:
print("Exception when calling JoblogApi->api_v2_joblog_jobid_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
jobid | int | Job identifier | |
show_time | bool | Show time in job log. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20079 api_v2_joblog_messages_get(limit=limit)
Get console messages log.
Get messages log. Note, because there are returned all current Bacula messages, this endpoint should not be shared non-admin users.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.JoblogApi()
limit = 56 # int | Set messages log Limit. (optional)
try:
# Get console messages log.
api_response = api_instance.api_v2_joblog_messages_get(limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling JoblogApi->api_v2_joblog_messages_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | Set messages log Limit. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]