Lenses API Spec
API reference documentation for Lenses.
Last updated
API reference documentation for Lenses.
Last updated
2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.
Starts a session given a username/password and puts it into a cookie.
Happy response. A set-cookie header will be present.
Returns all roles.
Happy response.
Deletes all sessions associated with the current user.
Happy response.
Creates a new role.
Sets the unique name of the new role. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets the display name of the new role. If not provided, the value of "name" will be used.
Contains a list of permission statements.
Allows attaching custom string key/values to resources. The following maxima apply:
Happy response.
Holds the unique name of this role.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Deletes a role.
Successful deletion.
Starts a session given a username/password and puts it into a cookie.
Happy response. A set-cookie header will be present.
Returns a specific role.
Happy response.
Holds the unique name of this role.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Proxies HTTP to a Lenses instance. Note: this is not a regular HTTP API endpoint. The path specified here is a prefix. Everything beneath it gets proxied to the corresponding Lenses instance. Any request body and method (the GET here is only a placeholder) are accepted, as long as the Lenses API accepts it. The connection can even be upgraded to a websocket. The status code and response body are controlled by the Lenses API. This concept does not fit into the OpenAPI world at all; this definition is only here for the sake of documentation to avoid having an undocumented dark matter API.
Error object.
Enumerates possible error types.
Describes the problem in a human readable fashion.
Is a copy of the http status code.
Lists for validation errors the fields that failed validation.
Contains in case of an "unauthorised" type of error, the url of the SSO provider, if any.
Is set to the id of this request. Can be used to correlate backend logs.
Updates a role.
Updates the display name of the role.
Sets, if specififed, the new permission statements.
Patches metadata. It has the following semantics:
Happy response.
Holds the unique name of this role.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Deletes an environment.
Successful deletion.
Deletes a group.
Successful deletion.
Deletes a user.
Successful deletion.
Deletes a ServiceAccount.
Successful deletion.
Returns HQ's licence summary.
Successfully returns licence response.
Is true when the licence is a community one, false otherwise.
Returns HQ's licence.
Successfully returns licence response.
Is set to the moment HQ no longer considers this licence valid. Will be omitted for licences that do not expire.
Enumerates licence tiers.
Returns a specific ServiceAccount.
Happy response.
Contains the resource identifier for use in access control policies.
If null, it won't expire.
Updates when this service account has interaction with the API.
Allows attaching custom string key/values to resources. The following maxima apply:
Updates an environment.
Enumerates Tiers.
Patches metadata. It has the following semantics:
Updates the display name of the environment.
Happy response.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Contains dynamic properties of the Agent, brought in via a connected agent. Only when the agent is connected to HQ, agent info can be updated. An environment that never had a connected agent cannot have a LiveAgentInfo.
Allows attaching custom string key/values to resources. The following maxima apply:
Lists all environments
Happy response.
Returns all users
Happy response.
Returns all ServiceAccounts.
Happy response.
Creates a new ServiceAccount.
Sets the unique name of the new service account. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets | the display name of the new service account. If not provided, the value of "name" will be used.
Sets the description of the new service account.
Determines the moment of token expiration. If not specified, the token will never expire.
Allows attaching custom string key/values to resources. The following maxima apply:
Happy response.
Contains the resource identifier for use in access control policies.
If null, it won't expire.
Updates when this service account has interaction with the API.
Allows attaching custom string key/values to resources. The following maxima apply:
Lists all groups
Happy response.
Returns the backend's settings information.
Successfully returns application settings response.
Creates a new environment.
Sets the name of the new environment. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets the display name of the new environment. If not provided, the value of "name" will be used.
Enumerates Tiers.
Allows attaching custom string key/values to resources. The following maxima apply:
Happy response.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Contains dynamic properties of the Agent, brought in via a connected agent. Only when the agent is connected to HQ, agent info can be updated. An environment that never had a connected agent cannot have a LiveAgentInfo.
Allows attaching custom string key/values to resources. The following maxima apply:
Returns the backend's meta information.
Happy response.
Is set to the HQ build version.
Is set to the HQ build id.
Is set to the HQ backend build id.
Is set to the HQ UI build id.
Equals runtime.GOOS.
Equals runtime.GOARCH.
Is set to the instant the backend started.
Equals runtime.Memstats.Alloc.
Equals runtime.Memstats.Sys.
Equals runtime.Memstats.GCCPUFraction.
Equals runtime.NumGoroutine().
Returns a specific user
Happy response.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Models a user's Profile.
Allows attaching custom string key/values to resources. The following maxima apply:
Allows updating fields of the user profile.
Contains the users' full name, e.g. Mary Jane Doe.
Contains the users' email address, e.g. mary.jane@doe.net. Note that this is not necessarily the same as the user's name, which often looks like an email address, but is not per se.
Happy response.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Models a user's Profile.
Allows attaching custom string key/values to resources. The following maxima apply:
Creates a new user.
Sets the unique name of the new user. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets the display name of the new user. If not provided, the value of "name" will be used.
Allows attaching custom string key/values to resources. The following maxima apply:
Happy response.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Models a user's Profile.
Allows attaching custom string key/values to resources. The following maxima apply:
Updates a user.
Updates the display name of the user.
Patches metadata. It has the following semantics:
Happy response.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Models a user's Profile.
Allows attaching custom string key/values to resources. The following maxima apply:
Renews the service account's token. The current token is invalidated and a new one is generated. An optional expiration timestamp can be provided.
Determines the moment of token expiration. If not specified, the token will never expire.
Happy response.
Contains the resource identifier for use in access control policies.
If null, it won't expire.
Updates when this service account has interaction with the API.
Allows attaching custom string key/values to resources. The following maxima apply:
Assigns the given user exactly to the provided groups, ensuring they are not part of any other groups.
The name of the user.
Adds the user or service account to the groups (specified by their names).
Removes the user or service account from the groups (specified by their names). If a group is specified in both add_to_groups as well in here, removal wins.
Sets the user or service account memberships to those groups (specified by their names) in an absolute fashion (ensures user/sa will be exactly a member of those), if provided. Cannot be combined with the add_to_groups or remove_from_groups.
User groups membership updated successfully.
Contains the canonical and unique user's user name. Potentially an implicit reference to a corresponding entity in an external system in case of SSO.
Contains the resource identifier for use in access control policies.
Updates when this user has interaction with the API.
Models a user's Profile.
Allows attaching custom string key/values to resources. The following maxima apply:
Assigns the given service account exactly to the provided groups, ensuring they are not part of any other groups.
The name of the service account.
Adds the user or service account to the groups (specified by their names).
Removes the user or service account from the groups (specified by their names). If a group is specified in both add_to_groups as well in here, removal wins.
Sets the user or service account memberships to those groups (specified by their names) in an absolute fashion (ensures user/sa will be exactly a member of those), if provided. Cannot be combined with the add_to_groups or remove_from_groups.
Service account groups membership updated successfully.
Contains the resource identifier for use in access control policies.
If null, it won't expire.
Updates when this service account has interaction with the API.
Allows attaching custom string key/values to resources. The following maxima apply:
Updates a service account.
Updates the display name of the service account.
Updates the description of a service account.
Patches metadata. It has the following semantics:
Happy response.
Contains the resource identifier for use in access control policies.
If null, it won't expire.
Updates when this service account has interaction with the API.
Allows attaching custom string key/values to resources. The following maxima apply:
Returns the currently authenticated user
Happy response.
Represents either a user or service account.
Gets a group by its name.
Happy response.
Holds the name of the Group. Must be unique.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Updates a group.
Updates the display name of the group.
Updates the Group description, if a value is provided.
Sets the Roles that are bound to this Group to the Roles (specified by their names), if provided.
Adds the users/principals (specified by their names) to this group, if provided.
Removes the users/principals (specified by their names) from this group, if provided. If members are specified in both add_members as well in here, removal wins.
Sets the members of this group to those users/principals (specified by their names) in an absolute fashion, if provided. Cannot be combined with the add_members or remove_members fields.
Patches metadata. It has the following semantics:
Happy response.
Holds the name of the Group. Must be unique.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Retrieves a list of dataset tags
A response wrapping a paginated list of datasets and the set of relative source types
Creates a new Group.
Sets the unique name of the new group. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets the display name of the new group. If not provided, the value of "name" will be used.
Sets the description of the new group.
Lists principal names (users, service accounts) to be member of this group.
Sets the Roles that are bound to this Group by name.
Allows attaching custom string key/values to resources. The following maxima apply:
Happy response.
Holds the name of the Group. Must be unique.
Contains the resource identifier for use in access control policies.
Allows attaching custom string key/values to resources. The following maxima apply:
Get a single dataset by connection/name. While information mastered externally might be a few second out of sync with their respective sources (e.g. JMX metadata, Elasticsearch index status, etc), information mastered in Lenses's db is guaranteed to be up to date (e.g. tags, descriptions).
"kafka"
"customer-positions"
Retrieves a single environment by name.
Happy response.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Contains dynamic properties of the Agent, brought in via a connected agent. Only when the agent is connected to HQ, agent info can be updated. An environment that never had a connected agent cannot have a LiveAgentInfo.
Allows attaching custom string key/values to resources. The following maxima apply:
Retrieves a list of datasets
A response wrapping a paginated list of datasets and the set of relative source types