{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dbaas-logs-input-schema.json",
  "title": "dbaas.logs.Input",
  "description": "Input",
  "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.Input",
  "type": "object",
  "properties": {
    "allowedNetworks": {
      "type": [
        "array",
        "null"
      ],
      "description": "IP blocks",
      "items": {
        "$ref": "#/$defs/ipBlock"
      },
      "readOnly": true
    },
    "autoscale": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the workload is auto-scaled",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "Input creation",
      "format": "date-time",
      "readOnly": true
    },
    "description": {
      "type": "string",
      "description": "Input description",
      "readOnly": true
    },
    "engineId": {
      "type": "string",
      "description": "Input engine ID",
      "format": "uuid",
      "readOnly": true
    },
    "exposedPort": {
      "type": [
        "string",
        "null"
      ],
      "description": "Port",
      "readOnly": true
    },
    "hostname": {
      "type": "string",
      "description": "Hostname",
      "readOnly": true
    },
    "inputId": {
      "type": "string",
      "description": "Input ID",
      "format": "uuid",
      "readOnly": true
    },
    "isRestartRequired": {
      "type": "boolean",
      "description": "Indicate if input need to be restarted",
      "readOnly": true
    },
    "maxScaleInstance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Maximum number of instances in auto-scaled mode",
      "readOnly": true
    },
    "minScaleInstance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Minimum number of instances in auto-scaled mode",
      "readOnly": true
    },
    "nbInstance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of instance running",
      "readOnly": true
    },
    "publicAddress": {
      "type": "string",
      "description": "Input IP address",
      "readOnly": true
    },
    "scalingNotifyEnabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If set, notify when scaling happens",
      "readOnly": true
    },
    "sslCertificate": {
      "type": "string",
      "description": "Input SSL certificate",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/dbaas.logs.InputStatusEnum"
        }
      ],
      "description": "init: configuration required, pending: ready to start, running: available",
      "readOnly": true
    },
    "streamId": {
      "type": "string",
      "description": "Associated Graylog stream",
      "format": "uuid",
      "readOnly": true
    },
    "title": {
      "type": "string",
      "description": "Input title",
      "readOnly": true
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Input last update",
      "format": "date-time",
      "readOnly": true
    }
  },
  "$defs": {
    "dbaas.logs.InputStatusEnum": {
      "type": "string",
      "description": "Possible values for InputStatusEnum",
      "enum": [
        "INIT",
        "PENDING",
        "PROCESSING",
        "RUNNING"
      ]
    },
    "ipBlock": {
      "type": "string",
      "description": "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ip-block"
    }
  }
}