Swagger UI
To open the documentation page in Swagger, click “Modules” → “Swagger” in the left panel.
Preparation
To use the API methods, you need to authorize through Swagger UI:
Create a token of the type you need depending on the API methods you will use, or use an existing token:
Click ‘Authorize’.
In the “Value” field of the appeared modal window, paste the key and click “Authorize”.
Usage
The algorithm for using API methods through Swagger UI:
Click on the arrow or any other element of the row of a specific API method to expand it.
Click ‘Try it out’ (number 1 in the picture below).
Enter the parameters (number 2 in the figure above), if required. To use the API method that requires input parameters, it is enough to fill in the mandatory fields marked with the red word “required.”
Click ‘Execute’.
Main parameters
workspaceCode
instanceKey
clusterKey
integrationMetricType
More details
integrationMetricType is the name of the monitoring system that you need to use to output metrics. Currently, Platform has two such integrations:
prometheus
zabbix
dbName
groupId
userId
More details
The user ID can be obtained in two ways:
By visiting the users page of this tenant. This parameter is located in the “User ID” column.
By using the API method to get all users of this group by its ID.
The response to the request will include all information on the users of this group, including their IDs.