RESTCONF Protocol
draft-ietf-netconf-restconf-01
Network Working Group A. Bierman
Internet-Draft YumaWorks
Intended status: Standards Track M. Bjorklund
Expires: January 4, 2015 Tail-f Systems
K. Watsen
Juniper Networks
R. Fernando
Cisco
July 3, 2014
RESTCONF Protocol
draft-ietf-netconf-restconf-01
Abstract
This document describes an HTTP-based protocol that provides a
programmatic interface for accessing data defined in YANG, using the
datastores defined in NETCONF.
Status of this Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on January 4, 2015.
Copyright Notice
Copyright (c) 2014 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
Bierman, et al. Expires January 4, 2015 [Page 1]
Internet-Draft RESTCONF July 2014
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1. Secure Transport . . . . . . . . . . . . . . . . . . . . . 5
1.2. Simple Subset of NETCONF Functionality . . . . . . . . . . 5
1.3. Data Model Driven API . . . . . . . . . . . . . . . . . . 6
1.4. Terminology . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.1. NETCONF . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.2. HTTP . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.3. YANG . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.4. Terms . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4.5. Tree Diagrams . . . . . . . . . . . . . . . . . . . . 11
2. Operations . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.1. OPTIONS . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2. HEAD . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3. GET . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4. POST . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.1. Create Resource Mode . . . . . . . . . . . . . . . . . 14
2.4.2. Invoke Operation Mode . . . . . . . . . . . . . . . . 15
2.5. PUT . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.6. PATCH . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.7. DELETE . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.8. Query Parameters . . . . . . . . . . . . . . . . . . . . . 19
3. Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.1. Request URI Structure . . . . . . . . . . . . . . . . . . 21
3.2. RESTCONF Path Resolution . . . . . . . . . . . . . . . . . 22
3.3. Message Headers . . . . . . . . . . . . . . . . . . . . . 23
3.4. Message Encoding . . . . . . . . . . . . . . . . . . . . . 24
3.5. RESTCONF Meta-Data . . . . . . . . . . . . . . . . . . . . 25
3.6. Return Status . . . . . . . . . . . . . . . . . . . . . . 25
3.7. Message Caching . . . . . . . . . . . . . . . . . . . . . 25
4. Resources . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.1. RESTCONF Resource Types . . . . . . . . . . . . . . . . . 26
4.2. Resource Discovery . . . . . . . . . . . . . . . . . . . . 27
4.3. API Resource . . . . . . . . . . . . . . . . . . . . . . . 27
4.3.1. {+restconf}/data . . . . . . . . . . . . . . . . . . . 28
Show full document text