GithubHelp home page GithubHelp logo

npb-sdk's Introduction

swagger-client

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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 

Setuptools

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

Getting Started

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)

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

[email protected]

npb-sdk's People

Contributors

kongseokhwan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.