{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-ip-loadbalancing-backend-tcp-customer-server-backend-tcpserver-schema.json",
  "title": "ipLoadbalancing.backendTcpCustomerServer.BackendTCPServer",
  "description": "TCP Farm's Server",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-ipLoadbalancing-openapi.yml#/components/schemas/ipLoadbalancing.backendTcpCustomerServer.BackendTCPServer",
  "type": "object",
  "properties": {
    "address": {
      "allOf": [
        {
          "$ref": "#/$defs/ipv4"
        }
      ],
      "description": "Address of your server",
      "readOnly": true
    },
    "backendId": {
      "type": "integer",
      "description": "Farm id",
      "readOnly": true
    },
    "backup": {
      "type": "boolean",
      "description": "Backup state. Default: 'false'"
    },
    "chain": {
      "type": [
        "string",
        "null"
      ],
      "description": "Certificate chain. Allow server certificate verification (Avoid man-in-the-middle attacks)"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Human readable name for your server, this field is for you"
    },
    "onMarkedDown": {
      "allOf": [
        {
          "$ref": "#/$defs/ipLoadbalancing.OnMarkedDownEnum"
        }
      ],
      "description": "Set action when backend marked down. (No action if null)",
      "nullable": true
    },
    "port": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Port attached to your server. Inherited from farm if null"
    },
    "probe": {
      "type": "boolean",
      "description": "Probe state. Default: 'false'"
    },
    "proxyProtocolVersion": {
      "allOf": [
        {
          "$ref": "#/$defs/ipLoadbalancing.ProxyProtocolVersionEnum"
        }
      ],
      "description": "Disabled if null. Send PROXY protocol header. Requires a compatible server.",
      "nullable": true
    },
    "serverId": {
      "type": "integer",
      "description": "Id of your server",
      "readOnly": true
    },
    "serverState": {
      "type": "array",
      "description": "Server state",
      "items": {
        "$ref": "#/$defs/ipLoadbalancing.ServerState"
      },
      "readOnly": true
    },
    "ssl": {
      "type": "boolean",
      "description": "SSL ciphering. Probes will also be sent ciphered"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/ipLoadbalancing.BackendCustomerServerStatusEnum"
        }
      ],
      "description": "Status attached to your server"
    },
    "weight": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Weight value. Defaults to 1. 0 if not used in load balancing. Servers with higher weight get more requests."
    }
  },
  "$defs": {
    "ipLoadbalancing.BackendCustomerServerStatusEnum": {
      "type": "string",
      "description": "Possible values for server status",
      "enum": [
        "active",
        "inactive"
      ]
    },
    "ipLoadbalancing.OnMarkedDownEnum": {
      "type": "string",
      "description": "Possible values for OnMarkedDown type",
      "enum": [
        "shutdown-sessions"
      ]
    },
    "ipLoadbalancing.ProxyProtocolVersionEnum": {
      "type": "string",
      "description": "Possible values for proxy type",
      "enum": [
        "v1",
        "v2",
        "v2-ssl",
        "v2-ssl-cn"
      ]
    },
    "ipLoadbalancing.ServerState": {
      "type": "object",
      "description": "Available servers states",
      "properties": {
        "checkCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Layer5-7 code, if available"
        },
        "checkStatus": {
          "type": [
            "string",
            "null"
          ],
          "description": "Status of last health check"
        },
        "checkTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "Time of last health check",
          "format": "date-time"
        },
        "instanceId": {
          "type": "integer",
          "description": "Id of your instance"
        },
        "lastCheckContent": {
          "type": [
            "string",
            "null"
          ],
          "description": "Last health check contents or textual error"
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Status"
        }
      }
    },
    "ipv4": {
      "type": "string",
      "description": "IPv4 address (e.g., 192.0.2.0)",
      "format": "ipv4"
    }
  }
}