API v2: Listenersยถ
determines server connection mode (proxy, gateway, transparent, bastion) as well as its specifics.
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Read-only object identifier |
|
string |
yes |
Unique listenerโs name |
|
boolean; default value |
yes |
|
|
string |
if |
|
|
string |
no |
|
|
boolean; default value |
If |
|
|
boolean; default value |
If |
Enabling legacy cryptographic protocols and settings |
|
string {http, modbus, mysql, rdp, ssh, system, tcp, tds, telnet, tn3270, tn5250, vnc} |
yes |
Immutable, case insensitive |
|
string {bastion, gateway, proxy, transparent, tunnel} |
yes |
Case insensitive |
|
string |
If |
Network interface for user connections |
|
string; default value |
If |
IP address for user connections |
|
number |
If |
Port number for user connections |
|
string |
with |
Listener address to present in Access Gateway |
|
number; value range from |
with |
Listener port to present in Access Gateway. Value format: port. |
|
boolean; default value |
If |
Is graphical representation for HTTP(S) sessions enabled? |
|
ListenerRDPAttributes |
If |
RDP protocol properties |
|
ListenerSSHAttributes |
If |
SSH protocol properties |
|
ListenerTDSAttributes |
If |
TDS protocol properties |
|
ListenerTLSAttributes |
If |
TLS protocol properties |
|
datetime |
Read-only |
|
|
datetime |
Read-only |
|
|
boolean |
Read-only |
|
|
boolean |
Read-only; Expensive to use; If |
|
|
boolean |
Read-only; Expensive to use; If |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
if |
Enables RDP Network Level Authentication (NLA). |
|
string |
if |
RDP private key. Protected. Format: |
|
string |
if |
Passphrase to decrypt RSA private key. Protected. |
|
string |
RDP public key. Read-only. Expensive to retrieve. Requires |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
if |
SSH private key. Protected. Format: |
|
string |
if |
Passphrase to decrypt SSH private key. Protected. |
|
boolean; default value |
if |
Enables SSH ProxyJump function. |
|
string |
SSH public key. Read-only. Expensive to retrieve. Requires |
|
|
string |
SHA256 fingerprint of SSH key. Read-only. Expensive to retrieve. Requires |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
if |
Enables constrained delegation for TDS. |
|
string |
if |
Service Principal Name (SPN) used for constrained delegation. |
|
string |
if |
Base64-encoded contents of keytab file for constrained delegation. |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
if |
Enables TLS protocol. |
|
string |
if |
TLS private key. Protected. Format: |
|
string |
if |
Passphrase to decrypt TLS private key. Protected. |
|
string |
if |
TLS certificate. Format: |
|
string |
Common Name (CN) from TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration. |
|
|
string |
SHA1 fingerprint of TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration. |
|
|
string |
SHA256 fingerprint of TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration. |
Retrieve Available Attributes of the ListenerModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Refer to the Batch operations topic to create nested requests for operating on the Listener objects.
Get Listeners Listยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/listener
"result": "success",
"listener": [
{
"id": "1234138875067073217",
"name": "rdp_list_fd_10647",
"protocol": "rdp",
"mode": "bastion",
"listen_ip": "0.0.0.0",
"listen_port": 3388,
"blocked": false,
"created_at": "2022-10-15 14:52:30.980597+02",
"modified_at": "2022-10-15 14:52:30.980597+02",
"legacy_crypto": false,
"tls_enabled": true,
"tls_certificate": "-----BEGIN CERTIFICATE-----\nMIIE0DCCArigAwIBAgIUSGWBY/C...0w/BXGR\n-----END CERTIFICATE-----"
},
{
"id": "1234138875067073219",
"name": "telnet_proxy_3",
"protocol": "telnet",
"mode": "proxy",
"listen_ip": "0.0.0.0",
"listen_port": 2236,
"blocked": false,
"created_at": "2022-10-17 09:34:32.582169+02",
"modified_at": "2022-10-17 09:34:32.582169+02"
},
{
"id": "12348875067073220",
"name": "mssql_proxy",
"protocol": "tds",
"mode": "proxy",
"listen_ip": "0.0.0.0",
"listen_port": 8874,
"blocked": false,
"created_at": "2022-10-17 10:50:53.209773+02",
"modified_at": "2022-10-17 10:50:53.209773+02" }]
Create a Listenerยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Get a Listenerยถ
Request
Method |
|
Path |
|
Modify a Listenerยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request: Changing the Listenerโs Address
PATCH /api/v2/listener/<id>
{ "listen_ip": "10.0.2.0" }
Response
{ "result": "success" }
Delete a Listenerยถ
Request
Method |
|
Path |
|