output_graylog_dashboards
Creates, updates, deletes, gets or lists an output_graylog_dashboards resource.
Overview​
| Name | output_graylog_dashboards |
| Type | Resource |
| Id | ovh.dbaas_logs.output_graylog_dashboards |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
dashboard_id | string (uuid) | Dashboard ID (wire: dashboardId) |
created_at | string (date-time) | Dashboard creation (wire: createdAt) |
description | string | Dashboard description |
iam | object | IAM resource metadata |
is_editable | boolean | Indicates if you are allowed to edit entry (wire: isEditable) |
title | string | Dashboard description |
updated_at | string (date-time) | Dashboard last update (wire: updatedAt) |
Graylog dashboard
| Name | Datatype | Description |
|---|---|---|
dashboard_id | string (uuid) | Dashboard ID (wire: dashboardId) |
created_at | string (date-time) | Dashboard creation (wire: createdAt) |
description | string | Dashboard description |
iam | object | IAM resource metadata |
is_editable | boolean | Indicates if you are allowed to edit entry (wire: isEditable) |
title | string | Dashboard description |
updated_at | string (date-time) | Dashboard last update (wire: updatedAt) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | dashboard_id, service_name | Returns the dashboard. | |
list | select | service_name | iam_tags, x_pagination_mode | Returns the dashboards of the Logs Data Platform service. |
create | insert | service_name, description, title | Creates a dashboard on the Logs Data Platform service. | |
update | update | dashboard_id, service_name, description, title | Updates the dashboard. | |
delete | delete | dashboard_id, service_name | Deletes the dashboard. | |
duplicate | exec | dashboardId, serviceName, description, title | Creates a copy of the dashboard. |
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 |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
dashboardId | string (uuid) | Dashboard ID |
dashboard_id | string (uuid) | Dashboard ID (wire: dashboardId) |
serviceName | string | Service name |
service_name | string | Service name (wire: serviceName) |
iam_tags | object | Filter resources on IAM tags (wire: iamTags) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Returns the dashboard.
SELECT
dashboard_id,
created_at,
description,
iam,
is_editable,
title,
updated_at
FROM ovh.dbaas_logs.output_graylog_dashboards
WHERE dashboard_id = '{{ dashboard_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;
Returns the dashboards of the Logs Data Platform service.
SELECT
dashboard_id,
created_at,
description,
iam,
is_editable,
title,
updated_at
FROM ovh.dbaas_logs.output_graylog_dashboards
WHERE service_name = '{{ service_name }}' -- required
AND iam_tags = '{{ iam_tags }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
INSERT examples​
- create
- Manifest
Creates a dashboard on the Logs Data Platform service.
INSERT INTO ovh.dbaas_logs.output_graylog_dashboards (
description,
title,
service_name
)
SELECT
'{{ description }}' /* required */,
'{{ title }}' /* required */,
'{{ service_name }}'
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at
;
# Description fields are for documentation purposes
- name: output_graylog_dashboards
props:
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the output_graylog_dashboards resource.
- name: description
value: "{{ description }}"
description: |
Description
- name: title
value: "{{ title }}"
description: |
Title
UPDATE examples​
- update
Updates the dashboard.
UPDATE ovh.dbaas_logs.output_graylog_dashboards
SET
description = '{{ description }}',
title = '{{ title }}'
WHERE
dashboard_id = '{{ dashboard_id }}' --required
AND service_name = '{{ service_name }}' --required
AND description = '{{ description }}' --required
AND title = '{{ title }}' --required
RETURNING
alias_id,
dashboard_id,
encryption_key_id,
index_id,
input_id,
operation_id,
osd_id,
role_id,
stream_id,
subscription_id,
tenant_id,
token_id,
service_name,
created_at,
state,
updated_at;
DELETE examples​
- delete
Deletes the dashboard.
DELETE FROM ovh.dbaas_logs.output_graylog_dashboards
WHERE dashboard_id = '{{ dashboard_id }}' --required
AND service_name = '{{ service_name }}' --required
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- duplicate
Creates a copy of the dashboard.
EXEC ovh.dbaas_logs.output_graylog_dashboards.duplicate
@dashboardId='{{ dashboardId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"description": "{{ description }}",
"streamId": "{{ streamId }}",
"title": "{{ title }}"
}'
;