This is a PRISM NBAPI API Client module.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import swagger_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.FilterApi(swagger_client.ApiClient(configuration))
filter_object = swagger_client.FilterObject() # FilterObject | Filter Object
try:
# Create NPB Filter
api_response = api_instance.create_filter(filter_object)
pprint(api_response)
except ApiException as e:
print("Exception when calling FilterApi->create_filter: %s\n" % e)
All URIs are relative to https://virtserver.swaggerhub.com/kongseokhwan/npb-sdk/1.0.0
Class | Method | HTTP request | Description |
---|---|---|---|
FilterApi | create_filter | POST /tapping/filter/service | Create NPB Filter |
FilterApi | delete_filter | DELETE /tapping/filter/service/{filter_name} | Delete NPB Filter |
FilterApi | get_all_filter | GET /tapping/filter/service/all | Get NPB Filter All |
FilterApi | get_filter | GET /tapping/filter/service/{filter_name} | Get NPB Filter |
FilterApi | update_filter | PUT /tapping/filter/service/{filter_name} | Update NPB Filter |
PolicyApi | create_policy | POST /tapping/policy | Create NPB Policy |
PolicyApi | delete_policy | DELETE /tapping/policy/{policy_name} | Delete NPB Policy |
PolicyApi | get_all_policy | GET /tapping/policy/all | Get NPB Policy All |
PolicyApi | get_policy | GET /tapping/policy/{policy_name} | Get NPB Policy |
PolicyApi | update_policy | PUT /tapping/policy/{policy_name} | Update NPB Policy |
PortApi | create_portgroup | POST /tapping/port/group | Create NPB Port Group |
PortApi | delete_portgroup | DELETE /tapping/port/{group_name} | Delete NPB Port Group |
PortApi | get_all_port_group | GET /tapping/port/all | Get NPB All Port Group |
PortApi | get_port_group | GET /tapping/port/{group_name} | Get NPB Port Group |
PortApi | update_port_group | PUT /tapping/port/group/{group_name} | Update NPB Port Group |
RatelimitApi | create_rate_limit | POST /tapping/rate/limit | Create NPB Rate Limit |
RatelimitApi | delete_rate_limit | DELETE /tapping/rate/limit/{limit_name} | Delete NPB Rate Limit |
RatelimitApi | get_all_rate_limit | GET /tapping/rate/limit/all | Get NPB Rate Limit All |
RatelimitApi | get_rate_limit | GET /tapping/rate/limit/{limit_name} | Get NPB Rate Limit |
RatelimitApi | update_rate_limit | PUT /tapping/rate/limit/{limit_name} | Update NPB Rate Limit |
StatisticsApi | get_all_policy_statistics | GET /tapping/{dpid}/stat/realtime/policy/all | Get NPB Statistics of All Policy |
StatisticsApi | get_all_port_statistics | GET /tapping/{dpid}/stat/port/all | Get NPB Statistics of All Port |
StatisticsApi | get_enable_all_policy_statistics | GET /tapping/{dpid}/stat/nonrealtime/{state}/policy/all | Enable NPB Statistics of All Policy |
StatisticsApi | get_policy_statistics | GET /tapping/{dpid}/stat/realtime/policy/{policy_name} | Get NPB Statistics of Policy |
StatisticsApi | get_policy_statistics_duration_nonreal | GET /tapping/{dpid}/stat/nonrealtime/{start_time}/{end_time}/policy/{policy_name} | Get NPB Non realtime Statistics of Policy |
StatisticsApi | get_policy_statistics_nonreal | GET /tapping/{dpid}/stat/nonrealtime/{time}/policy/{policy_name} | Get NPB Non realtime Statistics of Policy |
StatisticsApi | get_port_statistics | GET /tapping/{dpid}/stat/port/{port_num} | Get NPB Statistics of Port |
- ALLPolicyStatisticsRespList
- ALLPortStatisticsRespList
- DpidinfoObject
- DpidinfoObject2
- EnablePolicyStatistics
- ErrorMessage
- FilterInnerObject
- FilterName
- FilterObject
- FilterResp
- FilterRespList
- FilterStatsList
- FilterStatsObject
- GetDpidinfoObject
- GetGroupObject
- GetGroupsObject
- MatchObject
- PolicyActionObject
- PolicyName
- PolicyObject
- PolicyResp
- PolicyRespList
- PolicyStatisticsDurationRespList
- PolicyStatisticsList
- PolicyStatisticsNonrealList
- PolicyStatisticsNonrealRespList
- PolicyStatisticsObject
- PortGroupName
- PortStatistics
- PortStatisticsRespList
- PortgroupObject
- RateLimitMerterId
- RateLimitName
- RateLimitObject
- RateLimitResp
- RateLimitRespList
- RateLimitRespObject
- StatisticsObject
- SuccessMessage
All endpoints do not require authorization.