{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dbaas-logs-operation-schema.json",
  "title": "dbaas.logs.Operation",
  "description": "Asynchronous operation",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dbaas-logs-openapi.yml#/components/schemas/dbaas.logs.Operation",
  "type": "object",
  "properties": {
    "aliasId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Alias used",
      "format": "uuid",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "Operation creation",
      "format": "date-time",
      "readOnly": true
    },
    "dashboardId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Dashboard used",
      "format": "uuid",
      "readOnly": true
    },
    "encryptionKeyId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Encryption key used",
      "format": "uuid",
      "readOnly": true
    },
    "indexId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Index used",
      "format": "uuid",
      "readOnly": true
    },
    "inputId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Input used",
      "format": "uuid",
      "readOnly": true
    },
    "operationId": {
      "type": "string",
      "description": "Operation ID",
      "format": "uuid",
      "readOnly": true
    },
    "osdId": {
      "type": [
        "string",
        "null"
      ],
      "description": "OpenSearch Dashboards used",
      "format": "uuid",
      "readOnly": true
    },
    "roleId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Role used",
      "format": "uuid",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "description": "Service name",
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.OperationStateEnum"
        }
      ],
      "description": "Operation status",
      "readOnly": true
    },
    "streamId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stream used",
      "format": "uuid",
      "readOnly": true
    },
    "subscriptionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Subscription used",
      "format": "uuid",
      "readOnly": true
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Metrics tenant used",
      "format": "uuid",
      "readOnly": true
    },
    "tokenId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Token used",
      "format": "uuid",
      "readOnly": true
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Operation last update",
      "format": "date-time",
      "readOnly": true
    }
  },
  "$defs": {
    "dbaas.logs.OperationStateEnum": {
      "type": "string",
      "description": "Possible values for OperationStateEnum",
      "enum": [
        "FAILURE",
        "PENDING",
        "RECEIVED",
        "RETRY",
        "REVOKED",
        "RUNNING",
        "STARTED",
        "SUCCESS"
      ]
    }
  }
}