# Port


[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
{
  "description": "Port is one sandbox port made reachable from outside the sandbox. The same\nfacts appear inline on SandboxCore.ports for a caller reading the sandbox.",
  "properties": {
    "etag": {
      "description": "etag identifies the observed version of this port.",
      "readOnly": true,
      "type": "string"
    },
    "name": {
      "description": "(IDENTIFIER) name identifies the published port number under its sandbox resource name.",
      "type": "string"
    },
    "number": {
      "description": "(IMMUTABLE) number is immutable and unique within the sandbox; duplicates refuse ALREADY_EXISTS.",
      "format": "int32",
      "maximum": 65535,
      "minimum": 1,
      "type": "integer"
    },
    "protocol": {
      "$ref": "#/components/schemas/Protocol",
      "description": "(IMMUTABLE) protocol defaults to TCP when unspecified."
    },
    "uid": {
      "description": "(IMMUTABLE) uid is the durable publication incarnation when the backend provides one.",
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "description": "url is the required externally reachable address, including host-local addresses.",
      "readOnly": true,
      "type": "string"
    }
  },
  "required": [
    "number"
  ],
  "title": "Port",
  "type": "object"
}
```



