This repository has been archived by the owner on Aug 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
apiv1 network put
Travis CI edited this page Jan 17, 2018
·
17 revisions
Parameter | Value |
---|---|
Author | TestEngine |
Version | 0.2.0-dev.0 |
Status | Implemented |
Role: Admin
Parameter | Optional | Type | Default | Example |
---|---|---|---|---|
address | True | str | 192.168.1.15 | |
netmask | True | str | 192.168.1.255 | |
gateway | True | str | 192.168.1.1 | |
broadcast | True | str | 192.168.1.255 | |
nameServers | True | str | 8.8.8.8,9.9.9.9,1.1.1.1 | |
networkId | True | str | 1.9.9.9 |
200 OK
X-Identity: 1
Content-Type: application/json; charset=utf-8
Content-Length: 197
{
"gateway":"192.168.1.1",
"netmask":"192.168.1.255",
"address":"192.168.1.15",
"broadcast":"192.168.1.255",
"nameServers":"8.8.8.8 9.9.9.9 1.1.1.1",
"networkId":"1.9.9.9"
}
Role: Visitor
401 Unauthorized
Content-Type: application/json; charset=utf-8
Content-Length: 85
{"message":"Unauthorized","description":"No permission -- see authorization schemes"}
Role: Admin
400 Bad Request
X-Identity: 1
Content-Type: application/json; charset=utf-8
X-Reason: invalid-gateway;invalid-netmask;invalid-broadcast;invalid-nameServers;invalid-networkId;invalid-address
Content-Length: 138
{"message":"Bad Request","description":"Exactly these fields are allowed: [gateway, netmask, address, broadcast, nameServers, networkId]"}
Role: Admin
Parameter | Optional | Type | Default | Example |
---|---|---|---|---|
address | True | str | 192.168.1.15 | |
netmask | True | str | 192.168.1.255 |
400 Bad Request
X-Identity: 1
Content-Type: application/json; charset=utf-8
X-Reason: invalid-gateway;invalid-broadcast;invalid-nameServers;invalid-networkId
Content-Length: 138
{"message":"Bad Request","description":"Exactly these fields are allowed: [gateway, netmask, address, broadcast, nameServers, networkId]"}
Role: Admin
Parameter | Optional | Type | Default | Example |
---|---|---|---|---|
address | True | str | 192.168.1.15 | |
netmask | True | str | 192.168.1.255 | |
gateway | True | str | 192.168.1.1 | |
broadcast | True | str | 192.168.1.255 | |
nameServers | True | str | ||
networkId | True | str | 1.9.9.9 |
200 OK
X-Identity: 1
Content-Type: application/json; charset=utf-8
Content-Length: 174
{
"gateway":"192.168.1.1",
"netmask":"192.168.1.255",
"address":"192.168.1.15",
"broadcast":"192.168.1.255",
"nameServers":"",
"networkId":"1.9.9.9"
}
Role: Admin
Parameter | Optional | Type | Default | Example |
---|---|---|---|---|
address | True | str | ||
netmask | True | str | 192.168.1.255 | |
gateway | True | str | 192.168.1.1 | |
broadcast | True | str | 192.168.1.255 | |
nameServers | True | str | ||
networkId | True | str | 1.9.9.9 |
400 Bad Request
X-Identity: 1
Content-Type: application/json; charset=utf-8
Content-Length: 82
{"message":"Bad Request","description":"Bad request syntax or unsupported method"}
Role: Admin
Parameter | Optional | Type | Default | Example |
---|---|---|---|---|
address | True | str | 192.168.1.15 | |
netmask | True | str | 192.168.1.255 | |
gateway | True | str | ||
broadcast | True | str | ||
nameServers | True | str | ||
networkId | True | str |
200 OK
X-Identity: 1
Content-Type: application/json; charset=utf-8
Content-Length: 143
{
"gateway":"",
"netmask":"192.168.1.255",
"address":"192.168.1.15",
"broadcast":"",
"nameServers":"",
"networkId":""
}