# VolumeAttachment


[API catalog](/reference/api/) · [Docker Sandboxes overview](/reference/api/sandboxes/latest/) · [Product manual](https://docs.docker.com/ai/sandboxes-api/) · [OpenAPI specification](/reference/api/sandboxes/api.yaml)

API version: v1


> This API is experimental. Features, interfaces,
> and behavior may change.




Schema constraints and annotations:

```json
{
  "additionalProperties": false,
  "description": "VolumeAttachment binds an existing owner-scoped volume before guest execution.",
  "properties": {
    "mode": {
      "$ref": "#/components/schemas/AttachmentMode",
      "description": "mode defaults to exclusive; it never silently enables shared writers."
    },
    "target": {
      "description": "target is an absolute guest path and cannot overlap another mount target.",
      "minLength": 1,
      "type": "string"
    },
    "volume": {
      "description": "volume is the complete resource name, in the form volumes/{volume}.",
      "pattern": "^volumes/[^/]+$",
      "type": "string"
    }
  },
  "required": [
    "volume",
    "target"
  ],
  "title": "VolumeAttachment",
  "type": "object"
}
```



