Skip to main content

operations

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

Overview​

Nameoperations
TypeResource
Idovh.dbaas_logs.operations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
alias_idstring (uuid)Alias used (wire: aliasId)
dashboard_idstring (uuid)Dashboard used (wire: dashboardId)
encryption_key_idstring (uuid)Encryption key used (wire: encryptionKeyId)
index_idstring (uuid)Index used (wire: indexId)
input_idstring (uuid)Input used (wire: inputId)
operation_idstring (uuid)Operation ID (wire: operationId)
osd_idstring (uuid)OpenSearch Dashboards used (wire: osdId)
role_idstring (uuid)Role used (wire: roleId)
stream_idstring (uuid)Stream used (wire: streamId)
subscription_idstring (uuid)Subscription used (wire: subscriptionId)
tenant_idstring (uuid)Metrics tenant used (wire: tenantId)
token_idstring (uuid)Token used (wire: tokenId)
service_namestringService name (wire: serviceName)
created_atstring (date-time)Operation creation (wire: createdAt)
statestringOperation status (FAILURE, PENDING, RECEIVED, RETRY, REVOKED, RUNNING, STARTED, SUCCESS)
updated_atstring (date-time)Operation last update (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoperation_id, service_nameReturns the operation.
listselectservice_namex_pagination_modeReturns the operations of the Logs Data Platform service.

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"}})
operation_idstring (uuid)Operation ID (wire: operationId)
service_namestringService name (wire: serviceName)
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 operation.

SELECT
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
FROM ovh.dbaas_logs.operations
WHERE operation_id = '{{ operation_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;