Starburst Enterprise REST API#
The Starburst Enterprise platform (SEP) REST API allows you to manage the following features with the scripting and automation tool of your choice:
View the reference documentation for the SEP API.
Initial setup#
The REST API can be used to programmatically create entities at any time in the lifecycle of your cluster. However, it is particularly useful during initial setup, when you must create a large number of entities all at once.
Specifically the initial configuration must include creation of a user with the
sysadmin
role, since it is required to use the REST API. Create the user
through the UI, and then use it for further API requests for the initial setup.
This can then include further users, that have access to the REST API.
Authentication#
The REST API supports the same authentication methods as the Starburst Enterprise web UI, with the exception of Kerberos authentication.
API clients pass credentials via the Authorization
header (either Basic
or
Bearer
type).
Basic authentication#
For PASSWORD authentication, use basic authentication with username and password.
Send the authorization header with the base64-encoded value of
username:password
:
curl ... -H 'Authorization: Basic dFHzdDp0ZXN0'
Alternatively, specify the username and password with the -u
option:
curl ... -u 'username:password'
Bearer token authentication#
For other authentication methods, use Bearer token authentication. The Bearer token value is the same as the authentication cookie used by the Starburst Enterprise web UI:
curl ... -H 'Authorization: Bearer <token_value>'
Entities and endpoints#
The REST API is split up into two separate groups of entities and endpoints, detailed in the following sections.
Built-in access control and data products#
Use the detailed technical documentation about all available endpoints and methods, that cover functionality for built-in access control as well as data products:
A full OpenAPI specification for the REST API is available on the server at the
api/v1/openApi
endpoint.
Code examples include cURL, Java, Android, Obj-C, JavaScript, C#, PHP, Perl, and Python.
Starburst Warp Speed#
A separate REST API for Starburst Warp Speed is available. It uses the same authentication and authorization, but includes a separate set of endpoints. These endpoints use a separate context for each catalog.