Servers¶
is a definition of the IT infrastructure resource, which can be accessed over one of the specified protocols.
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Unique, read-only object identifier. Requires |
|
string |
yes |
Unique server’s name. |
|
string |
no |
Object description. |
|
boolean; default value |
yes |
|
|
string |
if |
|
|
string |
Required format: IP address or |
|
|
string |
yes |
IP address. Uniqueness is required in the combination of attribute |
|
number {from |
no |
Uniqueness is required in the combination of attribute |
|
number |
Value-format: port. Uniqueness is required in the combination of attribute |
|
|
number |
Value-format: port. Uniqueness is required in the combination of attribute |
|
|
number |
yes |
Value-format: port. Server port number if no port range. Read-write; Expensive to use. |
|
boolean; default value |
If |
Enabling legacy cryptographic protocols and settings. |
|
boolean; default value |
yes |
|
|
string |
If |
SSH public key for tunneled connections. Value-format: ssh-public-key. |
|
string {http, modbus, mysql, pgsql, rdp, ssh, tcp, tds, telnet, tn3270, tn5250, vnc} |
yes |
Immutable; case insensitive. |
|
HTTPServerAttributes |
If |
HTTP protocol properties. |
|
MySQLServerAttributes |
If |
MySQL protocol properties. |
|
RDPServerAttributes |
If |
RDP protocol properties. |
|
TLSServerAttributes |
If |
TLS protocol properties. |
|
string |
If |
SSH public key. Value-format: ssh-public-key. |
|
datetime |
Read-only; Expensive to use. |
|
|
object-array |
Read-only; Expensive to use; JSON object array containing |
|
|
string-array |
Read-only; Hidden; Expensive to use. |
|
|
string-array |
Read-only; Hidden; Expensive to use. |
|
|
string {created, discovered, onboarded, quarantined} |
Discovery state. Read-only; Expensive to use. |
|
|
datetime |
Read-only; Expensive to use. Server discovered at timestamp. |
|
|
datetime |
Read-only; Expensive to use. Server onboarded at timestamp. |
|
|
string |
Read-only; Expensive to use. User identifier who onboarded this server. |
|
|
string |
Read-only; Expensive to use. User name who onboarded this server. |
|
|
datetime |
Read-only; Expensive to use. Server quarantined at timestamp. |
|
|
string |
Read-only; Expensive to use. User identifier who quarantined this server. |
|
|
string |
Read-only; Expensive to use. User name who quarantined this server. |
|
|
string |
Read-only; Expensive to use. Scanner identifier. |
|
|
string |
Read-only; Expensive to use. Scanner name. |
|
|
string-array |
Read-only. List of rights the subject has to this object. |
|
|
datetime |
Read-only. |
|
|
datetime |
Read-only. |
|
|
boolean |
Read-only. |
|
|
boolean |
Read-only; Expensive to use. Is object built-in? Built-in objects shouldn’t be editable. |
|
|
boolean |
Read-only; Expensive to use. Shall the object be hidden in UI? |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
HTTP host header value. |
|
number {seconds} |
yes |
Period of inactivity, after which the user will have to authenticate again. |
|
boolean; default value |
no |
|
|
string {Asana, Azure, Facebook, HPE BladeSystem, HPE iLO, HTTP Authentication, LinkedIn, Salesforce, Twitter}; Default value |
If |
Case insensitive. |
|
string |
If |
Custom login page details. |
|
boolean; default value |
If |
The Press the enter key prior to password option. |
|
string |
If |
Custom login page details. |
|
string |
If |
Custom login page details. |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
If |
Require TLS for MySQL connections. |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
If |
The option to have the users informed that other users are connected to the server, they are trying to connect to. |
|
boolean; default value |
If |
|
|
string |
If |
RDP public key. Value-format: public-key. |
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
If |
Enabling the TLS protocol. |
|
string |
If |
TLS CA certificate. Value-format: x509-ca-certificate. |
|
string |
If |
TLS certificate. Value-format: x509-certificate. |
Retrieve Available Attributes of the ServerModel¶
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 Server objects.
Create a Server¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/server
{
"name": "my-1st-rdp-server",
"protocol": "rdp",
"address": "10.0.2.0",
"port": 3389,
"legacy_crypto": false
}
Response
{ "result": "success",
"server": {
"id": "41234678819172646916" }}
Get Servers List¶
Request
Method |
|
Path |
|
Get a Server¶
Request
Method |
|
Path |
|
Example Request
GET /api/v2/server/<id>
{
"result": "success",
"server": {
"id": "4602678819172646916",
"name": "my-1st-rdp-server",
"blocked": false,
"address": "10.0.2.0",
"mask": 32,
"port": 3389,
"protocol": "rdp",
"legacy_crypto": false,
"rdp_hotseat": false,
"rdp_nla_enabled": true,
"tls_enabled": true,
"tls_use_ca_store": false,
"created_at": "2022-10-27 01:43:39.688273-07",
"modified_at": "2022-10-27 01:43:39.688273-07",
"last_login": "-infinity"
}}
Modify a Server¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request: Enable Using CA Store for Server Verification
PATCH /api/v2/server/<id>
{"tls_use_ca_store": true}
Response
{ "result": "success" }
Deleting a Server¶
Request
Method |
|
Path |
|