Skip to main content

output_graylog_stream_archives

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

Overview​

Nameoutput_graylog_stream_archives
TypeResource
Idovh.dbaas_logs.output_graylog_stream_archives

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
archive_idstring (uuid)Archive ID (wire: archiveId)
created_atstring (date-time)Create date (wire: createdAt)
filenamestringFilename
md_5stringMD5 checksum (wire: md5)
retrieval_delayintegerRetrieval delay (wire: retrievalDelay)
retrieval_statestringRetrieval state (sealed, unsealed, unsealing) (wire: retrievalState)
sha_256stringsha256 checksum (wire: sha256)
sizeintegerFile size in bytes

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectarchive_id, service_name, stream_idReturns the archive.
listselectservice_name, stream_idx_pagination_modeReturns the archives of the Logs Data Platform service.
urlexecarchiveId, serviceName, streamIdCreates a temporary URL to download the archive. The URL expires.

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"}})
archiveIdstring (uuid)Archive ID
archive_idstring (uuid)Archive ID (wire: archiveId)
serviceNamestringService name
service_namestringService name (wire: serviceName)
streamIdstring (uuid)Stream ID
stream_idstring (uuid)Stream ID (wire: streamId)
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 archive.

SELECT
archive_id,
created_at,
filename,
md_5,
retrieval_delay,
retrieval_state,
sha_256,
size
FROM ovh.dbaas_logs.output_graylog_stream_archives
WHERE archive_id = '{{ archive_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND stream_id = '{{ stream_id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Creates a temporary URL to download the archive. The URL expires.

EXEC ovh.dbaas_logs.output_graylog_stream_archives.url
@archiveId='{{ archiveId }}' --required,
@serviceName='{{ serviceName }}' --required,
@streamId='{{ streamId }}' --required
;