All URIs are relative to http://X.X.X.X/seldon-deploy/api/v1alpha1
Method | HTTP request | Description |
---|---|---|
create_pipeline_batch_job | POST /namespaces/{namespace}/pipelines/{name}/batchjobs | |
create_seldon_deployment_batch_job | POST /namespaces/{namespace}/seldondeployments/{name}/batchjobs | |
get_deployment_batch_job | GET /namespaces/{namespace}/seldondeployments/{name}/batchjobs/{jobName} | |
get_pipeline_batch_job | GET /namespaces/{namespace}/pipelines/{name}/batchjobs/{jobName} | |
list_pipeline_batch_jobs | GET /namespaces/{namespace}/pipelines/{name}/batchjobs | |
list_seldon_deployment_batch_jobs | GET /namespaces/{namespace}/seldondeployments/{name}/batchjobs |
BatchJobPostResponse create_pipeline_batch_job(name, namespace, workflow)
Create the pipeline batch jobs
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
workflow = seldon_deploy_sdk.BatchJobDefinition() # BatchJobDefinition | WorkflowName
try:
api_response = api_instance.create_pipeline_batch_job(name, namespace, workflow)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->create_pipeline_batch_job: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
workflow | BatchJobDefinition | WorkflowName |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchJobPostResponse create_seldon_deployment_batch_job(name, namespace, workflow)
Create the seldondeployment's batch jobs
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
workflow = seldon_deploy_sdk.BatchJobDefinition() # BatchJobDefinition | WorkflowName
try:
api_response = api_instance.create_seldon_deployment_batch_job(name, namespace, workflow)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->create_seldon_deployment_batch_job: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
workflow | BatchJobDefinition | WorkflowName |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchJobGetResponse get_deployment_batch_job(name, namespace, job_name)
Get details on the seldondeployment's batch job
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
job_name = 'job_name_example' # str | JobName identifies a job name
try:
api_response = api_instance.get_deployment_batch_job(name, namespace, job_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->get_deployment_batch_job: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
job_name | str | JobName identifies a job name |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchJobGetResponse get_pipeline_batch_job(name, namespace, job_name)
Get details on the pipeline batch job
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
job_name = 'job_name_example' # str | JobName identifies a job name
try:
api_response = api_instance.get_pipeline_batch_job(name, namespace, job_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->get_pipeline_batch_job: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
job_name | str | JobName identifies a job name |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchJobsListResponse list_pipeline_batch_jobs(name, namespace, limit=limit, page=page)
Read the pipeline batch jobs
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
limit = 'limit_example' # str | Limit of items returned in one response (optional)
page = 'page_example' # str | Requested page (optional)
try:
api_response = api_instance.list_pipeline_batch_jobs(name, namespace, limit=limit, page=page)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->list_pipeline_batch_jobs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
limit | str | Limit of items returned in one response | [optional] |
page | str | Requested page | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchJobsListResponse list_seldon_deployment_batch_jobs(name, namespace, limit=limit, page=page)
Read the seldondeployment's batch jobs
from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
limit = 'limit_example' # str | Limit of items returned in one response (optional)
page = 'page_example' # str | Requested page (optional)
try:
api_response = api_instance.list_seldon_deployment_batch_jobs(name, namespace, limit=limit, page=page)
pprint(api_response)
except ApiException as e:
print("Exception when calling BatchJobsApi->list_seldon_deployment_batch_jobs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
limit | str | Limit of items returned in one response | [optional] |
page | str | Requested page | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]