Understanding How The API Works

PHP Examples – Login Resources

Here’s a PHP example calling REST resources to:

  1. Login and Acquire a Session Token [SessionLogin]
  2. Check the Session is still alive [GET /Session/]
  3. Logout a Session [SessionLogout]

Click to view the example code.

PHP Examples – Manage A Records

Here’s a PHP example calling REST resources to:

  1. Add an A Record to a zone/node [POST /ARecord/<zone>/<fqdn>/]
  2. Publish all Zone Changes [PUT /Zone/<zone>/]
  3. Get a Specific Zone A Record detail [GET /ARecord/<zone>/<fqdn>/]
  4. Remove an A Record [DELETE /ARecord/<zone>/<fqdn>/<record id>/]

Click to view the example code.

PHP Examples – Get Any Record

Here’s a PHP example calling REST resources to:

  1. Login and Acquire a Session Token [POST /Session/]
  2. Get a list of All Records [GET /ANYRecord/<zone>/<fqdn>/]
  3. Logout a Session [DELETE /Session/]

Click to view the example code.

PHP Examples - Manage Zones

Here's a PHP example calling REST resources to:

  1. Get a list of All Zones [GET /Zone/]
  2. Get a specific Zone Detail [GET /Zone/<zone>/]
  3. Add an A Record to a zone [POST /ARecord/<zone>/<fqdn>/]
  4. Publish all Zone Changes [PUT /Zone/<zone>/]
  5. Remove a Zone Node [DELETE /Node/<zone>/<fqdn>/]

Click to view the example code.

PHP Examples - Manage Zones with Node List

Here's a PHP example calling REST resources to:

  1. Get a list of All Zones [GET /Zone/]
  2. Get a specific Zone Detail [GET /Zone/<zone>/]
  3. Add an A Record to a zone [POST /ARecord/<zone>/<fqdn>/]
  4. Publish all Zone Changes [PUT /Zone/<zone>/]
  5. Get a list of node names under a specific node [GET /NodeList/<zone>/<fqdn>/]
  6. Remove a Zone Node [/DELETE /Node/<zone>/<fqdn>/]

Click to view the example code.

PHP Examples - Secondary Zones

Here's a PHP example calling REST resources to:

  1. Create a Secondary Zone [POST /Secondary/<zone>/<fqdn>/]
  2. Get Info about a Secondary Zone [GET /Secondary/<zone>/<fqdn>/]
  3. Delete a Secondary Zone [DELETE /Zone/<zone>/<fqdn>/]

Click to view the example code.