versions
Creates, updates, deletes, gets or lists a versions resource.
Overview
| Name | versions |
| Type | Resource |
| Id | aws.grafana.versions |
Fields
The following fields are returned by SELECT queries:
- list_versions
| Name | Datatype | Description |
|---|---|---|
grafana_version | string | The Grafana versions available to create. If a workspace ID is included in the request, the Grafana versions to which this workspace can be upgraded. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_versions | select | region | maxResults, nextToken, workspace-id | Lists available versions of Grafana. These are available when calling CreateWorkspace. Optionally, include a workspace to list the versions to which it can be upgraded. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to include in the response. |
nextToken | string | The token to use when requesting the next set of results. You receive this token from a previous ListVersions operation. |
workspace-id | string | The ID of the workspace to list the available upgrade versions. If not included, lists all versions of Grafana that are supported for CreateWorkspace. |
SELECT examples
- list_versions
Lists available versions of Grafana. These are available when calling CreateWorkspace. Optionally, include a workspace to list the versions to which it can be upgraded.
SELECT
grafana_version
FROM aws.grafana.versions
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND `workspace-id` = '{{ workspace-id }}'
;