Skip to content

Observability

All operations require authentication.

11 operationsv2/publicCloud/project
Agent setup

List log kindsBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/kind

Returns the names of the log kinds OpenSearch emits, which can be forwarded to a stream.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200string[]successful operation

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/kind \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "string"]

List log subscriptionsBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription

Returns the identifiers of the OpenSearch log subscriptions. Set kind to restrict the list to one log kind.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Query parameters

kind
KindEnum

Filter subscriptions by log kind

ValuesCUSTOMER_LOGS

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200string[]successful operation

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "00000000-0000-0000-0000-000000000000"]

List metricsBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/metric

Returns the metrics available for the service. Set extended to true to include engine-specific metrics.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Query parameters

extended
boolean

Display engine-specific metrics

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200Metric[]successful operation
metrics
read-only
HostMetric[]

Metric values for each host in the cluster

name
read-only
string

Name of the metric

unit
read-only
MetricUnitEnum

Unit of the metric values

ValuesBYTESBYTES_PER_SECONDGIGABYTESGIGABYTES_PER_HOURMEGABYTESMEGABYTES_PER_SECONDMILLISECONDSPERCENTSCALARSCALAR_PER_SECONDSECONDSUNKNOWN

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/metric \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "metrics": [ { "dataPoints": [ { "timestamp": 0, "value": 0 } ], "hostname": "string" } ], "name": "string", "unit": "BYTES" }]

Get a log kindBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/kind/{name}

Returns a log kind and the additional fields its logs carry.

Path parameters

name
required
string

Name

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Response

200LogKindsuccessful operation
additionalReturnedFields
read-only
string[]

List of additional log fields managed in this log kind

createdAt
read-only
stringdate-time

Creation date of the log kind

displayName
read-only
string

Log kind display name

kindId
read-only
stringuuid

Identifier of the log kind

name
read-only
string

Log kind name

updatedAt
read-only
stringdate-time

Last update date of the log kind

Example uses name = string, projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/kind/{name} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "additionalReturnedFields": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "displayName": "string", "kindId": "00000000-0000-0000-0000-000000000000", "name": "string", "updatedAt": "2024-01-01T12:00:00Z"}

Get a log subscriptionBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription/{subscriptionId}

Returns the log kind and the destination stream of a subscription.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

subscriptionId
required
stringuuid

Subscription ID

Response

200LogSubscriptionsuccessful operation
createdAt
read-only
stringdate-time

Creation date of the subscription

kind
read-only
string

Log kind name of this subscription

resource
read-only
LogSubscriptionResource

Subscribed resource, where the logs come from

serviceName
read-only
string

Name of the destination log service

streamId
read-only
string

Identifier of the destination log stream

subscriptionId
read-only
stringuuid

Unique identifier of the subscription, used to change or stop the forwarding

updatedAt
read-only
stringdate-time

Last update date of the subscription

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, subscriptionId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription/{subscriptionId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "createdAt": "2024-01-01T12:00:00Z", "kind": "string", "resource": { "name": "string", "type": "string" }, "serviceName": "string", "streamId": "string", "subscriptionId": "00000000-0000-0000-0000-000000000000", "updatedAt": "2024-01-01T12:00:00Z"}

Get a metricBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/metric/{metricName}

Returns the values of a metric for each node of the service, over the requested period.

Path parameters

metricName
required
string

Metric name

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Query parameters

period
MetricPeriodEnum

Time period over which to retrieve metric values

ValuesLAST_DAYLAST_HOURLAST_MONTHLAST_WEEKLAST_YEAR

Response

200Metricsuccessful operation
metrics
read-only
HostMetric[]

Metric values for each host in the cluster

name
read-only
string

Name of the metric

unit
read-only
MetricUnitEnum

Unit of the metric values

ValuesBYTESBYTES_PER_SECONDGIGABYTESGIGABYTES_PER_HOURMEGABYTESMEGABYTES_PER_SECONDMILLISECONDSPERCENTSCALARSCALAR_PER_SECONDSECONDSUNKNOWN

Example uses metricName = string, projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/metric/{metricName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "metrics": [ { "dataPoints": [ { "timestamp": 0, "value": 0 } ], "hostname": "string" } ], "name": "string", "unit": "BYTES"}

Get the Prometheus endpointBeta

GET
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/prometheus

Returns the scraping targets and the username for Prometheus authentication. The password is returned only by a credentials reset.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Response

200PrometheusEndpointsuccessful operation
targets
read-only
PrometheusTarget[]

Scraping targets

username
read-only
string

Username for Prometheus authentication

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/prometheus \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "targets": [ { "host": "string", "port": 0 } ], "username": "string"}

Create a log subscriptionBeta

POST
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription

Forwards OpenSearch logs of one kind to a Logs Data Platform stream. The subscription is created asynchronously and the response returns the operation identifier.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Request body (required)

kind
required
string

Log kind name to subscribe to

streamId
required
stringuuid

Identifier of the customer log stream

Response

200LogSubscriptionResponsesuccessful operation
operationId
read-only
stringuuid

Identifier of the operation

serviceName
read-only
string

Operation owner's service name

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "operationId": "00000000-0000-0000-0000-000000000000", "serviceName": "string"}

Generate a temporary log URLBeta

POST
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/url

Generates a temporary URL to read the logs of one kind. The URL expires.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Request body (required)

kind
required
string

Log kind name

Response

200TemporaryLogsLinksuccessful operation
expirationDate
read-only
stringdate-time

Temporary url expiration date

url
read-only
string

Temporary url

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/url \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "expirationDate": "2024-01-01T12:00:00Z", "url": "string"}

Reset the Prometheus credentialsBeta

POST
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/prometheus/credentials/reset

Resets the Prometheus password. The previous password stops working immediately and the new credentials are returned in the response.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Response

200PrometheusAccesssuccessful operation
password
read-only
stringpassword

Password for Prometheus authentication

username
read-only
string

Username for Prometheus authentication

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/prometheus/credentials/reset \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "password": "string", "username": "string"}

Delete a log subscriptionBeta

DELETE
/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription/{subscriptionId}

Deletes the subscription and stops forwarding OpenSearch logs to the stream.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

subscriptionId
required
stringuuid

Subscription ID

Response

200LogSubscriptionResponsesuccessful operation
operationId
read-only
stringuuid

Identifier of the operation

serviceName
read-only
string

Operation owner's service name

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, subscriptionId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedAnalytics/opensearch/{serviceId}/log/subscription/{subscriptionId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "operationId": "00000000-0000-0000-0000-000000000000", "serviceName": "string"}