Skip to main content

output_opensearch_alias_streams

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

Overview​

Nameoutput_opensearch_alias_streams
TypeResource
Idovh.dbaas_logs.output_opensearch_alias_streams

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectalias_id, service_nameReturns the data streams attached to the alias.
createinsertalias_id, service_name, stream_idAttaches a data stream to the alias.
deletedeletealias_id, service_name, stream_idDetaches a data stream from the alias.

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
alias_idstring (uuid)Alias ID (wire: aliasId)
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"}})
service_namestringService name (wire: serviceName)
stream_idstring (uuid)Stream ID (wire: streamId)

SELECT examples​

Returns the data streams attached to the alias.

SELECT
value
FROM ovh.dbaas_logs.output_opensearch_alias_streams
WHERE alias_id = '{{ alias_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Attaches a data stream to the alias.

INSERT INTO ovh.dbaas_logs.output_opensearch_alias_streams (
stream_id,
alias_id,
service_name
)
SELECT
'{{ stream_id }}' /* required */,
'{{ alias_id }}',
'{{ 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
;

DELETE examples​

Detaches a data stream from the alias.

DELETE FROM ovh.dbaas_logs.output_opensearch_alias_streams
WHERE alias_id = '{{ alias_id }}' --required
AND service_name = '{{ service_name }}' --required
AND stream_id = '{{ stream_id }}' --required
;