API v2: UAG - Accounts List πŸ†•ΒΆ


Get Account ListΒΆ

Request

Method

GET

Path

/api/v2/account

GET /api/v2/account

Example Request

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

Response

{
    "items": [
        {
            "id": "8169529724050079749",
            "name": "remoteapp-account",
            "type": "regular",
            "require_login": false,
            "blocked": false,
            "blocked_reason": null,
            "login_reason": false,
            "password_visible": false,
            "has_password_history": true,
            "has_remote_apps": true,
            "server": {
                "id": "8169529724050079749",
                "name": "remoteapp",
                "description": null,
                "address": "10.0.234.30",
                "port": 3389,
                "port_first": 3389,
                "port_last": 3389,
                "mask": 32,
                "dynamic": false
            },
            "pool": null,
            "listeners_info": {
                "external": false,
                "local": true,
                "otp_enabled": true,
                "play_enabled": false,
                "multiple_addresses": true,
                "webclient": {
                    "safe_id": "8169529724050079745",
                    "secproto": "tls"
                }
            },
            "session_id": null,
            "protocol": "rdp",
            "note_access_level": "none",
            "session_status": null,
            "session_reason": null,
            "timeout": null,
            "access_request": {
                "enabled": false,
                "connection_available": false
            },
            "otp_in_access_gateway": true,
            "rdp_remote_apps_only": false,
            "rdp_resolution": null
        },
    ],
    "result": "success"
}

Note

  • The "password_visible": true indicates that the Reveal Password option is enabled for the user and safe.

  • The account ID is obtained: "id": "8169529724050079749". This ID will be used for the checkout and checkin requests.

  • When the checkout session is active then its ID is shown in the session_id. When checkout session for account and user is not active then sessison_id field is null.

  • The note_access_level attribute indicates the user’s access to account-related notes. This value is defined by the note_access setting on the associated Safe. For full details, refer to the section API v2: Safes.