All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
edge_job_create | POST /edge_jobs | Create an EdgeJob |
edge_job_delete | DELETE /edge_jobs/{id} | Delete an EdgeJob |
edge_job_file | GET /edge_jobs/{id}/file | Fetch a file of an EdgeJob |
edge_job_inspect | GET /edge_jobs/{id} | Inspect an EdgeJob |
edge_job_list | GET /edge_jobs | Fetch EdgeJobs list |
edge_job_task_logs_inspect | GET /edge_jobs/{id}/tasks/{taskID}/logs | Fetch the log for a specifc task on an EdgeJob |
edge_job_tasks_clear | DELETE /edge_jobs/{id}/tasks/{taskID}/logs | Clear the log for a specifc task on an EdgeJob |
edge_job_tasks_collect | POST /edge_jobs/{id}/tasks/{taskID}/logs | Collect the log for a specifc task on an EdgeJob |
edge_job_tasks_list | GET /edge_jobs/{id}/tasks | Fetch the list of tasks on an EdgeJob |
edge_job_update | POST /edge_jobs/{id} | Update an EdgeJob |
PortainerEdgeGroup edge_job_create(method, body, body2)
Create an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
method = 'method_example' # str | Creation Method
body = portainer_ce_api.EdgejobsEdgeJobCreateFromFileContentPayload() # EdgejobsEdgeJobCreateFromFileContentPayload | EdgeGroup data when method is string
body2 = portainer_ce_api.EdgejobsEdgeJobCreateFromFilePayload() # EdgejobsEdgeJobCreateFromFilePayload | EdgeGroup data when method is file
try:
# Create an EdgeJob
api_response = api_instance.edge_job_create(method, body, body2)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
method | str | Creation Method | |
body | EdgejobsEdgeJobCreateFromFileContentPayload | EdgeGroup data when method is string | |
body2 | EdgejobsEdgeJobCreateFromFilePayload | EdgeGroup data when method is file |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
edge_job_delete(id)
Delete an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
try:
# Delete an EdgeJob
api_instance.edge_job_delete(id)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EdgejobsEdgeJobFileResponse edge_job_file(id)
Fetch a file of an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
try:
# Fetch a file of an EdgeJob
api_response = api_instance.edge_job_file(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_file: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortainerEdgeJob edge_job_inspect(id)
Inspect an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
try:
# Inspect an EdgeJob
api_response = api_instance.edge_job_inspect(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_inspect: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[PortainerEdgeJob] edge_job_list()
Fetch EdgeJobs list
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
try:
# Fetch EdgeJobs list
api_response = api_instance.edge_job_list()
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_list: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EdgejobsFileResponse edge_job_task_logs_inspect(id, task_id)
Fetch the log for a specifc task on an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
task_id = 'task_id_example' # str | Task Id
try:
# Fetch the log for a specifc task on an EdgeJob
api_response = api_instance.edge_job_task_logs_inspect(id, task_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_task_logs_inspect: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id | |
task_id | str | Task Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
edge_job_tasks_clear(id, task_id)
Clear the log for a specifc task on an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
task_id = 'task_id_example' # str | Task Id
try:
# Clear the log for a specifc task on an EdgeJob
api_instance.edge_job_tasks_clear(id, task_id)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_tasks_clear: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id | |
task_id | str | Task Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
edge_job_tasks_collect(id, task_id)
Collect the log for a specifc task on an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
task_id = 'task_id_example' # str | Task Id
try:
# Collect the log for a specifc task on an EdgeJob
api_instance.edge_job_tasks_collect(id, task_id)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_tasks_collect: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id | |
task_id | str | Task Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[EdgejobsTaskContainer] edge_job_tasks_list(id)
Fetch the list of tasks on an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
try:
# Fetch the list of tasks on an EdgeJob
api_response = api_instance.edge_job_tasks_list(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_tasks_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortainerEdgeJob edge_job_update(id, body)
Update an EdgeJob
from __future__ import print_function
import time
import portainer_ce_api
from portainer_ce_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: jwt
configuration = portainer_ce_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = portainer_ce_api.EdgeJobsApi(portainer_ce_api.ApiClient(configuration))
id = 'id_example' # str | EdgeJob Id
body = portainer_ce_api.EdgejobsEdgeJobUpdatePayload() # EdgejobsEdgeJobUpdatePayload | EdgeGroup data
try:
# Update an EdgeJob
api_response = api_instance.edge_job_update(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EdgeJobsApi->edge_job_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | EdgeJob Id | |
body | EdgejobsEdgeJobUpdatePayload | EdgeGroup data |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]