POST
/
proxymanager
/
connect
curl --request POST \
  --url https://use.hoop.dev/api/proxymanager/connect \
  --header 'Content-Type: application/json' \
  --data '{
  "access_duration": 1800000000000,
  "connection_name": "pgdemo",
  "port": "5432"
}'
{
  "access_duration": 1800000000000,
  "connected-at": "2024-07-25T19:36:41Z",
  "connection_name": "<string>",
  "connection_subtype": "<string>",
  "connection_type": "<string>",
  "id": "20A5AABE-C35D-4F04-A5A7-C856EE6C7703",
  "metadata": {
    "go-version": "1.22.4",
    "hostname": "johnwick.local",
    "platform": "amd64",
    "session": "15B3C616-6B43-4F85-B4FD-B83378A866C2",
    "version": "1.23.4"
  },
  "port": "<string>",
  "status": "ready"
}

Body

application/json
The request body resource
connection_name
string
required

The connection target

Example:

"pgdemo"

port
string
required

The port to listen in the client

Example:

"5432"

access_duration
integer

The access duration (in nanoseconds) of a session in case the connect has a review. Default to 30 minutes

Example:

1800000000000

Response

200
application/json
OK
access_duration
integer

The request access duration in case of review

Example:

1800000000000

connected-at
string

The time (RFC3339) when the client connect

Example:

"2024-07-25T19:36:41Z"

connection_name
string

The requested connection name

connection_subtype
string

The requested connection subtype

connection_type
string

The requested connection type

id
string

Deterministic uuid identifier of the user

Example:

"20A5AABE-C35D-4F04-A5A7-C856EE6C7703"

metadata
object

Metadata information about the client

Example:
{
  "go-version": "1.22.4",
  "hostname": "johnwick.local",
  "platform": "amd64",
  "session": "15B3C616-6B43-4F85-B4FD-B83378A866C2",
  "version": "1.23.4"
}
port
string

The requested client port to listen

status
enum<string>

The status of the connection request

  • ready - indicates the grpc client is ready to subscribe to a new connection
  • connected - indicates the client has opened a new session
  • disconnected - indicates the grpc client has disconnected
Available options:
ready,
connected,
disconnected