Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
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
可编程网络自动化
118
第
5
章
数据格式与数据模型
但凡探索过
API
世界的人应该都听说过
JSON
、
XML
或
YAML
这些术语,对
XSD
(
XML
Schema
Definition
,
XML
模式定义)或
Y
ANG
可能也有所耳闻。讨论此类话题的时候,估
计也免不了会碰上
标记语言
这个词。话说回来,这些都是什么?它们和联网或者网络自动
化有什么关系?
路由器和交换机需要标准协议才能通信,同样,为了彼此能够交换数据,应用程序之间也
需要就某种语法达成一致。为此,应用程序使用了
JSON
和
XML
等标准
数据格式
。应用
程序要取得共识的不仅是数据的格式,还包括数据的结构。
数据模型
定义了如何结构化以
特定格式存储的数据。
本章将讨论网络
API
和自动化工具最常用到的一些数据格式
,以及身为网络开发人员的你
该如何利用这些工具完成自己的任务。另外,还会简要讨论数据模型及其在网络自动化中
所扮演的角色。
5.1
数据格式简介
计算机程序员通常要使用各种各样的工具来存储和处理所构建程序中的数据。这可以是简
单的变量(标值)、数组(复合量)、哈希(“键
–
值”对)
,甚至是编程语言语法内建的自
定义对象。
在所编写的软件范围之内,这些选择完全是标准化的。但是,有时需要更加抽象、更具
可移植性的格式。例如,非程序员可能要把数据移入或移出此类程序。其他程序也许会
以类似的方式与之通信,搞不好有些程序甚至不是用同一种语言编写的,就像传统的客
户端
–
服务器通信那样
,这种情况可以说是司空见惯。例如,许多第三方用户界面(
User
Interface
,
UI
)被用作公共云供应商的接口 ...
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.
Start your free trial
You might also like
Python和NLTK实现自然语言处理
Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言
艾伦A. A.多诺万, 布莱恩W. 柯尼汉
弱监督学习实用指南
Wee Hyong Tok, Amit Bahree, Senja Filipi
Python实用技能学习指南
Posts & Telecom Press, Robert Smallshire, Austin Bingham
Publisher Resources
ISBN: 9787115606181