Creates a new network device.
POST/network/device/create
This endpoint registers a new network device in the system.
Responses
- 200 OK: Successfully created the network device.
- 400 Bad Request: Invalid request data.
- 500 Internal Server Error: Unexpected server error.
Request
- application/json
Body
required
The IP address of the network device.
The name of the network device.
Possible values: [router, switch, accessPoint, firewall]
Represents the type of a network device
This enum describes the different types of network devices that can exist in a network. Each type has its own role and functionality within the network infrastructure.
Responses
- 200
- 400
- 500
Successfully created the network device.
- application/json
- Schema
- Example (from schema)
Schema
bandwidth
object
nullable
Represents bandwidth details for a network device
Download bandwidth in Mbps.
Upload bandwidth in Mbps.
The unique identifier of the network device.
The IP address of the network device.
The latency in milliseconds (optional).
The name of the network device.
The packet loss percentage (optional).
Possible values: [online, offline, degraded, maintenance, error, unspecified]
Represents the status of a network device
This enum describes the current operational state of a network device. The status can indicate whether the device is operational, undergoing maintenance, or experiencing issues.
Possible values: [router, switch, accessPoint, firewall]
Represents the type of a network device
This enum describes the different types of network devices that can exist in a network. Each type has its own role and functionality within the network infrastructure.
{
"bandwidth": {
"downloadMbps": 0,
"uploadMbps": 0
},
"id": 0,
"ip": "string",
"latencyMs": 0,
"name": "string",
"packetLossPercentage": 0,
"status": "online",
"type": "router"
}
Bad Request - Invalid input data.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD15
- MOD16
oneOf
Possible values: [ClientError]
Possible values: [InternetConnectionError]
Possible values: [UnauthorizedError]
Possible values: [InternalServerError]
Possible values: [MissingDataError]
Possible values: [ParsingFailedError]
Possible values: [WritingDataError]
Possible values: [ForbiddenError]
Possible values: [NotAllowedError]
Possible values: [ValidationError]
Possible values: [SQLError]
Possible values: [StorageLimitExceededError]
Possible values: [StorageUnavailable]
Possible values: [ConflictError]
Possible values: [MatomoError]
Possible values: [ProcessInterrupted]
{}
Internal Server Error - Unexpected issue occurred.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD15
- MOD16
oneOf
Possible values: [ClientError]
Possible values: [InternetConnectionError]
Possible values: [UnauthorizedError]
Possible values: [InternalServerError]
Possible values: [MissingDataError]
Possible values: [ParsingFailedError]
Possible values: [WritingDataError]
Possible values: [ForbiddenError]
Possible values: [NotAllowedError]
Possible values: [ValidationError]
Possible values: [SQLError]
Possible values: [StorageLimitExceededError]
Possible values: [StorageUnavailable]
Possible values: [ConflictError]
Possible values: [MatomoError]
Possible values: [ProcessInterrupted]
{}