Logging In - Multitech MultiConnect rCell MTR-H5 Developer's Manual

Multiconnect rcell api cellular router
Hide thumbs Also See for MultiConnect rCell MTR-H5:
Table of Contents

Advertisement

" mac "
:
"00
22
23
24
]
,
25
" maxLeases "
:
26
" options "
:
[
27
" rangeEnd "
:
28
" rangeStart "
29
" subnetAddress "
30
" subnetMask "
31
,
32
" status "
:
" success "
33
The API allows requests to path to specific elements or groups of embedded elements. For example, if a user
only wanted to know if DHCP was enabled, they could make the request: https://[rcell ip]/api/dhcp/enabled.
Example: Path to an element within the DHCP collection.
GET https://192.168.2.1/api/dhcp/enabled
1
2
3
Status
:
HTTP /1.1 200 OK
4
5
" code "
:
200
,
6
" result "
:
true
7
" status "
:
" success "
8
Accessing objects within an array can be done using the index of the desired object in the path. Some collections
support using an object's unique identifier in place of the object's index; generally, this unique identifier is a member
called name or guid. For example, suppose an rCell was configured with a GRE tunnel named MyGreTunnel, and
a user wanted to know the IP address of the remote end point of that tunnel. The user could make a RESTful
GET request to https://[rcell ip]/api/greTunnels/MyGreTunnel/remoteIp.
Example: Path to an element within an object in an array using the object's unique identifier.
1
GET https://192.168.2.1/api/greTunnels/MyGreTunnel/remoteIp
2
3
Status
:
HTTP /1.1 200 OK
4
5
" code "
:
200
,
" result "
:
" 1 66.184.38.7 3"
6
7
" status "
:
" success "
8
2.2

Logging In

To use the API, a user must be authorized and have equal or greater privileges than the API call they are
invoking. A user can login with valid credentials by passing their username and password to the login URL (
https://192.168.2.1/api/login ) either as URI parameters or within a JSON object. The following call will
login the user admin, and return the session information including an authorized token. The API attempts to
cache the token as a cookie in the user's web browser for authorizing future calls. As an alternative to using a
browser cookie, this token can be passed as a URI parameter using the key: token. Additional URI parameters
can be found in section 2.9 URI Parameters.
Example: Login using username 'admin' and password 'admin'.
1
GET https://192.168.2.1/api/login?username=admin&password=admin
2
3
Status
:
HTTP /1.1 200 OK
6
:
3 a
:
83
:
10
:
24
:
DC "
200
,
" dhcp - authoritative "
"192.168.2.2 54"
,
:
"192 .168.2 .100"
,
:
"192.168.2.0"
,
:
"255 .255.2 55.0"
,
,
]
,
Multi-Tech Systems, Inc. MultiConnect
2
REQUESTS
R
rCell API Developer Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiConnect rCell MTR-H5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3Multiconnect rcell mtr-ev3Multiconnect rcell mtr-c2Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3 ... Show all

Table of Contents