{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-hosting-private-database-whitelist-schema.json",
  "title": "hosting.privateDatabase.Whitelist",
  "description": "Allowed IP",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-hosting-privateDatabase-openapi.yml#/components/schemas/hosting.privateDatabase.Whitelist",
  "type": "object",
  "properties": {
    "creationDate": {
      "type": "string",
      "description": "Creation date of this allowed IP",
      "format": "date-time",
      "readOnly": true
    },
    "ip": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv4Block"
        }
      ],
      "description": "The IP allowed to access your Web Cloud Database",
      "readOnly": true
    },
    "lastUpdate": {
      "type": "string",
      "description": "The last update date of this allowed IP",
      "format": "date-time",
      "readOnly": true
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Custom name for your allowed IP"
    },
    "service": {
      "type": "boolean",
      "description": "Authorize this IP to access service port"
    },
    "sftp": {
      "type": "boolean",
      "description": "Authorize this IP to access sftp port"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/hosting.privateDatabase.whitelist.StatusEnum"
        }
      ],
      "description": "Allowed IP status",
      "readOnly": true
    },
    "taskId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The id of the task working on this object",
      "readOnly": true
    }
  },
  "$defs": {
    "hosting.privateDatabase.whitelist.StatusEnum": {
      "type": "string",
      "description": "Allowed IP status",
      "enum": [
        "created",
        "creating",
        "deleting",
        "updating"
      ]
    },
    "ipv4Block": {
      "type": "string",
      "description": "IPv4 CIDR notation (e.g., 192.0.2.0/24)",
      "format": "ipv4-block"
    }
  }
}