Skip to Content
可编程网络自动化
book

可编程网络自动化

by Jason Edelman, Scott S. Lowe, Matt Oswalt
January 2023
Intermediate to advanced
458 pages
14h 16m
Chinese
Posts & Telecom Press
Content preview from 可编程网络自动化
网络自动化
25
虽然从网络的角度来看
REST
RESTful API
这些术语都是新词,但其实在使用
Web
浏览
器上网的时候,你已经和很多
RESTful
系统打过交道了
。之前说过,
REST
是一种网络应
用程序的开发风格。这种风格依赖于无状态的客户端
服务
器模型。在该模型中,客户端
负责跟踪会话,服务器不保存任何客户端的状态或上下文。更奇妙的是,底层传输协议采
用的是最常见的
HTTP
。这听起来是不是和互联网的大多数系统一样?
这意味着
RESTful API
的操作就像基于
HTTP
的系统一样
。首先,需要有一个能够通过
URL
访问的
We
b
服务器(也就是要与之通信的
SDN
控制器
网络设备
);其次,需要向
URL
发送相关的
HTTP
请求
。如果想从
SDN
控制器处检索设备列表,那么只需向指定的
URL
发送
HTTP
GET
请求即可。返回的响应信息是某种类型的结构化数据,比如
XML
JSON
(第
5
章中会讲到)
还有一些尚未涉及的内容,比如身份认证、数据编码以及如何发送
HTTP
求(
HTTP
PUT/POST/PATCH
)来更改配置
。本节只是对
REST
RESTful API
做一个简短的介绍,
更多的细节详见第
7
章。
接下来简单了解一下
开放网络运动
对于整个网络设备管理的影响。
2.3.2
 开放网络运动的影响
开放
一切逐渐成了一种趋势——开放源码、开放网络、
Open API
OpenFlow
Open Compute
Open vSwitch
OpenDaylight
OpenConfig
。尽管“开放”一词的定义有待商榷,但有 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115606181