Skip to main content

versions

Creates, updates, deletes, gets or lists a versions resource.

Overview

Nameversions
TypeResource
Idaws.grafana.versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
grafana_versionstringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
list_versionsselectregionmaxResults, nextToken, workspace-idLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to include in the response.
nextTokenstringThe token to use when requesting the next set of results. You receive this token from a previous ListVersions operation.
workspace-idstringThe 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

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 }}'
;