All URIs are relative to https://.projects.oryapis.com
Method | HTTP request | Description |
---|---|---|
get_version | GET /version | Return Running Software Version. |
GetVersion200Response get_version()
Return Running Software Version.
This endpoint returns the version of Ory Kratos. If the service supports TLS Edge Termination, this endpoint does not require the X-Forwarded-Proto
header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
- Bearer Authentication (oryAccessToken):
import ory_client
from ory_client.models.get_version200_response import GetVersion200Response
from ory_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://.projects.oryapis.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ory_client.Configuration(
host = "https://.projects.oryapis.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: oryAccessToken
configuration = ory_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with ory_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ory_client.MetadataApi(api_client)
try:
# Return Running Software Version.
api_response = api_instance.get_version()
print("The response of MetadataApi->get_version:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MetadataApi->get_version: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns the Ory Kratos version. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]