Black Box DCX3000 / DCX1000 Using the API

Similar documents
HTTP Authentication API

White paper irmc Redfish API

Coding Intro to APIs and REST

WEB API. Nuki Home Solutions GmbH. Münzgrabenstraße 92/ Graz Austria F

Lab 5: Working with REST APIs

Nasuni Data API Nasuni Corporation Boston, MA

Volante NACHA ISO20022 Validator AMI User Guide

Nasuni Data API Nasuni Corporation Boston, MA

Using OAuth 2.0 to Access ionbiz APIs

StorageGRID Webscale 11.0 Tenant Administrator Guide

Integration Guide. LoginTC

Updating Astea Mobile URLs

Grandstream Networks, Inc. Captive Portal Authentication via Twitter

NetIQ Access Manager 4.3. REST API Guide

REST Easy with Infrared360

Configuration examples for the D-Link NetDefend Firewall series DFL-260/860

Lab 2. All datagrams related to favicon.ico had been ignored. Diagram 1. Diagram 2

REST. Lecture BigData Analytics. Julian M. Kunkel. University of Hamburg / German Climate Computing Center (DKRZ)

The Octava HDDSX Matrix System works in conjunction with a Cisco SG-300 series managed Ethernet switch.

NetIQ Access Manager 4.4. REST API Guide

Writing REST APIs with OpenAPI and Swagger Ada

Scalable applications with HTTP

Aruba Central APIs. Adolfo Bolivar April 2018

MyClinic. Password Reset Guide

LiveAction API Quick Start Guide

STRS OHIO F5 Access Client Setup for ChromeBook Systems User Guide

Yioop Full Historical Indexing In Cache Navigation. Akshat Kukreti

Salesforce IoT REST API Getting Started Guide

External HTTPS Trigger AXIS Camera Station 5.06 and above

Wireshark Lab: HTTP SOLUTION

Composer Help. Web Request Common Block

flask-jwt Documentation

Integrating with ClearPass HTTP APIs

Grandstream Networks, Inc. Captive Portal Authentication via Facebook

HappyFox API Technical Reference

Coveo Platform 7.0. Yammer Connector Guide

SQLSplitter v Date:

Sophos Mobile. Network Access Control interface guide. Product Version: 8.1

RESTFUL WEB SERVICES - INTERVIEW QUESTIONS

flask-jwt-simple Documentation

LUCITY REST API INTRODUCTION AND CORE CONCEPTS

Blueprint REST API Developer Guide

Sophos Mobile Control Network Access Control interface guide. Product version: 7

LEARN HOW TO USE CA PPM REST API in 2 Minutes!

API Gateway. Version 7.5.1

Grandstream Networks, Inc. Captive Portal Authentication via Facebook

Avoiding Web Application Flaws In Embedded Devices. Jake Edge LWN.net URL for slides:

How to social login with Aruba controller. Bo Nielsen, CCIE #53075 (Sec) December 2016, V1.00

Lecture 7b: HTTP. Feb. 24, Internet and Intranet Protocols and Applications

Flask-Cors Documentation

Guzzle: Extraordinary HTTP Client

Caching. Caching Overview

ClickToCall SkypeTest Documentation

MULTI FACTOR AUTHENTICATION USING THE NETOP PORTAL. 31 January 2017

ExtraHop Rest API Guide

EMPOWER2018 Quick Base + Workato Workjam

Guzzle: Extraordinary HTTP Client

Penetration Test Report

HTTP Protocol and Server-Side Basics

Healthcare Database Connector

TM-H6000V. WebConfig API User's Manual. Overview. Web API Specification. Reference. M Rev.A. Describes an overview of WebConfig API.

Colligo Engage Console. User Guide

3.1 Getting Software and Certificates

ExtraHop 7.3 ExtraHop Trace REST API Guide

Persistent Data Transfer Procedure

Best Practices for developing REST API using PHP

also supports JSON output format for specific commands.

User Authentication APIs

Object Storage Operation Manual

Integration Service. Admin Console User Guide. On-Premises

WooCommerce REST API Integration. October 27, 2018

CN Assignment I. 1. With an example explain how cookies are used in e-commerce application to improve the performance.

Documenting APIs with Swagger. TC Camp. Peter Gruenbaum

Administering Jive Mobile Apps for ios and Android

Bambu API Documentation

CS 43: Computer Networks. Layering & HTTP September 7, 2018

Highwinds CDN Content Protection Products. August 2009

Optical Character Recognition. SDK Reference. Issue 04 Date

ExtraHop 6.0 ExtraHop REST API Guide

Manual for configuring VPN in Windows 7

Stella Connect & Zendesk Custom Installation Instructions

Help Document Series: Connecting to your Exchange mailbox via Outlook from off-campus

Technical Note. Isilon OneFS. Isilon Swift Technical Note. Release number July, 2015

How to Configure Authentication and Access Control (AAA)

Understanding RESTful APIs and documenting them with Swagger. Presented by: Tanya Perelmuter Date: 06/18/2018

Administering Jive Mobile Apps

edocs Home > BEA AquaLogic Service Bus 3.0 Documentation > Accessing ALDSP Data Services Through ALSB

REST Admin API. Note: Version 9.X or higher is required for the support of REST API. Version /17

RED IM Integration with Bomgar Privileged Access

Reviewing the API Documentation

Setting Up Dropbox for Location Document Storage in SuccessWare 21

Department of Computer Science and Engineering The University of Texas at Arlington. Team: TimeKeepers. Project: Volunteer Tracking System

C22: Browser & Web Server Communication

HELPFUL LINKS AND S Velos eresearch URL. Technical Support. VPR Clinical Trials Office

