workspace_configurations
Creates, updates, deletes, gets or lists a workspace_configurations resource.
Overview
| Name | workspace_configurations |
| Type | Resource |
| Id | aws.grafana.workspace_configurations |
Fields
The following fields are returned by SELECT queries:
- describe_workspace_configuration
| Name | Datatype | Description |
|---|---|---|
configuration | string | The configuration string for the workspace that you requested. For more information about the format and configuration options available, see Working in your Grafana workspace. |
grafana_version | string | The supported Grafana version for the workspace. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_workspace_configuration | select | workspace_id, region | Gets the current configuration string for the given workspace. | |
update_workspace_configuration | update | workspace_id, region, configuration | Updates the configuration string for the given workspace |
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) |
workspace_id | string | The ID of the workspace to update. |
SELECT examples
- describe_workspace_configuration
Gets the current configuration string for the given workspace.
SELECT
configuration,
grafana_version
FROM aws.grafana.workspace_configurations
WHERE workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- update_workspace_configuration
Updates the configuration string for the given workspace
UPDATE aws.grafana.workspace_configurations
SET
configuration = '{{ configuration }}',
grafanaVersion = '{{ grafanaVersion }}'
WHERE
workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
AND configuration = '{{ configuration }}' --required;