M4 API cp create

From Kolmisoft Wiki
Revision as of 12:41, 7 November 2022 by Dmitrij (talk | contribs)
Jump to navigationJump to search

Description

M4 API Device (Connection Point) create

Usage

  • Call: /api/cp_create
  • Methods: POST, GET(if allowed, not recomended)



Parameters

  • u - username for authentication. Required.
  • user_id – user id. Required.
  • description
  • ipaddr - IP for Authentication
  • op - act as origination point. 0 stands for "No", 1 stands for "Yes"
  • tp - act as termination point. 0 stands for "No", 1 stands for "Yes"
  • create_rg_for_op - Automaticlly create Routing Group for this OP. 0 stand for "No", 1 stands for "Yes"



Request

We have API Secret Key = 456789, user_id = 2

We send:

HTML POST: http://<SERVER_IP>/billing/api/cp_create?u=admin&user_id=2&op=1&hash=65fd575c441513bd114b84c7dbdb01e0f2716d27

* Note that username is not included in hash

Returns

Success

<?xml version="1.0" encoding="UTF-8"?> <page>

 <status>
   <success>Connection Point created</success>
 </status>

</page>




See also