API v2: 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. Read-write. Expensive to use. Port number used if no port range is defined. Uniqueness is required in the combination of attribute |
|
boolean; default value |
If |
Enabling legacy cryptographic protocols and settings. |
|
string{http, modbus, mysql, rdp, ssh, system, 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 |
Serverโs discovery state: discovered, onboarded, quarantined or created (for manually created accounts). 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. Unique identifier of the user who performed the onboarding. |
|
|
string |
Read-only. Expensive to use. Name of the user who performed the onboarding. |
|
|
datetime |
Read-only. Expensive to use. Server quarantined at timestamp. |
|
|
string |
Read-only. Expensive to use. Unique identifier of the user who performed the quarantine. |
|
|
string |
Read-only. Expensive to use. Name of the user who performed the quarantine. |
|
|
string |
Read-only. Expensive to use. Unique identifier ofย aย scanner used to discover this server. |
|
|
string |
Read-only. Expensive to use. Name ofย aย scanner used toย discover this server. |
|
|
string-array |
Read-only; list of rights the subject has to this object. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only; Expensive to use; If |
|
|
boolean |
Read-only; Expensive to use; If |
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. |
- tabularcolumns::
p{0.27linewidth} p{0.16linewidth} p{0.31linewidth} p{0.15linewidth}
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean; default value |
If |
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-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 |
|