GraphQL + Self Hosted OpsLevel

Once you have completed the installation and the application is running there are many ways to interact with it. One such way is through our GraphQL API. We have many tools that are built on top of our GraphQL API such as our CLI, Terraform Provider, Kubernetes Sync and if you need something a bit more low level you can even use our client library opslevel-go. You can also use an in browser graphical interface to experiment with the API at the endpoint /graphiql - https://self-hosted.example.com/graphiql

Each of these tools by default is configured to talk to software-as-a-service GraphQL API - https://app.opslevel.com/graphql

Each of these tools has way to override this default usually in the form of an environment variable OPSLEVEL_API_URL or a command line flat \--api-url. The following are examples for each.

CLI

opslevel --api-url=https://self-hosted.example.com list services

Kubernetes Sync

kubectl opslevel --api-url=https://self-hosted.example.com service preview

Terraform Provider

provider "opslevel" {
  api_url = "https://self-hosted.example.com"
}