# NetworkAttachment


[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": "Specifies how a task is attached to a network, and the addresses the\ntask was assigned on that network.\n",
  "example": {
    "Addresses": [
      "10.255.0.10/16"
    ],
    "Network": {
      "ID": "4qvuz4ko70xaltuqbt8956gd1"
    }
  },
  "properties": {
    "Addresses": {
      "description": "The IP addresses (in CIDR notation) assigned to the task on this\nnetwork. To maintain backward compatibility this field accepts CIDR\nnotation, but only the IP address is used.\n",
      "items": {
        "format": "cidr",
        "type": "string"
      },
      "type": "array"
    },
    "Network": {
      "$ref": "#/components/schemas/Network"
    }
  },
  "type": "object"
}
```



