API v2: Account-Safe-Listener Assignmentยถ

Account defines the privileged account existing on the monitored server. It specifies the actual login credentials, user authentication mode: anonymous (without user authentication), regular (with login credentials substitution) or forward (with login and password forwarding); password changing policy as well as the password changer itself.


Data Structures: AccountSafeListenerAssignmentModelยถ

AccountSafeListenerAssignmentModelยถ

Attribute

Type

Required

Description

id

string

yes

Read-only object Identifier

account_id

string

yes

Immutable. Uniqueness is required in the combination of attribute account_id with attributes safe_id and listener_id. Requires read right on the account object for GET, POST, PATCH and DELETE operations.

safe_id

string

yes

Immutable. Uniqueness is required in the combination of attribute safe_id with attributes account_id and listener_id. Requires read right on the safe object for GET, account-add right for POST and PATCH, and account-remove for DELETE.

listener_id

string

no

Immutable. Uniqueness is required in the combination of attribute listener_id with attributes account_id and safe_id.

account_name

string

Read-only; expensive to use

account_type

string

Read-only; expensive to use

protocol

string

Read-only; expensive to use

server_id

string

Read-only; expensive to use; null if pool is assigned.

server_name

string

Read-only; expensive to use; null if pool is assigned.

pool_id

string

Read-only; expensive to use; null if server is assigned.

pool_name

string

Read-only; expensive to use; null if server is assigned.

safe_name

string

Read-only; expensive to use

listener_name

string

Read-only; expensive to use

created_at

datetime

Read-only

modified_at

datetime

Read-only

removed

boolean

Read-only

builtin

boolean

Read-only; expensive to use; if true, the object is not editable.

hidden

boolean

Read-only; expensive to use; if true, the object is hidden in UI.

Retrieve Available Attributes of the AccountSafeListener- AssignmentModelยถ

Request

Method

GET

Path

/api/v2/objspec/account_safe_listener

To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.

Get Account-Safe-Listener Assignment Listยถ

Request

Method

GET

Path

/api/v2/account/safe/listener

Example Request

GET /api/v2/account/safe/listener

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/account/safe/listener'

Response

{
    "result": "success",
    "account_safe_listener": [
        {
            "account_id": "1224979098644774915",
            "safe_id": "1224979098644774913",
            "listener_id": "1224979098644774914",
            "account_name": "ad-user1-windows",
            "account_type": "regular",
            "protocol": "rdp",
            "server_id": "1224979098644774915",
            "server_name": "windows",
            "safe_name": "main",
            "listener_name": "RDP:bastion",
            "created_at": "2025-08-25 05:08:28.879241-07",
            "modified_at": "2025-08-25 05:08:28.879241-07",
            "builtin": false,
            "hidden": false
        }
    ]
}

Get Account-Safe-Listener Assignment by IDโ€™sยถ

Request

Method

GET

Path

/api/v2/account/<account_id>/safe/<safe_id>/listener/<listener_id>

Example Request

GET /api/v2/account/<account_id>/safe/<safe_id>/listener/<listener_id>

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/account/1232678819172646919/safe/1232678819172646913/listener/1232678819172646914'

Response

{
    "result": "success",
    "account_safe_listener": {
        "account_id": "1232678819172646919",
        "safe_id": "1232678819172646913",
        "listener_id": "1232678819172646914",
        "account_name": "VNC_Admin",
        "account_type": "regular",
        "protocol": "vnc",
        "server_id": "1224979098644774918",
        "server_name": "VNC_Server",
        "safe_name": "VNC",
        "listener_name": "VNC_Listen",
        "created_at": "2025-09-22 03:03:08.656825-07",
        "modified_at": "2025-09-22 03:03:14.808987-07",
        "builtin": false,
        "hidden": false
    }
}

Create an Account-Safe-Listener Assignmentsยถ

Request

Method

POST

Path

/api/v2/account/safe/listener

Headers

Content-Type: Application/json

Body

AccountSafeListenerAssignmentModel

Example Request

POST /api/v2/account/safe/listener

{
        "account_id": 1232678819172646919,
"safe_id": 1232678819172646913,
"listener_id": 1232678819172646914
}

Response

{
        "result": "success",
        "account_safe_listener": {}
}

Modify an Account-Safe-Listener Assignmentยถ

Request

Method

PATCH

Path

/api/v2//account/<account_id>/safe/<safe_id>/listener/<listener_id>

Headers

Content-Type: Application/json

Body

AccountSafeListenerAssignmentModel

Example Request

PATCH /api/v2//account/<account_id>/safe/<safe_id>/listener/<listener_id>

curl -s -k -X PATCH \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
      -H 'Content-Type: application/json' \
  'https://10.0.214.98/api/v2/account/1232678819172646919/safe/1232678819172646913/listener/1232678819172646914' \
      -d '{"listener_id":1232678819172646916}'

Response

{
    "result": "success"
}

Delete an Account-Safe-Listener Assignmentยถ

Request

Method

DELETE

Path

/api/v2/account/<account_id>/safe/<safe_id>/listener/<listener_id>

Example Request

DELETE /api/v2/account/<account_id>/safe/<safe_id>/listener/<listener_id>

curl -s -k -X DELETE \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/account/1232678819172646919/safe/1232678819172646913/listener/1232678819172646914'

Response

{
        "result": "success"
}