Yealink Device Management Platform Quick Start Guide. Applies to version or later

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

How to update firmware on a DVR/NVR

Integrating YuJa Active Learning into Google Apps via SAML

Server - The Tigo platform and urls associated with the api Client - Third party user with api access to the Tigo platform and/or Tigo api.

RAD SERVER. Marco Cantu, Delphi Product Manager

Transcription:

Black Box DCX3000 / DCX1000 Using the API updated 2/22/2017 This document will give you a brief overview of how to access the DCX3000 / DCX1000 API and how you can interact with it using an online tool. It will not however go into the inner workings. The API on the DCX technology adheres to RESTful and CORS standards, and can be downloaded from the DCX itself by following the URL: http(s)://<ip ADDRESS>/rest-api It is presented in YAML format, which is a human-readable data serialization language. YAML Tool There is an online tool called Swagger that allows you to view the API in an easy format and interact with the API. The DDX requires internet access in order to achieve this. Open a web browser and go to the Swagger online demo: http://petstore.swagger.io At the top of the page, enter the URL of the DCX switch, including the path to the reset-api. Press Explore (i.e. http://10.0.10.14/rest-api) 1 P a g e

You will be presented with a list of API functions on the DCX. In order to perform any function, you need a token which is provided when you authenticate with the DCX. To acquire the token, click on Expand operations for the Auth function. In the Body section under parameters, enter the username and password for the DCX in the following format. { } username : username password : password 2 P a g e

Press the Try it Out! button to execute the function. In the response body, you should receive a response showing your unique session token. Now that you have a token, you can use any of the available functions. For example, to see the API version, expand the API operations and in the Authorization field under Parameters, enter the following format: bearer <token> 3 P a g e

Press the Try it Out! button to execute the function. The response should look something like this 4 P a g e

Raw Connection Example Using Telnet and port 80, you can issue the HTML/JSON commands in a RAW form to the DCX. If you are writing a controller application, you will need to ensure it can handle HTML requests and parse the JSON responses appropriately. A POST or PUT request must include the content length in the header as you would for any web service. The content length is the number of bytes (characters) in the body/payload of the request. If this number is not correct, you will either be disconnected form the DCX or receive an error. The first function that you must perform is authentication with DCX to generate a token by sending your Admin login credentials that you use to log into the web interface. The token does not include the double quotes (*). Request: POST /api/auth/local HTTP/1.1 Host: 10.0.10.14 Content-Type: application/json; Content-Length: 43 {"username":"admin","password":"password"} Response: HTTP/1.1 200 OK X-Powered-By: Express Access-Control-Allow-Origin: * Cache-Control: max-age=3, must-revalidate App-Version: 0.3.94 Content-Type: application/json; charset=utf-8 Content-Length: 164 Vary: Accept-Encoding Date: Wed, 09 Nov 2016 12:34:20 GMT {"token":"eyj0exaioijkv1qilcjhbgcioijiuzi1nij9.eyjpzci6mswiawf0ijoxndc4njk0odywlcjuymyioji4ndg5odqsimv4cci6mjk zntm4nh0.qi5jpapgp8tcttvw4iw6fk9ldv2bhvd8vwy7pbim1m4"} To receive information about the DCX such as its description, location, and firmware version, you can use the System information request. For the DCX to accept the request you must provide the token that was received when you authenticated. Replace <TOKEN> in the request below with the token provided. Request: GET /api/system/systeminfo HTTP/1.1 Host: 192.168.1.22 Accept: application/json Content-Type: application/json Authorization: Bearer <TOKEN> 5 P a g e

Response: HTTP/1.1 200 OK X-Powered-By: Express Access-Control-Allow-Origin: * Cache-Control: max-age=3, must-revalidate App-Version: 0.3.94 ETag: "b9-yutkfdp1ur66ii5k4oez4q" Access-Control-Expose-Headers: ETag Content-Type: application/json; charset=utf-8 Content-Length: 340 Vary: Accept-Encoding Date: Wed, 09 Nov 2016 15:59:08 GMT {"description":"blackbox DCX","location":"Unspecified","systemVersion":"3.00","firmwareVersion":"3.00.0272","recoveryVersion":"1.03.4323","boardV ersion":2,"datafpgaversion":"000b","videofpgaversion":"00.0b","ignorefirmwaremismatch":false,"imagetype":"primary","ed idid":101,"links":{"self":"/api/system/systeminfo"},"webversion":"0.3.94"} To connect a Receiver to a Transmitter, you use the consoles request in the following format /api/consoles/{id}/switch {id} = The port number that the console is connected to. In the body of the request, you specify the computers id. E.g. the port number it is connected to and the view mode which can be VIEWONLY, SHARED, EXCLUSIVE or PRIVATE. The response will be 204 No Content if it is successful. Request: POST /api/consoles/1/switch HTTP/1.1 Host: 10.0.10.14 Content-Length: 48 Content-Type: application/json Accept: application/json Authorization: Bearer <TOKEN> { "computerid": 1, "mode": "VIEWONLY" } Response: HTTP/1.1 204 No Content X-Powered-By: Express Access-Control-Allow-Origin: * Cache-Control: max-age=3, must-revalidate App-Version: 0.3.94 Date: Wed, 09 Nov 2016 15:46:15 GMT 6 P a g e

More Information There are many resources on the internet on how to use RESTful (Representational state transfer) API s/webservices. Below is a list of useful resource links: https://en.wikipedia.org/wiki/representational_state_transfer https://www.tutorialspoint.com/restful/restful_introduction.htm http://restcookbook.com/ 7 P a g e