{id}/dashboards/{id}/variables/{id}
Note: When making API requests, ensure the following headers are included:
- Authorization: Bearer UserToken (replace UserToken with your actual access token. For details on how to obtain the token, refer Actions on a user section.
- Content-Type: application/json
- Accept: application/json
Manages a single variable defined within a specific dashboard.
Get a dashboard by ID.
Path Parameters
- id
Unique ID of the dashboard collection.
- id
Unique ID of the dashboard.
- id
Unique ID of the variable.
Responses
- id
Unique identifier of the variable.
- name
Name of the variable.
- defaultValue
Default value assigned to the variable.
- tag
The tag associated with the variable used for filtering (e.g., hostName, os, make).
- entityType
Type of the entity the variable applies to. For example, resource.
- query
Query expression used to dynamically generate values for the variable.
- Updates the configuration of an existing variable within a dashboard.
Path Parameters
- id
Unique ID of the dashboard collection.
- id
Unique ID of the dashboard.
- id
Unique ID of the variable.
Request Body
application/json
- id
Unique identifier of the variable.
- name
Name of the variable.
- defaultValue
Default value assigned to the variable.
- tag
Tag key used for filtering the entity data.
- entityType
Type of the entity to which the variable is applied.
- query
Optional query to fetch values dynamically.
Responses
204No Content
Deletes the specified variable from the given dashboard.
Path Parameters
- id
Unique ID of the dashboard collection.
- id
Unique ID of the dashboard.
- id
Unique ID of the variable.