Skip to content

Latest commit

 

History

History
200 lines (132 loc) · 5 KB

EnvironmentApi.md

File metadata and controls

200 lines (132 loc) · 5 KB

seldon_deploy_sdk.EnvironmentApi

All URIs are relative to http://X.X.X.X/seldon-deploy/api/v1alpha1

Method HTTP request Description
read_cluster GET /cluster
read_health_check GET /healthcheck
read_user GET /user
read_version GET /version

read_cluster

ClusterInfo read_cluster()

Read the cluster info

Example

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.EnvironmentApi(seldon_deploy_sdk.ApiClient(configuration))

try:
    api_response = api_instance.read_cluster()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EnvironmentApi->read_cluster: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ClusterInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

read_health_check

HealthCheckInfo read_health_check()

Read the healthcheck

Example

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.EnvironmentApi(seldon_deploy_sdk.ApiClient(configuration))

try:
    api_response = api_instance.read_health_check()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EnvironmentApi->read_health_check: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

HealthCheckInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

read_user

UserInfo read_user()

Read the request user

Example

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.EnvironmentApi(seldon_deploy_sdk.ApiClient(configuration))

try:
    api_response = api_instance.read_user()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EnvironmentApi->read_user: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

UserInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

read_version

VersionInfo read_version()

Read the version

Example

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.EnvironmentApi(seldon_deploy_sdk.ApiClient(configuration))

try:
    api_response = api_instance.read_version()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EnvironmentApi->read_version: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

VersionInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]