Network - Endpoints

GET
/v2/network/netblock/{service}
List Netblocks
List all IP Blocks
Request URL
/v2/network/netblock/{service}
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 6,
	-result: {
		198.#.#.103: "No Record Found",
		198.#.#.56: "your.reverse.record",
		198.#.#.57: "No Record Found",
		2605:f700:c0:####::####:2482: "your.reverse.record",
		2605:f700:c0:####::####:9ef1: "your.reverse.record",
		2605:f700:c0:####::####:5a09: "No Record Found"
	}
}
                      
Example Code


                      
GET
/v2/network/events/{service}
Current Events
List all current network anomoly events.
Request URL
/v2/network/events/{service}
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: "0",
	-result: {
		-ANOMALY_ID: {
		id: "859",
		anomaly_id: "ANOMALY_ID",
		target_ip: "TARGET_IP",
		internal_client: "CLIENT",
		internal_service: "SERVICE",
		internal_network: NETWORK,
		internal_device: "DEVICE_NAME",
		active: "0",
		start: "1413457310",
		end: "1413459071",
		nullroute_start: null,
		nullroute_end: null,
		nullroute_active: "0",
		-detail: {
			success: true,
			results: 1,
			-result: [
					-{
						attack_id: "ANOMALY_ID",
						rule_direction: "0",
						ip: "107.183.138.6",
						mask: "32",
						rule_unit: "1",
						filters: "1",
						value: "2547363195",
						first: "1413457310",
						last: "1413459071",
						tick: "39",
						sensor_type: "3",
						sensor_id: "2",
						sensor_interface: "1664",
						protocal: "UDP traffic"
					}
				]
			},
			-logs: {
				success: true,
				results: 1,
				-result: [
					-{
						ip: "TARGET_IP",
						activity: "59",
						d_total: "1751180000",
						d_totalbits: "3544122731904",
						s_total: "186000",
						s_totalbits: "59840000",
						d_tcp: "1025734000",
						d_tcpbits: "788746766080",
						s_tcp: "184000",
						s_tcpbits: "58880000",
						d_syn: "279020",
						d_synbits: "11160800",
						s_syn: "0",
						s_synbits: "0",
						d_udp: "725432000",
						d_udpbits: "2755369245824",
						s_udp: "0",
						s_udpbits: "0",
						d_icmp: "14000",
						d_icmpbits: "6720000",
						s_icmp: "2000",
						s_icmpbits: "960000"
					}
				]
			}
		}
	}
}
                      
Example Code


                      
GET
/v2/network/port/{service}
Get Network Port
Return network port status
Request URL
/v2/network/port/{service}
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 1,
	result: "DC08R28DS15-04 - Down \/ Down"
}
                      
Example Code


                      
PUT
/v2/network/port
Enable Network Port
Enable network port.
Request URL
/v2/network/port
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: "0",
	result: "Port Enabled."
}
                      
Example Code


                      
DELETE
/v2/network/port
Disable Network Port
Disable network port.
Request URL
/v2/network/port
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: "0",
	result: "Port Disabled."
}
                      
Example Code


                      
POST
/v2/network/bandwidth/{service}
Bandwidth Information
Display bandwidth information
Request URL
/v2/network/bandwidth/{service}
Parameters
  • @param {service} (int) REQUIRED Service ID
      Required Regex Validation
    • [0-9]
  • @param {start} (int) Optional Start Date as unixtimestamp
      Required Regex Validation
    • [0-9]
  • @param {end} (int) Optional End Date as unixtimestamp
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 3,
	-result: {
		success: true,
		results: 1,
		-result: {
			-SWITCH_NAME: {
				-4: {
				name: "PORT_ALIAS",
				-data: {
					inbits_last: "8233",
					outbits_last: "28888",
					inbits_avg: "6112",
					outbits_avg: "12287",
					inbytes: "2040274584",
					outbytes: "4101140903",
					totalbytes: "6141415487",
					95pct: "50736"
				},
				graph: "BASE64_ENCODED_STRING"
				},
				-28: {
				name: "PORT_ALIAS",
				-data: {
					inbits_last: "8233",
					outbits_last: "28888",
					inbits_avg: "6112",
					outbits_avg: "12287",
					inbytes: "2040274584",
					outbytes: "4101140903",
					totalbytes: "6141415487",
					95pct: "50736"
				},
				graph: "BASE64_ENCODED_STRING"
				}
			}
		}
	}
}
Display Graph: < img src="data:image/png;base64, BASE64_ENCODED_STRING" >
                      
Example Code
Sample code coming shortly.

/v2/example/network/bandwidth/post.php