OpenGnsys Server REST API
Information about OpenGnsys Server REST API functions.
Version: 1.1.0
BasePath:/rest
Creative Commons 4.0 International
http://creativecommons.org/licenses/by/4.0/
Access
- APIKey KeyParamName:Authorization KeyInQuery:false KeyInHeader:true
[ Jump to Models ]
Table of Contents
get /ous/{ouid}/labs/{labid}/clients/{clientid}
get /ous/{ouid}/labs/{labid}/clients/{clientid}/hardware
get /ous/{ouid}/labs/{labid}/clients/{clientid}/status
get /ous/{ouid}/labs/{labid}/clients
get /ous/{ouid}/labs
get /ous/{ouid}/labs/{labid}
get /ous
get /ous/{ouid}
get /ous/{ouid}/repos
get /ous/{ouid}/repos/{repoid}
post /login
Up
get /ous/{ouid}/labs/{labid}/clients/{clientid}
(ousOuidLabsLabidClientsClientidGet)
Get a `client` object.
Path parameters
ouid (required)
Path Parameter — OU identificator
labid (required)
Path Parameter — Lab identificator
clientid (required)
Path Parameter — Client identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"image" : "aeiou",
"routerip" : "aeiou",
"boottype" : "aeiou",
"ip" : "aeiou",
"repo" : {
"id" : ""
},
"netdriver" : "aeiou",
"netiface" : "aeiou",
"mac" : "aeiou",
"serialno" : "aeiou",
"netmask" : "aeiou",
"name" : "aeiou",
"id" : "",
"validation" : true
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_6
Up
get /ous/{ouid}/labs/{labid}/clients/{clientid}/hardware
(ousOuidLabsLabidClientsClientidHardwareGet)
Get the hardware definition of a `client` object.
Path parameters
ouid (required)
Path Parameter — OU identificator
labid (required)
Path Parameter — Lab identificator
clientid (required)
Path Parameter — Client identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"name" : "aeiou",
"id" : "",
"hardware" : [ {
"description" : "aeiou",
"type" : "aeiou"
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_7
Up
get /ous/{ouid}/labs/{labid}/clients/{clientid}/status
(ousOuidLabsLabidClientsClientidStatusGet)
Get execution status of a `client`
Path parameters
ouid (required)
Path Parameter — OU identificator
labid (required)
Path Parameter — Lab identificator
clientid (required)
Path Parameter — Client identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"ip" : "aeiou",
"id" : "",
"status" : "aeiou"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_8
Up
get /ous/{ouid}/labs/{labid}/clients
(ousOuidLabsLabidClientsGet)
Get all `client` objects defined in an `lab`.
Path parameters
ouid (required)
Path Parameter — OU identificator
labid (required)
Path Parameter — Lab identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
[ {
"ou" : {
"id" : ""
},
"name" : "aeiou",
"id" : "",
"lab" : ""
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
(ousOuidLabsGet)
Get all `lab` objects defined in an `OU`.
Path parameters
ouid (required)
Path Parameter — OU identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
[ {
"ou" : {
"id" : ""
},
"name" : "aeiou",
"id" : "",
"inremotepc" : true
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
Up
get /ous/{ouid}/labs/{labid}
(ousOuidLabsLabidGet)
Get a `lab` object.
Path parameters
ouid (required)
Path Parameter — OU identificator
labid (required)
Path Parameter — laboratory identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"image" : "aeiou",
"routerip" : "aeiou",
"mcastport" : "",
"proxyurl" : "aeiou",
"dns" : "aeiou",
"mcastmode" : "aeiou",
"description" : "aeiou",
"inremotepc" : true,
"ntp" : "aeiou",
"mcastspeed" : "",
"capacity" : "",
"defclients" : "",
"mcastip" : "aeiou",
"projector" : true,
"netmask" : "aeiou",
"p2ptime" : "",
"name" : "aeiou",
"p2pmode" : "aeiou",
"location" : "aeiou",
"id" : "",
"board" : true
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_4
(ousGet)
Gets all `OU` objects.
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
[ {
"name" : "aeiou",
"id" : ""
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
(ousOuidGet)
Get an `OU` object.
Path parameters
ouid (required)
Path Parameter — Organization Unit identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"name" : "aeiou",
"description" : "aeiou",
"id" : ""
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_2
(ousOuidReposGet)
Get all `repo` objects defined in an `OU`.
Path parameters
ouid (required)
Path Parameter — OU identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
[ {
"ou" : {
"id" : ""
},
"name" : "aeiou",
"id" : ""
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
Up
get /ous/{ouid}/repos/{repoid}
(ousOuidReposRepoidGet)
Get a `repo` object.
Path parameters
ouid (required)
Path Parameter — OU identificator
repoid (required)
Path Parameter — repository identificator
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Example data
Content-Type: application/json
{
"ip" : "aeiou",
"name" : "aeiou",
"description" : "aeiou",
"id" : ""
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful response
inline_response_200_10
(loginPost)
Check user login and returns his/her API key.
Consumes
This API call consumes the following media types via the
Content-Type request header:
Request body
authdata (required)
Body Parameter — JSON authentication data
Return type
Example data
Content-Type: application/json
{
"apikey" : "aeiou",
"userid" : ""
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
Successful login
inline_response_200
400
Missing parameters
500
Authentication error
[ Jump to Methods ]
Table of Contents
authdata
inline_response_200
inline_response_200_1
inline_response_200_10
inline_response_200_2
inline_response_200_3
inline_response_200_4
inline_response_200_5
inline_response_200_6
inline_response_200_6_repo
inline_response_200_7
inline_response_200_7_hardware
inline_response_200_8
inline_response_200_9
ousouidlabs_ou
username (optional)
password (optional)
userid (optional)
apikey (optional)
id (optional)
name (optional)
id (optional)
name (optional)
description (optional)
ip (optional)
id (optional)
name (optional)
description (optional)
id (optional)
name (optional)
inremotepc (optional)
ou (optional)
id (optional)
name (optional)
location (optional)
description (optional)
inremotepc (optional)
Boolean check if this lab will be included in Remote PC Project
capacity (optional)
Integer maximum number of people in the lab
defclients (optional)
Integer number of defined clients in the lab
projector (optional)
Boolean check if this lab has a projector
board (optional)
Boolean check if this lab has an electronic board
routerip (optional)
netmask (optional)
String network mask to use in the lab
ntp (optional)
dns (optional)
proxyurl (optional)
mcastmode (optional)
String Multicast protocol mode (\"full-duplex\", \"half-duplex\").
mcastip (optional)
mcastport (optional)
mcastspeed (optional)
p2pmode (optional)
String Bittorrent connection type (\"peer\", \"leecher\". \"seeder\").
p2ptime (optional)
Integer Bittorrent connection extra time (in s.)
image (optional)
id (optional)
name (optional)
ou (optional)
lab (optional)
id (optional)
name (optional)
serialno (optional)
netiface (optional)
netdriver (optional)
String client MAC address (kernel module)
mac (optional)
ip (optional)
netmask (optional)
routerip (optional)
String network router IP address
repo (optional)
validation (optional)
boottype (optional)
image (optional)
id (optional)
name (optional)
hardware (optional)
type (optional)
String hardware component type
description (optional)
String hardware component description
id (optional)
ip (optional)
status (optional)
id (optional)
name (optional)
ou (optional)