APIv1 - Peering Module
ProVision's APIv1 system has been replaced by APIv2, and is now considered deprecated.
Peering
getCommunications
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Base URL |
/api/v1/api.php?target=peering&action=getCommunications |
||||||||
|
Description |
Returns all communication data on peers at a particular exchange. |
||||||||
|
Returns |
Examples:
|
||||||||
|
Required Parameters |
|
||||||||
|
Optional Parameters |
None |
||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=getCommunications&public_id=1 |
||||||||
getPeers
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=getPeers |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Returns a list of all peers available at an exchange |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
None |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=getPeers&public_id=1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getRequests
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=getRequests |
||||||||
|
Description |
Returns a list of all peering requests issued |
||||||||
|
Returns |
Examples:
ERROR: {"success":1,"message":"No request found.","data":[]} |
||||||||
|
Required Parameters |
None |
||||||||
|
Optional Parameters |
|
||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=getRequests&peer_participant_id=1 |
||||||||
getSessions
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=getSessions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Returns a list of all bgp peering sessions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: {"success":1,"message":"No peers found."} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=getPeers&public_id=1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
addSession
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=addSession |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Adds a bgp session |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: {"success":1,"message":"No request found.","data":[]} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
None |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=getRequests&peer_participant_id=1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
configureSession
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=configureSession |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Configure a BGP session on the router |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: {"success":0,"message":"Unable to authenticate "} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=configureSession&session_id=51&username=&config=conf+t%0A%0Arouter+bgp+32787%0A%0Ano+neighbor+206.126.236.102%0A%0Aneighbor+206.126.236.102+remote-as+20940%0Aneighbor+206.126.236.102+peer-group+group+b%0Aneighbor+206.126.236.102+description+Akamai+Technologies%0Aneighbor+206.126.236.102+maximum-prefix+20+%0Aneighbor+206.126.236.102+password+0+0%0A%0Aend%0Awrite |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleteSession
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=deleteSession |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Delete sessions matching criteria |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: {"success":0,"message":"No sessions found to delete."} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
None |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=deleteSession&id=171 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updateSession
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=updateSession |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Updates session values with any new values specified |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
None |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=updateSession¬e=Adding+an+awesome+note.&peer_group=group+a |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resestPeerStatus
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=resetPeerStatus |
||||||||||||
|
Description |
|
||||||||||||
|
Returns |
Examples:
ERROR: {"success":0,"message":"Could not find peer matching parameters"} |
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None |
||||||||||||
|
Example URL |
/api/v1/api.php?target=peering&action=resetPeerStatus&participant_id=262&public_id=1 |
||||||||||||
sendRequest
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=sendRequest |
||||||||||||||||||||||||||||||||||||||||||||||||
|
Description |
Send a peering request (email) to a prospective peer. This will be deprecated in the next version for a simpler call, strongly suggest against using. |
||||||||||||||||||||||||||||||||||||||||||||||||
|
Returns |
Examples:
ERROR: {"success":0,"message":"Internal error"} |
||||||||||||||||||||||||||||||||||||||||||||||||
|
Required Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Optional Parameters |
None |
||||||||||||||||||||||||||||||||||||||||||||||||
|
Example URL |
https://ops.test.com/peering-demo/api/v1/api.php?target=peering&action=sendRequest&peer_participant_id=1909&peer_asn=28929&peer_name=ASDASD+srl&source_participant_id=2335&source_asn=8038 &public_id=1&type=text&email_from=ops%40test.com&email_to=operations%40as28929.net&cc=&bcc=&subject=Peering+request+from+SomeCo%2C+Inc. &body=%0D%0APeering%2C%0D%0A%0D%0ASomeCo%2C+Inc.%2C+8038%2C+would+like+to+peer+with+ASDASD+srl+at+our+common+locations.%3A%0D%0APeeringDB%3A+http%3A%2F%2Fas8038.peeringdb.com%2F%0D%0A |
||||||||||||||||||||||||||||||||||||||||||||||||
sendEmail
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=sendEmail |
||||||||||||
|
Description |
Send a peering request (email) to a prospective peer. This will be deprecated in the next version for a simpler call, strongly suggest against using. |
||||||||||||
|
Returns |
Examples:
ERROR: |
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None |
||||||||||||
|
Example URL |
|
||||||||||||
updatePeer
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
/api/v1/api.php?target=peering&action=updatePeer |
||||||||||||
|
Description |
|
||||||||||||
|
Returns |
Examples:
ERROR: |
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None |
||||||||||||
|
Example URL |
|
||||||||||||