In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Hi! This is the eighth article on Tungsten Fabric schema parsing, introducing several API supported by TF.
A series of articles on Tungsten Fabric architecture analysis, presented to you by the TF Chinese community, are designed to help new entrants to the TF community to answer questions. We will systematically introduce the features of TF, how it works, how to collect / analyze / deploy, how to orchestrate, how to connect to physical networks, and so on.
Tungsten Fabric supports the following API:
REST API for controller configuration is mapped to Python binding for REST configuration API REST API for accessing analysis data
Let's describe them one by one.
REST API for controller configuration
All configurations of the Tungsten Fabric cluster can be obtained by accessing the REST API on port 8082 of the Tungsten Fabric external virtual IP address. Users can use HTTP GET calls to retrieve the details of the resource list or its properties. Data is returned as a JSON object.
You can make changes to the Tungsten Fabric object model (for example, adding a virtual network, creating a service chain) by sending a JSON that contains the attributes of the new object to represent the Tungsten Fabric command.
When the Tungsten Fabric is compiled and built, the REST API is automatically generated from the data model schema file.
Python binding
A set of Python bindings that map to REST API are also automatically generated during compilation.
In a Python session or script, the session opens as follows:
You can create a virtual network using the following methods:
Python binding is generally easier to use than REST API because it does not require the use of an JSON payload.
Analyze REST API
The analysis data collected in Tungsten Fabric can be accessed through REST API on port 8082 of the Tungsten Fabric external virtual IP address. Configuration and operation information is organized in objects called user visible entities (UVE), which can contain attributes aggregated from multiple Tungsten Fabric components.
For example, the operation information for a virtual network may come from vRouter, configuring pods, and controlling pods. The output of Analytics API is in the form of an JSON payload. Retrieve UVE data using a direct URL that points to the location of the data.
The HTTP GET query is used to retrieve the list in the analysis database and get its API and schemas.
HTTP POST queries are used to retrieve time series data stored in a table. POST queries include JSON-formatted versions of SQL queries that specify tables, fields, and conditions to match. Analytics API includes an additional feature that allows you to specify a start and end time for the retrieved data.
Based on threshold crossover events, Analytics API can be used to configure and retrieve alerts for any time series stored in the analysis database.
You can configure the server to send event (SSE) streams for any UVE or alerts in the analysis database.
MORE
More Tungsten Fabric parsing articles
Part I: main features and use cases of TF
Article 2: how TF works
Part 3: detailed explanation of vRouter architecture
Part IV: service chain of TF
Part 5: deployment options for vRouter
Part 6: how does TF collect, analyze, and deploy?
Chapter 7: how to arrange TF
About Tungsten Fabric:
The Tungsten Fabric project is an open source project protocol that is developed based on standard protocols and provides all the components necessary for network virtualization and network security. The components of the project include: SDN controller, virtual router, analysis engine, northbound API release, hardware integration functions, cloud orchestration software and extensive REST API.
About the TF Chinese Community:
TF Chinese Community is initiated spontaneously by a group of Chinese volunteers who follow and love SDN, including technology veterans, market veterans, industry experts and experienced users. It will serve as a bridge between the community and China, disseminate information, submit questions, organize activities, and unite all forces interested in the multi-cloud Internet to effectively solve the problems encountered in the process of cloud network construction.
Follow Wechat: TF Chinese Community
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.