Skip to main content

inputs

Creates, updates, deletes, gets or lists an inputs resource.

Overview​

Nameinputs
TypeResource
Idovh.dbaas_logs.inputs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
engine_idstring (uuid)Input engine ID (wire: engineId)
input_idstring (uuid)Input ID (wire: inputId)
stream_idstring (uuid)Associated Graylog stream (wire: streamId)
allowed_networksarrayIP blocks (wire: allowedNetworks)
autoscalebooleanWhether the workload is auto-scaled
created_atstring (date-time)Input creation (wire: createdAt)
descriptionstringInput description
exposed_portstringPort (wire: exposedPort)
hostnamestringHostname
is_restart_requiredbooleanIndicate if input need to be restarted (wire: isRestartRequired)
max_scale_instanceintegerMaximum number of instances in auto-scaled mode (wire: maxScaleInstance)
min_scale_instanceintegerMinimum number of instances in auto-scaled mode (wire: minScaleInstance)
nb_instanceintegerNumber of instance running (wire: nbInstance)
public_addressstringInput IP address (wire: publicAddress)
scaling_notify_enabledbooleanIf set, notify when scaling happens (wire: scalingNotifyEnabled)
ssl_certificatestringInput SSL certificate (wire: sslCertificate)
statusstringinit: configuration required, pending: ready to start, running: available (INIT, PENDING, PROCESSING, RUNNING)
titlestringInput title
updated_atstring (date-time)Input last update (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectinput_id, service_nameReturns the data-gathering tool.
listselectservice_nametitle_pattern, x_pagination_modeReturns the data-gathering tools of the Logs Data Platform service.
createinsertservice_name, description, engine_id, stream_id, titleCreates a data-gathering tool on the Logs Data Platform service.
updateupdateinput_id, service_name, description, engine_id, stream_id, titleUpdates the data-gathering tool.
deletedeleteinput_id, service_nameDeletes the data-gathering tool.
configtestexecinputId, serviceNameChecks the data-gathering tool configuration and returns a test result.
endexecinputId, serviceNameStops the data-gathering tool.
logs_urlexecinputId, serviceNameCreates a temporary URL to read the logs of a data-gathering tool. The URL expires.
restartexecinputId, serviceNameRestarts the data-gathering tool.
startexecinputId, serviceNameStarts the data-gathering tool.

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
api_hoststringThe 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"}})
inputIdstring (uuid)Input ID
input_idstring (uuid)Input ID (wire: inputId)
serviceNamestringService name
service_namestringService name (wire: serviceName)
title_patternstringFilter by title (like) (wire: titlePattern)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the data-gathering tool.

SELECT
engine_id,
input_id,
stream_id,
allowed_networks,
autoscale,
created_at,
description,
exposed_port,
hostname,
is_restart_required,
max_scale_instance,
min_scale_instance,
nb_instance,
public_address,
scaling_notify_enabled,
ssl_certificate,
status,
title,
updated_at
FROM ovh.dbaas_logs.inputs
WHERE input_id = '{{ input_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Creates a data-gathering tool on the Logs Data Platform service.

INSERT INTO ovh.dbaas_logs.inputs (
allowed_networks,
autoscale,
description,
engine_id,
exposed_port,
max_scale_instance,
min_scale_instance,
nb_instance,
scaling_notify_enabled,
stream_id,
title,
service_name
)
SELECT
'{{ allowed_networks }}',
{{ autoscale }},
'{{ description }}' /* required */,
'{{ engine_id }}' /* required */,
'{{ exposed_port }}',
{{ max_scale_instance }},
{{ min_scale_instance }},
{{ nb_instance }},
{{ scaling_notify_enabled }},
'{{ stream_id }}' /* 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
;

UPDATE examples​

Updates the data-gathering tool.

UPDATE ovh.dbaas_logs.inputs
SET
allowed_networks = '{{ allowed_networks }}',
autoscale = {{ autoscale }},
description = '{{ description }}',
engine_id = '{{ engine_id }}',
exposed_port = '{{ exposed_port }}',
max_scale_instance = {{ max_scale_instance }},
min_scale_instance = {{ min_scale_instance }},
nb_instance = {{ nb_instance }},
scaling_notify_enabled = {{ scaling_notify_enabled }},
stream_id = '{{ stream_id }}',
title = '{{ title }}'
WHERE
input_id = '{{ input_id }}' --required
AND service_name = '{{ service_name }}' --required
AND description = '{{ description }}' --required
AND engine_id = '{{ engine_id }}' --required
AND stream_id = '{{ stream_id }}' --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​

Deletes the data-gathering tool.

DELETE FROM ovh.dbaas_logs.inputs
WHERE input_id = '{{ input_id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Checks the data-gathering tool configuration and returns a test result.

EXEC ovh.dbaas_logs.inputs.configtest
@inputId='{{ inputId }}' --required,
@serviceName='{{ serviceName }}' --required
;