API v2: UAG - OTP Generation πΒΆ
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
The account for which the OTP is generated. |
|
string |
yes |
Safe identifier. |
|
string |
If |
Required if OTP is generated for RDP native client use. |
|
string |
Valid IPv4, IPv6 or hostname. |
|
|
number |
Connection port. Defaults to standard port if not set. |
|
|
string |
Login for the account. |
|
|
boolean; default value |
Whether the OTP is for a Webclient. |
Retrieve Available Attributes of the OtpModelΒΆ
Request
Method |
|
Path |
|
GET /api/v2/objspec/otp
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/otp'
Generate OTPΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/secret/otp
Example Request
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.0.0.1/api/v2/secret/otp \
-d '{"account_id": "8169529724050079750", "safe_id": "8169529724050079749","webclient":true,"server_address":"10.0.136.1","port":3389}'
Response
{
"otp": "80434736YPxLckb4Wy_9f8Vuv7Z3OGv_",
"result": "success"
}