H3C Cloudnet Platform APIs
H3C Cloudnet Platform APIs
This document provides information about H3C Oasis platform APIs and the methods to configure
API-related settings.
Usage guidelines
Activate open APIs for third-party platforms
1. Log in to the Oasis platform.
2. Hover over the grid icon , and then select Network Management.
3. Select a site from the scenario menu, and then select Settings > Open Platforms from the
navigation pane.
4. Click Activate. The page displays the authentication key if open APIs have been activated.
Figure 1 Activating open APIs for third-party platforms
To change the key, click Change Key. The current key will become invalid after a new key is
generated.
If you click Disable, the key will become invalid. For the key to take effect again, click Enable.
Figure 3 Obtaining the key for authentication
Example:
Device
Obtain device information in a site
Limit: 1 time/second
Interface URL: https://oasiscloudapi.h3c.com/shop/device
Request method: POST
Table 3 Request parameters
Example:
Example:
Obtain AP information
Limit: 1 time/second
Interface URL: https://oasiscloudapi.h3c.com/device/apinfo
Request method: GET
Table 9 Request parameters
Example:
Example:
Example:
Example:
Example:
Example:
Obtain client traffic and rate statistics
Interface URL: https://oasiscloudapi.h3c.com/device/interfaceflow
Request method: POST
Table 25 Request parameters
Example:
Example:
Authentication
The Oasis platform can obtain authenticated users' IP, MAC, associated AP, and social media
information, including WeChat profile photo, name, and registration location. The information is
saved in the database and is accessible for third parties through open APIs.
Example:
New guest and regular guest statistics
Obtain current guest statistics
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getCurrentClientCount
Request method: POST
Table 37 Request parameters
Example:
Example:
Example:
Peak statistics
Obtain peak statistics for the specified time range
The statistics are collected on a per-day basis. You cannot obtain peak statistics for the current day.
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryPeakNumber
Request method: POST
Table 46 Request parameters
Example:
Client trend statistics
Obtain history client trend statistics
The statistics are displayed on a per-hour basis.
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryHourClientCountDetail
Request method: POST
Table 49 Request parameters
Example:
Obtain history guest trend statistics
The statistics are displayed on a per-day basis.
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryDayClientCountDetail
Request method: POST
Table 52 Request parameters
Example:
Visit statistics
Obtain client visit statistics for the current week
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getCurrentWeekClientTimes
Request method: POST
Table 55 Request parameters
Example:
Example:
Example:
Average length of stay
Obtain the average length of stay of the current day
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getCurrentClientStayAvgDuration
Request method: POST
Table 64 Request parameters
Example:
Obtain history length of stay statistics
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryClientStayAvgDuration
Request method: POST
Table 67 Request parameters
Example:
Example:
Example:
Example:
Client traffic statistics
Obtain client traffic statistics for the current day
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getCurrentNetFlowBytes
Request method: POST
Table 79 Request parameters
Example:
Obtain history client traffic statistics
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryNetFlowBytes
Request method: POST
Table 82 Request parameters
Example:
Example:
Example:
Example:
Report management
Obtain daily report data
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryDayReport
Request method: POST
Table 94 Request parameters
Example:
Obtain weekly report data
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getHistoryWeekReport
Request method: POST
Table 98 Request parameters
Example:
Example:
Report statistics
Obtain report summary
Interface URL: https://oasiscloudapi.h3c.com/stamonitor/getReportStaticData
Request method: POST
Table 106 Request parameters
Example:
Example:
Example:
Example:
Example: