{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-cloud-project-database-service-without-prometheus-schema.json",
  "title": "cloud.project.database.ServiceWithoutPrometheus",
  "description": "Cloud database service definition without prometheus enabler",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-cloud-openapi.yml#/components/schemas/cloud.project.database.ServiceWithoutPrometheus",
  "type": "object",
  "properties": {
    "backupTime": {
      "allOf": [
        {
          "$ref": "#/$defs/time"
        }
      ],
      "description": "Time on which backups start every day. DEPRECATED: use backups.time"
    },
    "backups": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.service.Backup"
        }
      ],
      "description": "Information related to the backups, null if the engine does not support backups",
      "nullable": true
    },
    "capabilities": {
      "type": "object",
      "description": "Capabilities of the services",
      "additionalProperties": {
        "$ref": "#/$defs/cloud.project.database.service.CapabilityActions"
      },
      "readOnly": true
    },
    "category": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.engine.CategoryEnum"
        }
      ],
      "description": "Category of the engine",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "Date of the creation of the cluster",
      "format": "date-time",
      "readOnly": true
    },
    "description": {
      "type": "string",
      "description": "Description of the cluster"
    },
    "disk": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.service.Disk"
        }
      ],
      "description": "Disk attributes of the cluster. DEPRECATED: use storage"
    },
    "endpoints": {
      "type": "array",
      "description": "List of all endpoints of the service",
      "items": {
        "$ref": "#/$defs/cloud.project.database.service.Endpoint"
      },
      "readOnly": true
    },
    "engine": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.EngineEnum"
        }
      ],
      "description": "Name of the engine of the service",
      "readOnly": true
    },
    "flavor": {
      "type": "string",
      "description": "The VM flavor used for this cluster"
    },
    "id": {
      "type": "string",
      "description": "Service ID",
      "format": "uuid",
      "readOnly": true
    },
    "ipRestrictions": {
      "type": "array",
      "description": "IP Blocks authorized to access to the cluster",
      "items": {
        "$ref": "#/$defs/cloud.project.database.service.IpRestriction"
      }
    },
    "maintenanceTime": {
      "allOf": [
        {
          "$ref": "#/$defs/time"
        }
      ],
      "description": "Time on which maintenances can start every day"
    },
    "networkId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Private network ID in which the cluster is",
      "format": "uuid"
    },
    "networkType": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.NetworkTypeEnum"
        }
      ],
      "description": "Type of network of the cluster",
      "readOnly": true
    },
    "nodeNumber": {
      "type": "integer",
      "description": "Number of nodes in the cluster. DEPRECATED: use nodes"
    },
    "nodes": {
      "type": "array",
      "description": "Nodes of the cluster",
      "items": {
        "$ref": "#/$defs/cloud.project.database.service.Node"
      },
      "readOnly": true
    },
    "openstackRegion": {
      "type": [
        "string",
        "null"
      ],
      "description": "OpenStack region of the cluster",
      "readOnly": true
    },
    "plan": {
      "type": "string",
      "description": "Plan of the cluster"
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Region of the cluster"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.StatusEnum"
        }
      ],
      "description": "Current status of the cluster",
      "readOnly": true
    },
    "storage": {
      "allOf": [
        {
          "$ref": "#/$defs/cloud.project.database.service.Storage"
        }
      ],
      "description": "Storage attributes of the cluster",
      "nullable": true
    },
    "subnetId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Private subnet ID in which the cluster is",
      "format": "uuid"
    },
    "version": {
      "type": "string",
      "description": "Version of the engine deployed on the cluster"
    }
  },
  "$defs": {
    "cloud.project.database.EngineEnum": {
      "type": "string",
      "description": "Possible names of the engines",
      "enum": [
        "clickhouse",
        "grafana",
        "kafka",
        "kafkaConnect",
        "kafkaMirrorMaker",
        "mongodb",
        "mysql",
        "opensearch",
        "postgresql",
        "valkey"
      ]
    },
    "cloud.project.database.NetworkTypeEnum": {
      "type": "string",
      "description": "Type of network in which the databases cluster are",
      "enum": [
        "private",
        "public"
      ]
    },
    "cloud.project.database.StatusEnum": {
      "type": "string",
      "description": "Possible state of the job",
      "enum": [
        "CREATING",
        "DELETING",
        "DRAINED",
        "ERROR",
        "LOCKED",
        "LOCKED_PENDING",
        "LOCKED_UPDATING",
        "PENDING",
        "READY",
        "SHELVED",
        "TO_DRAIN",
        "UPDATING"
      ]
    },
    "cloud.project.database.engine.CategoryEnum": {
      "type": "string",
      "description": "Different categories of engines",
      "enum": [
        "analysis",
        "operational",
        "streaming"
      ]
    },
    "cloud.project.database.service.Backup": {
      "type": "object",
      "description": "Cloud database service backups definition",
      "properties": {
        "pitr": {
          "type": [
            "string",
            "null"
          ],
          "description": "Date until PITR is available",
          "format": "date-time",
          "readOnly": true
        },
        "regions": {
          "type": "array",
          "description": "Regions on which the backups are stored",
          "items": {
            "type": "string"
          }
        },
        "retentionDays": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of retention days for the backups",
          "readOnly": true
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/time"
            }
          ],
          "description": "Time on which backups start every day"
        }
      }
    },
    "cloud.project.database.service.CapabilityActions": {
      "type": "object",
      "description": "Cloud database service capability actions definition",
      "properties": {
        "create": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.capability.StateEnum"
            }
          ],
          "description": "Defines if the capability can be created",
          "nullable": true,
          "readOnly": true
        },
        "delete": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.capability.StateEnum"
            }
          ],
          "description": "Defines if the capability can be deleted",
          "nullable": true,
          "readOnly": true
        },
        "read": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.capability.StateEnum"
            }
          ],
          "description": "Defines if the capability can be read",
          "nullable": true,
          "readOnly": true
        },
        "update": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.capability.StateEnum"
            }
          ],
          "description": "Defines if the capability can be updated",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.Disk": {
      "type": "object",
      "description": "Defines the disk attributes of a service",
      "properties": {
        "size": {
          "type": "integer",
          "description": "Service disk size "
        },
        "type": {
          "type": "string",
          "description": "Service disk size ",
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.Endpoint": {
      "type": "object",
      "description": "Defines the endpoint object in a cluster",
      "properties": {
        "component": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.endpoint.ComponentEnum"
            }
          ],
          "description": "Type of component the URI relates to",
          "readOnly": true
        },
        "domain": {
          "type": "string",
          "description": "Domain of the cluster",
          "readOnly": true
        },
        "path": {
          "type": [
            "string",
            "null"
          ],
          "description": "Path of the endpoint",
          "readOnly": true
        },
        "port": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Connection port for the endpoint",
          "readOnly": true
        },
        "scheme": {
          "type": [
            "string",
            "null"
          ],
          "description": "Scheme used to generate the URI",
          "readOnly": true
        },
        "ssl": {
          "type": "boolean",
          "description": "Defines whether the endpoint uses SSL",
          "readOnly": true
        },
        "sslMode": {
          "type": [
            "string",
            "null"
          ],
          "description": "SSL mode used to connect to the service if the SSL is enabled",
          "readOnly": true
        },
        "uri": {
          "type": [
            "string",
            "null"
          ],
          "description": "URI of the endpoint",
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.IpRestriction": {
      "type": "object",
      "description": "Ip Restriction definition for cloud project databases",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the ip restriction"
        },
        "ip": {
          "allOf": [
            {
              "$ref": "#/$defs/ipBlock"
            }
          ],
          "description": "Whitelisted IP"
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.StatusEnum"
            }
          ],
          "description": "Current status of the ip restriction",
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.Node": {
      "type": "object",
      "description": "Cloud databases cluster node definition",
      "properties": {
        "createdAt": {
          "type": "string",
          "description": "Date of the creation of the node",
          "format": "date-time",
          "readOnly": true
        },
        "flavor": {
          "type": "string",
          "description": "Flavor of the node",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Node ID",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the node",
          "readOnly": true
        },
        "port": {
          "type": "integer",
          "description": "Connection port for the node",
          "readOnly": true
        },
        "region": {
          "type": "string",
          "description": "Region of the node",
          "readOnly": true
        },
        "role": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.service.node.RoleEnum"
            }
          ],
          "description": "Role of the node",
          "nullable": true
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/cloud.project.database.StatusEnum"
            }
          ],
          "description": "Current status of the node",
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.Storage": {
      "type": "object",
      "description": "Defines the storage attributes of a service",
      "properties": {
        "size": {
          "allOf": [
            {
              "$ref": "#/$defs/complexType.UnitAndValueWritable_long"
            }
          ],
          "description": "Service storage size"
        },
        "type": {
          "type": "string",
          "description": "Service storage type",
          "readOnly": true
        }
      }
    },
    "cloud.project.database.service.capability.StateEnum": {
      "type": "string",
      "description": "State of the service capability for the service",
      "enum": [
        "disabled",
        "enabled"
      ]
    },
    "cloud.project.database.service.endpoint.ComponentEnum": {
      "type": "string",
      "description": "Defines all the values for the component in the service endpoints",
      "enum": [
        "clickhouse",
        "clickhouseHttps",
        "clickhouseMysql",
        "grafana",
        "graphite",
        "influxdb",
        "kafka",
        "kafkaConnect",
        "kafkaRestApi",
        "kafkaSASL",
        "kafkaSchemaRegistry",
        "kibana",
        "mongodb",
        "mongodbAnalytics",
        "mongodbSrv",
        "mongodbSrvAnalytics",
        "mysql",
        "mysqlRead",
        "mysqlx",
        "opensearch",
        "postgresql",
        "postgresqlRead",
        "postgresqlReadReplica",
        "prometheusRead",
        "prometheusWrite",
        "valkey"
      ]
    },
    "cloud.project.database.service.node.RoleEnum": {
      "type": "string",
      "description": "Node role values",
      "enum": [
        "ANALYTICS",
        "STANDARD"
      ]
    },
    "complexType.UnitAndValueWritable_long": {
      "type": "object",
      "description": "A numeric value tagged with its unit",
      "properties": {
        "unit": {
          "type": "string",
          "description": "Unit of the value"
        },
        "value": {
          "type": "integer"
        }
      }
    },
    "ipBlock": {
      "type": "string",
      "description": "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ip-block"
    },
    "time": {
      "type": "string",
      "description": "Time (e.g., 15:04:05)",
      "format": "time"
    }
  }
}