# ConnectionStatus

Type: ConnectionStatus

Status of a connection and its resources

Schema: [ConnectionStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/connectionstatus.md)

- `connectionId` (required)
  Type: string
  
  The connection ID

- `connectionStatus` (required)
  Type: ConnectivityStatus
  
  The desired/target status of the connection
  
  allOf:
    Reference: [ConnectivityStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/connectivitystatus.md); Type: ConnectivityStatus
    
    The status of a connection or resource
    
    enum: ["open","closed","failed","misconfigured","unknown"]

- `liveStatus` (required)
  Type: ConnectivityStatus
  
  The current/actual status of the connection
  
  allOf:
    Reference: [ConnectivityStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/connectivitystatus.md); Type: ConnectivityStatus
    
    The status of a connection or resource
    
    enum: ["open","closed","failed","misconfigured","unknown"]

- `connectedSince` (required)
  Type: string
  
  The timestamp since when the connection is connected
  
  Example:
  
  ```json
  "2019-01-21T08:57:24.710Z"
  ```

- `clientStatus` (optional)
  Type: Array<ResourceStatus>
  
  The client states of the of the connection
  
  Items:
    Reference: [ResourceStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/resourcestatus.md); Type: ResourceStatus
    
    The status of a single resource (e.g. a client or a source/target resource)

- `sourceStatus` (optional)
  Type: Array<ResourceStatus>
  
  The states of the sources the of the connection
  
  Items:
    Reference: [ResourceStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/resourcestatus.md); Type: ResourceStatus
    
    The status of a single resource (e.g. a client or a source/target resource)

- `targetStatus` (optional)
  Type: Array<ResourceStatus>
  
  The states of the targets the of the connection
  
  Items:
    Reference: [ResourceStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/resourcestatus.md); Type: ResourceStatus
    
    The status of a single resource (e.g. a client or a source/target resource)

- `sshTunnelStatus` (optional)
  Type: Array<ResourceStatus>
  
  The states of the ssh tunnel the of the connection
  
  Items:
    Reference: [ResourceStatus](https://sourcey-ditto.pages.dev/http-api-doc/models/resourcestatus.md); Type: ResourceStatus
    
    The status of a single resource (e.g. a client or a source/target resource)