# EndpointSpec


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





Schema constraints and annotations:

```json
{
  "description": "Properties that can be configured to access and load balance a service.",
  "properties": {
    "Mode": {
      "default": "vip",
      "description": "The mode of resolution to use for internal load balancing between tasks.\n",
      "enum": [
        "vip",
        "dnsrr"
      ],
      "type": "string"
    },
    "Ports": {
      "description": "List of exposed ports that this service is accessible on from the\noutside. Ports can only be provided if `vip` resolution mode is used.\n",
      "items": {
        "$ref": "#/components/schemas/EndpointPortConfig"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```



