POST SUT Creation Method

This method creates a system under test (SUT).

Syntax:

POST /api/sut/create

Curl

$> curl -X POST 'http://localhost:8080/api/sut/create' -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -d {"name":"windows XP","description":"An old SUT","address":"192.168.9.5","port":5902,"sut_type":"vnc","is_active":true,"manufacturer":"acer","model":"aspire","os":"windows","version":"xp"}

Raw Request

POST /api/sut/create HTTP/1.1

 

Host: localhost:8080

 

Authorization: Basic YWRtaW46YWRtaW4=

 

Content-Type: application/json

 

Content-Length: 154

 

{"name":"windows XP","description":"An old SUT","address":"192.168.9.5","port":5902,"sut_type":"vnc","is_active":true,"manufacturer":"acer","model":"aspire","os":"windows","version":"xp"}

Write Keys

Parameter Type
name String
description String
address String
port Integer
sut_type String enum['vnc', 'rdp', 'tcp' ]
is_active Boolean
manufacturer String
model String
os String
version String
password String
user_name

String

rdp_height Integer
rdp_width Integer

Response Body

{

"_id": "5ca50165be870f3ac2000002",

"created_at": "2019-04-03T12:54:29.433-06:00",

"updated_at": "2019-04-03T12:54:29.433-06:00",

"name": "windows XP",

"description": "An old SUT",

"address": "192.168.9.5",

"port": 5902,

"sut_type": "vnc",

"is_active": true,

"manufacturer": "acer",

"model": "aspire",

"os": "windows",

"version": "xp",

"monitoring": {

"status": "SUT Monitoring Disabled",

"last_updated": "2019-05-15T11:47:29-06:00",

"status_description": "SUT Monitoring is disabled"

},

"tags": {}

}

 

This topic was last updated on November 20, 2019, at 03:32:06 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2020 Eggplant