Description
To create a tunnel server for the RDP/SSH session.
URL
https://<Host-Name-of-PAM360-Server or IP Address>:<Port>/restapi/json/v1/tunnel/createTunnelServer
Header
AUTHTOKEN=<<Authtoken_generated_from_PAM360>>HTTP Method
POST
Input Data
INPUT_DATA = {
"operation": {
"Details": {
"RESOURCEID": 301,
"ACCOUNTID": "301",
"REASON": "To create a proxy server for tunneling connections via pam360 server.",
"TICKETID": "2132"
}
}
}
// Provide the REASON and/or TICKETID if the ticketing system is enabled.
{
operation: {
result: {
message: "SSH connection has been established successfully",
status: "Success"
},
name: "Create Tunnel Server",
Details: {
SSHID: 4302 // ID Generated for the SSH Object
}
}
}Description
To create an SSH tunnel between the PAM360 server and the target resource.
URL
https://<Host-Name-of-PAM360-Server or IP Address>:<Port>/restapi/json/v1/tunnel/createTunnel
Header
AUTHTOKEN=<<Authtoken_generated_from_PAM360>>HTTP Method
POST
Input Data
INPUT_DATA={
"operation": {
"Details": {
"TARGETRESOURCEID": 601,
"SSHID": "1101",
"PROTOCOL": "SSH | RDP"
}
}
}Sample Output
{
operation :{
result: {
message : "SSH tunnel has been created successfully",
status : "Success"
},
Details :{
PORTNO : 11501
}
}
}Description
To terminate the SSH tunnel between the PAM360 server and the target resource.
URL
https://<Host-Name-of-PAM360-Server or IP Address>:<Port>/restapi/json/v1/tunnel/destroyTunnel/{portNo}
Header
AUTHTOKEN=<<Authtoken_generated_from_PAM360>>HTTP Method
DELETE
Input Data
None
Sample Request
https://<Host-Name-of-PAM360-Server or IP Address>:<Port>/restapi/json/v1/tunnel/destroyTunnel/11501
Sample Output
{
"operation": {
"result": {
"message": "The SSH tunnel has been destroyed successfully",
"status": "Success"
}
}
}Description
To terminate the SSH connection between the PAM360 server and the SSH server.
URL
https://<Host-Name-of-PAM360- Server or IP Address>:<Port>/restapi/json/v1/tunnel/destroyTunnelServer/{SSHID}
Header
AUTHTOKEN=<<Authtoken_generated_from_PAM360>>HTTP Method
DELETE
Input Data
None
Sample Request
https://<Host-Name-of-PAM360- Server or IP Address>:<Port>/restapi/json/v1/tunnel/destroyTunnelServer/4302
Sample Output
{
"operation": {
"result": {
"message": "The SSH Connection has been closed successfully",
"status": "Success"
}
}
}